Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
feat(builder): cache progrium/cedarish image
Browse files Browse the repository at this point in the history
This will reduce boot time significantly by making the images
for progrium/cedarish (the image that both deis/slugrunner and
deis/slugbuilder rely on) loaded into the docker daemon before the
deis/slug* images are pulled from the registry.
  • Loading branch information
Matthew Fisher committed Jul 24, 2014
1 parent 590499e commit d5102ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ RUN chown -R $GITUSER:$GITUSER $GITHOME
# let the git user run `sudo /home/git/builder` (not writeable)
RUN echo "%git ALL=(ALL:ALL) NOPASSWD:/home/git/builder" >> /etc/sudoers

# HACK: import progrium/cedarish as a tarball
# see https://github.com/deis/deis/issues/1027
RUN wget -O /progrium_cedarish.tar --progress=dot:giga \
https://s3-us-west-2.amazonaws.com/opdemand/progrium_cedarish_2014.05.27.tar

# add the current build context to /app
ADD . /app
RUN chown -R root:root /app
Expand Down
4 changes: 4 additions & 0 deletions builder/bin/boot
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ while [[ ! -e /var/run/docker.sock ]]; do
sleep 1
done

# HACK: load progrium/cedarish tarball for faster boot times
# see https://github.com/deis/deis/issues/1027
docker load -i /progrium_cedarish.tar

# pull required images
docker pull deis/slugbuilder:latest
docker pull deis/slugrunner:latest
Expand Down

0 comments on commit d5102ed

Please sign in to comment.