Skip to content

Commit d5102ed

Browse files
author
Matthew Fisher
committed
feat(builder): cache progrium/cedarish image
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.
1 parent 590499e commit d5102ed

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

builder/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ RUN chown -R $GITUSER:$GITUSER $GITHOME
3535
# let the git user run `sudo /home/git/builder` (not writeable)
3636
RUN echo "%git ALL=(ALL:ALL) NOPASSWD:/home/git/builder" >> /etc/sudoers
3737

38+
# HACK: import progrium/cedarish as a tarball
39+
# see https://github.com/deis/deis/issues/1027
40+
RUN wget -O /progrium_cedarish.tar --progress=dot:giga \
41+
https://s3-us-west-2.amazonaws.com/opdemand/progrium_cedarish_2014.05.27.tar
42+
3843
# add the current build context to /app
3944
ADD . /app
4045
RUN chown -R root:root /app

builder/bin/boot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ while [[ ! -e /var/run/docker.sock ]]; do
5353
sleep 1
5454
done
5555

56+
# HACK: load progrium/cedarish tarball for faster boot times
57+
# see https://github.com/deis/deis/issues/1027
58+
docker load -i /progrium_cedarish.tar
59+
5660
# pull required images
5761
docker pull deis/slugbuilder:latest
5862
docker pull deis/slugrunner:latest

0 commit comments

Comments
 (0)