I'm too cheap to pay for EC2, and I don't have enough servers to set up my own openstack, how do I configure juju to use Linux Containers (LXC) on something like my laptop?
|
Note that this currently works on older version of Juju (.6 and ,7) and does NOT yet work on Juju 2.x. These instructions are for Juju .7. First install Juju and some dependencies it needs:
After installing it, you may have to reboot (I had to else libvirt couldn't create the network bridge indicating it was already in use). After that you might get error for SSH authorized/public key not found. ERROR SSH authorized/public key not found.
First configure your environment local environment: In
The
The first time this runs it might take a bit, as it's doing a netinstall for the container, it's around a 300 megabyte download. Subsequent bootstraps should be much quicker. You deploy charms from the charm store using the following commands:
When it's deployed juju should return something like this in status:
Expose your service with:
In this example, navigating the browser to 192.168.122.166 should take you to the wordpress configuration page. Enabling logging option.
It will be good to open this in a separate terminal and see what juju is doing behind the curtain. References:
|
||||
|
|
When I ran
I got this error message
My operating system was Ubuntu 10.04.4 LTS. I read something about JuJu being supported in Ubuntu 12 LTS so I upgraded to Ubuntu 12 LTS. Then I started getting this error
Even though I had generated the public keys. What I had to do was copy my public key to the ~/.ssh/ folder as "id_dsa.pub" after reading this post about updating the juju tutorial
|
||||
|
|