Skip to content

Instantly share code, notes, and snippets.

@robertoaloi
Created June 17, 2015 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertoaloi/9bb95c620803baef2d7f to your computer and use it in GitHub Desktop.
Save robertoaloi/9bb95c620803baef2d7f to your computer and use it in GitHub Desktop.
FROM centos:centos6
RUN yum update -y && yum install -y https://www.rabbitmq.com/releases/erlang/erlang-17.4-1.el6.x86_64.rpm
(Docker 1.6.2)
sudo docker build -t test .
# The following is fast ~1s
sudo docker run -it test erl
{T, V} = timer:tc(os, cmd, ["grep -ir test /usr"]), T.
# The following is slow ~10s
sudo docker run -it test bash
erl
{T, V} = timer:tc(os, cmd, ["grep -ir test /usr"]), T.
# The following is fast ~1s
sudo docker run -it test sh
erl
{T, V} = timer:tc(os, cmd, ["grep -ir test /usr"]), T.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment