Merge pull request #36 from regno-node/nurviro-patch-1

Use clone depth of 1 to speed up build times
This commit is contained in:
knaccc
2021-07-15 13:40:38 +01:00
committed by GitHub
+2 -2
View File
@@ -54,7 +54,7 @@ containerId=$(docker run -td --rm ubuntu)
docker exec -ti $containerId bash -c '\
apt-get update \
&& apt-get -y install git wget zip unzip \
&& git clone https://github.com/i2p-zero/i2p-zero.git \
&& git clone https://github.com/i2p-zero/i2p-zero.git --depth 1 \
&& cd i2p-zero && bash bin/build-all-and-zip.sh'
docker cp $containerId:/i2p-zero/dist-zip ./
docker container stop $containerId
@@ -70,7 +70,7 @@ containerId=$(sudo docker run -td --rm ubuntu)
sudo docker exec -ti $containerId bash -c '\
apt-get update \
&& apt-get -y install git wget zip unzip \
&& git clone https://github.com/i2p-zero/i2p-zero.git \
&& git clone https://github.com/i2p-zero/i2p-zero.git --depth 1 \
&& cd i2p-zero && bash bin/build-all-and-zip.sh'
sudo docker cp $containerId:/i2p-zero/dist-zip ./
sudo docker container stop $containerId