Quick Docker Hacking with Envy

Jeff Lindsay - also known on Twitter and Github as Progrium - has just released a small tool called Envy.

You can use it to quickly get a development environment up and running. Especially if you are developing something using Docker.

How to install

First you need somewhere to host it. Either you have docker running on your local machine. If that is the case, you can clone the project and run make dev, and connect to the docker container using ssh IP -p2222.

Or you can start a virtual machine somewhere. Either locally - or like me on DigitalOcean (yes it is a referral link). In this case, you can skip this section completely.

If you start a DigitalOcean machine, just spin up a new server with the Application Image called “Docker” - this gives you everything you need. Otherwise you need to start a virtual host that can run docker. (I usually opt for Ubuntu 14.04) - and finally you should off course get docker installed on the machine.

Change ssh port (optional)

If you want a setup matching Jeff’s completely, you should change the default ssh port of the machine to 2222. Do this by editing /etc/ssh/sshd_config and changing the port from 22 to 2222.

Start envy

Now just start the envy docker container - and map the web and ssh port to the host.

docker run -d --name envy -v /mnt/data:/data -v /var/run/docker.sock:/var/run/docker.sock -p 80:80 -p 22:22 -e HOST_DATA=/mnt/data progrium/envy

Now you can login to the machine on port 22 using you Github username, and ssh key from Github.

Now what?

Well take a look at Jeffs video - and see what Envy can do for you:

Envy from Jeff Lindsay on Vimeo.