mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2025-12-18 12:44:18 +01:00
Added runitor to handle HC pings
This commit is contained in:
@@ -7,11 +7,14 @@ RUN DOWNLOAD_ARCH=$(echo ${TARGETPLATFORM} | cut -d"/" -f 2) \
|
||||
&& DOWNLOAD_URL=$(curl -s https://api.github.com/repos/restic/restic/releases/latest | grep "browser_download_url" | grep "linux_"${DOWNLOAD_ARCH}"\." | cut -d\" -f4) \
|
||||
&& curl --retry 3 -L -s -o restic.bz2 ${DOWNLOAD_URL} \
|
||||
&& bunzip2 restic.bz2 \
|
||||
&& chmod +x restic
|
||||
&& chmod +x restic \
|
||||
&& DOWNLOAD_URL=$(curl -s https://api.github.com/repos/bdd/runitor/releases/latest | grep "browser_download_url" | grep "linux-"${DOWNLOAD_ARCH} | cut -d\" -f4) \
|
||||
&& curl --retry 3 -L -s -o runitor ${DOWNLOAD_URL} \
|
||||
&& chmod +x runitor
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=builder restic /usr/bin/
|
||||
COPY --from=builder restic runitor /usr/bin/
|
||||
|
||||
RUN apk add --no-cache bash curl jq openssh-client dcron tzdata docker
|
||||
|
||||
|
||||
Reference in New Issue
Block a user