osmith has uploaded this change for review.

View Change

asterisk-master: use git clone --depth=1

Speed up cloning the big asterisk git repositories.

Change-Id: Ifc0c2375482e39ecf2f34b93cf6f02a83da29990
---
M asterisk-master/Dockerfile
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/38/42138/1
diff --git a/asterisk-master/Dockerfile b/asterisk-master/Dockerfile
index ad8c925..dd37b33 100644
--- a/asterisk-master/Dockerfile
+++ b/asterisk-master/Dockerfile
@@ -50,7 +50,7 @@
ARG PJPROJECT_REMOTE=https://gitea.sysmocom.de/sysmocom/pjproject.git
ARG PJPROJECT_BRANCH=sysmocom/2.14

-RUN git clone $PJPROJECT_REMOTE
+RUN git clone $PJPROJECT_REMOTE -b $PJPROJECT_BRANCH --depth=1
ADD https://gitea.sysmocom.de/api/v1/repos/sysmocom/pjproject/git/refs/heads/$PJPROJECT_BRANCH /tmp/pjproject-ver

RUN cd pjproject && \
@@ -61,7 +61,7 @@
# clone asterisk
ARG ASTERISK_REMOTE=https://gitea.sysmocom.de/sysmocom/asterisk.git
ARG ASTERISK_BRANCH=sysmocom/master
-RUN git clone $ASTERISK_REMOTE
+RUN git clone $ASTERISK_REMOTE -b $ASTERISK_BRANCH --depth=1

ADD https://gitea.sysmocom.de/api/v1/repos/sysmocom/asterisk/git/refs/heads/$ASTERISK_BRANCH /tmp/asterisk-ver


To view, visit change 42138. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Ifc0c2375482e39ecf2f34b93cf6f02a83da29990
Gerrit-Change-Number: 42138
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>