Skip to content

Instantly share code, notes, and snippets.

@jschneiderhan
Created August 18, 2014 18:46
Show Gist options
  • Save jschneiderhan/97b2c8bf32043a85e18c to your computer and use it in GitHub Desktop.
Save jschneiderhan/97b2c8bf32043a85e18c to your computer and use it in GitHub Desktop.
Getting exit code 3 from slugbuilder
# Cat tar contents into container
docker@boot2docker:~$ id=$(cat source.tar | docker run -i -a stdin flynn/slugbuilder)
docker@boot2docker:~$ docker wait $id
3
docker@boot2docker:~$ docker logs $id
-----> Ruby app detected
-----> Compiling Ruby/Rails
...
-----> Compiled slug size is 71M
# Mount volume and run from inside container
docker@boot2docker:~$ ls
boot2docker, please format-me source.tar
docker@boot2docker:~$ docker run -ti -v /home/docker/:/var/source/ --entrypoint bash flynn/slugbuilder -s
slugbuilder@27b03669cb52:/$ cat /var/source/source.tar | /tmp/builder/build.sh
-----> Ruby app detected
-----> Compiling Ruby/Rails
...
-----> Compiled slug size is 71M
slugbuilder@27b03669cb52:/$ echo $?
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment