Selaa lähdekoodia

Switch docker-py clone to use an explicit commit for natural cache-busting

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Tianon Gravi 10 vuotta sitten
vanhempi
commit
3c01c971cd
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      Dockerfile

+ 4 - 1
Dockerfile

@@ -117,7 +117,10 @@ RUN git clone -b buildroot-2014.02 https://github.com/jpetazzo/docker-busybox.gi
 RUN curl -sSL -o /cirros.tar.gz https://github.com/ewindisch/docker-cirros/raw/1cded459668e8b9dbf4ef976c94c05add9bbd8e9/cirros-0.3.0-x86_64-lxc.tar.gz
 
 # Get the "docker-py" source so we can run their integration tests
-RUN git clone -b 0.7.1 https://github.com/docker/docker-py.git /docker-py
+ENV DOCKER_PY_COMMIT aa19d7b6609c6676e8258f6b900dea2eda1dbe95
+RUN git clone https://github.com/docker/docker-py.git /docker-py \
+	&& cd /docker-py \
+	&& git checkout -q $DOCKER_PY_COMMIT
 
 # Setup s3cmd config
 RUN { \