Created
June 17, 2015 09:22
-
-
Save robertoaloi/9bb95c620803baef2d7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos6 | |
RUN yum update -y && yum install -y https://www.rabbitmq.com/releases/erlang/erlang-17.4-1.el6.x86_64.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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