Browse code

Fetch the "busybox" image source so we can build locally instead of pulling during the integration tests

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)

Tianon Gravi authored on 2014/04/15 04:35:54
Showing 2 changed files
... ...
@@ -82,6 +82,9 @@ RUN	go get code.google.com/p/go.tools/cmd/cover
82 82
 # TODO replace FPM with some very minimal debhelper stuff
83 83
 RUN	gem install --no-rdoc --no-ri fpm --version 1.0.2
84 84
 
85
+# Get the "busybox" image source so we can build locally instead of pulling
86
+RUN	git clone https://github.com/jpetazzo/docker-busybox.git /docker-busybox
87
+
85 88
 # Setup s3cmd config
86 89
 RUN	/bin/echo -e '[default]\naccess_key=$AWS_ACCESS_KEY\nsecret_key=$AWS_SECRET_KEY' > /.s3cfg
87 90
 
... ...
@@ -31,7 +31,11 @@ bundle_test_integration_cli() {
31 31
 	sleep 2
32 32
 	
33 33
 	if ! docker inspect busybox &> /dev/null; then
34
-		( set -x; docker pull busybox )
34
+		if [ -d /docker-busybox ]; then
35
+			( set -x; docker build -t busybox /docker-busybox )
36
+		else
37
+			( set -x; docker pull busybox )
38
+		fi
35 39
 	fi
36 40
 
37 41
 	bundle_test_integration_cli