Provides an environment to run the flynn development code within a docker container. Source directories are shared between the host and the docker container.
- The prebuilt docker (step 1 below) container sets GOPATH to /root/flynn. The host machines GOPATH directory should be shared as a volume with the container.
- The container is given the hostname flynn.
- docker pull sidkurias/flynn-dev-docker.
This will pull the prebuilt image to run a 'docker in docker' env that works with flynn. - Run the container.
docker run -h flynn -privileged -v GOPATH on HOST:/root/flynn -i -t sidkurias/flynn-dev-docker - cd /root/flynn
- go get github.com/sid-kurias/flynn-dev-docker
- cd src/github.com/sid-kurias/flynn-dev-docker
- Edit the Procfile. Change the ip address that lorne and shelf need to the ip
address of the container's eth0 interface. This can be obtained by executing:
ip addr show - make
- cd nodejs-example
- git push flynn master
- Once the build is complete execute
curl http://IPADDR:55000 (addr is got from step 6)
- Docker is installed
- godeb is installed
wget -O godeb.tar.gz https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz
tar -zxvf godeb.tar.gz - The godeb, docker and wrapdocker binaries should be in the same directory as the Dockerfile.
- docker build -t 'YOUR TAG NAME' .