Getting to Docker 1.0
blog.docker.io
blog.docker.io
I want to know how to write a dockerfile (?) that I can run a command against, and have a dev environment materialize. Something I can track in source control along with my "main" source. Something to replace the difficult-to-recreate and outside-of-source-control LAMP and Flask environments I have now.
And I'd like to know how my sites' source code or untracked files (e.g. .sqlite file, mongo dump files) fall into that, while still being accessible to the docker container.
I imagine this would cover a huge percentage of people interested in Docker.
You can run it with:
git clone https://github.com/frio/cloud9-dockerfile
cd cloud9-dockerfile
docker build -t "yourname/cloud9" ./
docker run yourname/cloud9 -e PROJECT=git@github.com:your/project
... and then opening your-ip:3131 :).Would this be helpful?
- Docker is entirely dependent on LXC at the moment, so if you're developing in anything other than Linux, it's not a good solution for creating a dev environment. They're promising to make LXC just a plugin at some point and support BSD jails, OpenVZ, and other containers, but even then I'm not sure there will be an answer for OSX users.
- You can do just what you describe above with a Vagrantfile. It works cross platform already.
ShipBuilder is an open-source Heroku-esque PaaS which uses Go, Git, LXC, and HAProxy, with Docker support coming soon!
The Shipbuilder codebase is super easy to understand, and aims to make it fast and easy to deploy arbitrary web-applications.
Get total control over all aspects of your staging and production environments.
More info:
If you're looking for more content, I'll be happy to provide it.
Please keep writing!
Where can we find this?
It would be great to be able to do a docker import from a checked out codebase in Windows.
ubuntu:~$ uname -a
Linux ip-10-85-147-7 3.2.0-36-virtual #57-Ubuntu SMP Tue Jan 8 22:04:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Pretty stable so far (200 docker containers running on the box)Anybody knows if making docker run natively on Windows is possible ? (is there any sort of LXC like feature in Windows ?)
Unless you're talking about running this as a Linux VM on a Windows host, in which case, sure - why not?