Smokeping version call depends on curl

This commit is contained in:
Tristan Crichton 2021-03-29 12:08:59 +01:00
parent c7d9cfb44d
commit 533fe52f42
3 changed files with 6 additions and 3 deletions

View File

@ -12,6 +12,8 @@ COPY tcpping /defaults/
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl && \
if [ -z ${SMOKEPING_VERSION+x} ]; then \
SMOKEPING_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:smokeping$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
@ -23,7 +25,6 @@ RUN \
apache-mod-fcgid \
bc \
bind-tools \
curl \
font-noto-cjk \
openssh-client \
smokeping==${SMOKEPING_VERSION} \

View File

@ -12,6 +12,8 @@ COPY tcpping /defaults/
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl && \
if [ -z ${SMOKEPING_VERSION+x} ]; then \
SMOKEPING_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:smokeping$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
@ -23,7 +25,6 @@ RUN \
apache-mod-fcgid \
bc \
bind-tools \
curl \
font-noto-cjk \
openssh-client \
smokeping==${SMOKEPING_VERSION} \

View File

@ -12,6 +12,8 @@ COPY tcpping /defaults/
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl && \
if [ -z ${SMOKEPING_VERSION+x} ]; then \
SMOKEPING_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:smokeping$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
@ -23,7 +25,6 @@ RUN \
apache-mod-fcgid \
bc \
bind-tools \
curl \
font-noto-cjk \
openssh-client \
smokeping==${SMOKEPING_VERSION} \