Skip to content

Commit 7412069

Browse files
author
Matthew Fisher
committed
Merge pull request #2754 from bacongobbler/compress-cedarish-image
feat(builder): compress progrium/cedarish
2 parents e2d7dbc + 8f8a226 commit 7412069

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ insert_final_newline = true
1010
indent_style = space
1111
indent_size = 4
1212

13+
[Makefile]
14+
indent_style = tab
15+
1316
[*.go]
1417
indent_style = tab

builder/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build

builder/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,8 @@ test-unit:
7272
test-functional:
7373
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
7474
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
75+
76+
cedarish/build:
77+
mkdir -p build
78+
docker pull progrium/cedarish:latest
79+
docker save progrium/cedarish:latest | gzip -9 > build/progrium_cedarish_$(shell date "+%Y_%m_%d").tar.gz

builder/image/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ RUN echo "%git ALL=(ALL:ALL) NOPASSWD:/home/git/builder" >> /etc/sudoers
4343

4444
# HACK: import progrium/cedarish as a tarball
4545
# see https://github.com/deis/deis/issues/1027
46-
RUN curl -#SL -o /progrium_cedarish.tar \
47-
https://s3-us-west-2.amazonaws.com/opdemand/progrium_cedarish_2014_10_01.tar
46+
RUN curl -#SL -o /progrium_cedarish.tar.gz \
47+
https://s3-us-west-2.amazonaws.com/opdemand/progrium_cedarish_2014_12_15.tar.gz
4848

4949
# define the execution environment
5050
# use VOLUME to remove /var/lib/docker from copy-on-write for performance

builder/image/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ done
6363
# see https://github.com/deis/deis/issues/1027
6464
if ! docker history progrium/cedarish >/dev/null 2>/dev/null ; then
6565
echo "Loading cedarish..."
66-
docker load -i /progrium_cedarish.tar
66+
gzip -dc /progrium_cedarish.tar.gz | docker load
6767
else
6868
echo "Cedarish already loaded"
6969
fi

0 commit comments

Comments
 (0)