Skip to content

Instantly share code, notes, and snippets.

@dmitryrck
Last active October 10, 2016 23:37
Show Gist options
  • Save dmitryrck/7d02bf2482acc298075f852d92190bf6 to your computer and use it in GitHub Desktop.
Save dmitryrck/7d02bf2482acc298075f852d92190bf6 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Using: COPY . /var/app"
set -xe
docker build -t tmp123 .
echo '' >> config/application.rb
docker build -t tmp123 .
Using: COPY . /var/app
# First build
Sending build context to Docker daemon 539.1 kB
Sending build context to Docker daemon 539.1 kB
Step 1 : FROM ruby:2.2.1
---> aca1c061bdd2
Step 2 : MAINTAINER marko@codeship.com
---> Using cache
---> b3a72a81bf8d
Step 3 : RUN apt-get update && apt-get install -y build-essential locales nodejs unzip libxml2-utils
---> Using cache
---> 308eda7fd158
Step 4 : RUN locale-gen pt_BR.UTF-8
---> Using cache
---> 44b18dc7f2e5
Step 5 : ENV LANG pt_BR.UTF-8
---> Using cache
---> 734b65a6feea
Step 6 : ENV LANGUAGE pt_BR:pt
---> Using cache
---> 78d5035d7234
Step 7 : ENV LC_ALL pt_BR.UTF-8
---> Using cache
---> 4aed8bc478f8
Step 8 : WORKDIR /tmp
---> Using cache
---> 66e18c27558c
Step 9 : COPY Gemfile Gemfile
---> Using cache
---> ab0cf35c6941
Step 10 : COPY Gemfile.lock Gemfile.lock
---> Using cache
---> 6c8c67df7740
Step 11 : RUN bundle install --jobs=20
---> Using cache
---> 6a5eca2827a3
Step 12 : COPY . /var/app
---> Using cache
---> af13735947d1
Step 13 : COPY config/chewy.yml.template /var/app/config/chewy.yml
---> Using cache
---> ce6a1495c7f6
Step 14 : COPY config/database.yml.template /var/app/config/database.yml
---> Using cache
---> 6b927951dae9
Step 15 : WORKDIR /var/app
---> Using cache
---> 1227f96d07d3
Successfully built 1227f96d07d3
# Second build
Sending build context to Docker daemon 539.1 kB
Sending build context to Docker daemon 539.1 kB
Step 1 : FROM ruby:2.2.1
---> aca1c061bdd2
Step 2 : MAINTAINER marko@codeship.com
---> Using cache
---> b3a72a81bf8d
Step 3 : RUN apt-get update && apt-get install -y build-essential locales nodejs unzip libxml2-utils
---> Using cache
---> 308eda7fd158
Step 4 : RUN locale-gen pt_BR.UTF-8
---> Using cache
---> 44b18dc7f2e5
Step 5 : ENV LANG pt_BR.UTF-8
---> Using cache
---> 734b65a6feea
Step 6 : ENV LANGUAGE pt_BR:pt
---> Using cache
---> 78d5035d7234
Step 7 : ENV LC_ALL pt_BR.UTF-8
---> Using cache
---> 4aed8bc478f8
Step 8 : WORKDIR /tmp
---> Using cache
---> 66e18c27558c
Step 9 : COPY Gemfile Gemfile
---> Using cache
---> ab0cf35c6941
Step 10 : COPY Gemfile.lock Gemfile.lock
---> Using cache
---> 6c8c67df7740
Step 11 : RUN bundle install --jobs=20
---> Using cache
---> 6a5eca2827a3
Step 12 : COPY . /var/app
---> d03cc17a1f66
Removing intermediate container 72fee0039d7c
Step 13 : COPY config/chewy.yml.template /var/app/config/chewy.yml
---> 9acf3771cf8d
Removing intermediate container fd366839a466
Step 14 : COPY config/database.yml.template /var/app/config/database.yml
---> 85bbb7ddf0f6
Removing intermediate container 5557ff5d3e73
Step 15 : WORKDIR /var/app
---> Running in c7469a2ae6c9
---> 0b8294e798ad
Removing intermediate container c7469a2ae6c9
Successfully built 0b8294e798ad
Using: COPY . /var/app
# First
Sending build context to Docker daemon 538.1 kB
Sending build context to Docker daemon 538.1 kB
Step 1 : FROM ruby:2.2.1
---> aca1c061bdd2
Step 2 : MAINTAINER marko@codeship.com
---> Using cache
---> b3a72a81bf8d
Step 3 : RUN apt-get update && apt-get install -y build-essential locales nodejs unzip libxml2-utils
---> Using cache
---> 308eda7fd158
Step 4 : RUN locale-gen pt_BR.UTF-8
---> Using cache
---> 44b18dc7f2e5
Step 5 : ENV LANG pt_BR.UTF-8
---> Using cache
---> 734b65a6feea
Step 6 : ENV LANGUAGE pt_BR:pt
---> Using cache
---> 78d5035d7234
Step 7 : ENV LC_ALL pt_BR.UTF-8
---> Using cache
---> 4aed8bc478f8
Step 8 : WORKDIR /tmp
---> Using cache
---> 66e18c27558c
Step 9 : COPY Gemfile Gemfile
---> Using cache
---> ab0cf35c6941
Step 10 : COPY Gemfile.lock Gemfile.lock
---> Using cache
---> 6c8c67df7740
Step 11 : RUN bundle install --jobs=20
---> Using cache
---> 6a5eca2827a3
Step 12 : WORKDIR /app
---> Using cache
---> 8cf7debe315c
Successfully built 8cf7debe315c
# Second
Sending build context to Docker daemon 538.1 kB
Sending build context to Docker daemon 538.1 kB
Step 1 : FROM ruby:2.2.1
---> aca1c061bdd2
Step 2 : MAINTAINER marko@codeship.com
---> Using cache
---> b3a72a81bf8d
Step 3 : RUN apt-get update && apt-get install -y build-essential locales nodejs unzip libxml2-utils
---> Using cache
---> 308eda7fd158
Step 4 : RUN locale-gen pt_BR.UTF-8
---> Using cache
---> 44b18dc7f2e5
Step 5 : ENV LANG pt_BR.UTF-8
---> Using cache
---> 734b65a6feea
Step 6 : ENV LANGUAGE pt_BR:pt
---> Using cache
---> 78d5035d7234
Step 7 : ENV LC_ALL pt_BR.UTF-8
---> Using cache
---> 4aed8bc478f8
Step 8 : WORKDIR /tmp
---> Using cache
---> 66e18c27558c
Step 9 : COPY Gemfile Gemfile
---> Using cache
---> ab0cf35c6941
Step 10 : COPY Gemfile.lock Gemfile.lock
---> Using cache
---> 6c8c67df7740
Step 11 : RUN bundle install --jobs=20
---> Using cache
---> 6a5eca2827a3
Step 12 : WORKDIR /app
---> Using cache
---> 8cf7debe315c
Successfully built 8cf7debe315c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment