Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
#28 due to multiple reports changing logic to do full clone and check…
Browse files Browse the repository at this point in the history
…out at commit
  • Loading branch information
thelamer committed Feb 8, 2019
1 parent 95a1ffb commit 4274a79
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ LABEL maintainer="sparklyballs"
RUN \
echo "**** install system packages ****" && \
apk add --no-cache \
git \
nodejs && \
echo "**** install pip packages ****" && \
pip install --no-cache-dir -U \
Expand All @@ -22,14 +23,9 @@ RUN \
MYLAR_COMMIT=$(curl -sX GET https://api.github.com/repos/evilhero/mylar/commits/master \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/mylar && \
curl -o \
/tmp/mylar.tar.gz -L \
"https://github.com/evilhero/mylar/archive/${MYLAR_COMMIT}.tar.gz" && \
tar xf \
/tmp/mylar.tar.gz -C \
/app/mylar --strip-components=1 && \
git clone https://github.com/evilhero/mylar.git /app/mylar && \
cd /app/mylar && \
git checkout ${MYLAR_COMMIT} && \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
Expand Down
12 changes: 4 additions & 8 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ LABEL maintainer="sparklyballs"
RUN \
echo "**** install system packages ****" && \
apk add --no-cache \
git \
nodejs && \
echo "**** install pip packages ****" && \
pip install --no-cache-dir -U \
Expand All @@ -25,14 +26,9 @@ RUN \
MYLAR_COMMIT=$(curl -sX GET https://api.github.com/repos/evilhero/mylar/commits/master \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/mylar && \
curl -o \
/tmp/mylar.tar.gz -L \
"https://github.com/evilhero/mylar/archive/${MYLAR_COMMIT}.tar.gz" && \
tar xf \
/tmp/mylar.tar.gz -C \
/app/mylar --strip-components=1 && \
git clone https://github.com/evilhero/mylar.git /app/mylar && \
cd /app/mylar && \
git checkout ${MYLAR_COMMIT} && \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
Expand Down
12 changes: 4 additions & 8 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ LABEL maintainer="sparklyballs"
RUN \
echo "**** install system packages ****" && \
apk add --no-cache \
git \
nodejs && \
echo "**** install pip packages ****" && \
pip install --no-cache-dir -U \
Expand All @@ -25,14 +26,9 @@ RUN \
MYLAR_COMMIT=$(curl -sX GET https://api.github.com/repos/evilhero/mylar/commits/master \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/app/mylar && \
curl -o \
/tmp/mylar.tar.gz -L \
"https://github.com/evilhero/mylar/archive/${MYLAR_COMMIT}.tar.gz" && \
tar xf \
/tmp/mylar.tar.gz -C \
/app/mylar --strip-components=1 && \
git clone https://github.com/evilhero/mylar.git /app/mylar && \
cd /app/mylar && \
git checkout ${MYLAR_COMMIT} && \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
Expand Down

0 comments on commit 4274a79

Please sign in to comment.