![]() ![]() # will move to non-root LXC for trusty and later, which will provide a We’re planning to use unprivileged containers for Mojo, but until we do, there’s some manual fixes needed to permissions for things to work as expected: sudo chmod 755 /var/lib/lxc/usty All other commands are run as a regular user, and Mojo will prompt you for your sudo password if appropriate. Project-new is the only command you need to run with sudo. Everything needed for the build process to work should be already downloaded in the collect step, and this ensures you have no dependencies in your build process that you’re not aware of. ![]() It runs the build commands in LXC with no network access to ensure that you have a repeatable build process. What’s happening here is that Mojo is creating a top level project directory ( /srv/mojo/mojo-how-to) as well as an LXC for running build commands. Now let’s create a “project” for the example service we’re going to deploy: sudo mojo project-new -series trusty mojo-how-to We can do that as follows: sudo add-apt-repository ppa:mojo-maintainers/ppa So first of all, we need to install Mojo. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |