Visitar URL original
adjust supercronic download to allow multiarch builds · stringer-rss/stringer@cc4fad5 · GitHub
Skip to content

Commit cc4fad5

Browse files
authored
adjust supercronic download to allow multiarch builds
1 parent decbe79 commit cc4fad5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎Dockerfile‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales \
2222

2323
ENV LC_ALL C.UTF-8
2424

25-
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.3/supercronic-linux-amd64 \
26-
SUPERCRONIC=supercronic-linux-amd64 \
27-
SUPERCRONIC_SHA1SUM=96960ba3207756bb01e6892c978264e5362e117e
25+
ARG ARCH=amd64
26+
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.3/supercronic-linux-$ARCH \
27+
SUPERCRONIC=supercronic-linux-$ARCH \
28+
SUPERCRONIC_amd64_SHA1SUM=96960ba3207756bb01e6892c978264e5362e117e \
29+
SUPERCRONIC_arm_SHA1SUM=8c1e7af256ee35a9fcaf19c6a22aa59a8ccc03ef \
30+
SUPERCRONIC_arm64_SHA1SUM=f0e8049f3aa8e24ec43e76955a81b76e90c02270 \
31+
SUPERCRONIC_SHA1SUM="SUPERCRONIC_${ARCH}_SHA1SUM"
2832

2933
RUN curl -fsSLO "$SUPERCRONIC_URL" \
30-
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
34+
&& echo "${!SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
3135
&& chmod +x "$SUPERCRONIC" \
3236
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
3337
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic

0 commit comments

Comments
 (0)