osmith submitted this 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(-)
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.