mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-13 22:06:55 +02:00
update webhook
This commit is contained in:
parent
a8a528b6b4
commit
f45929a477
@ -12,9 +12,26 @@ ARG WEBHOOK_FILE=webhook-$WEBHOOK_OS-$WEBHOOK_ARCH.tar.gz
|
|||||||
ARG WEBHOOK_URL=https://github.com/adnanh/webhook/releases/download/$WEBHOOK_VERSION/$WEBHOOK_FILE
|
ARG WEBHOOK_URL=https://github.com/adnanh/webhook/releases/download/$WEBHOOK_VERSION/$WEBHOOK_FILE
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache bash coreutils curl gcompat jq \
|
&& apk add --no-cache \
|
||||||
|
bash \
|
||||||
|
bind-tools \
|
||||||
|
ca-certificates \
|
||||||
|
coreutils \
|
||||||
|
curl \
|
||||||
|
curlie \
|
||||||
|
gawk \
|
||||||
|
gcompat \
|
||||||
|
grep \
|
||||||
|
iputils-ping \
|
||||||
|
jq \
|
||||||
|
mosquitto-clients \
|
||||||
|
openssh \
|
||||||
|
sed \
|
||||||
|
tar \
|
||||||
|
wget \
|
||||||
|
xsv \
|
||||||
&& curl -sSL $WEBHOOK_URL | tar xz -C /usr/local/bin ${WEBHOOK_FILE%.tar.gz}/webhook --strip 1 \
|
&& curl -sSL $WEBHOOK_URL | tar xz -C /usr/local/bin ${WEBHOOK_FILE%.tar.gz}/webhook --strip 1 \
|
||||||
&& webhook --version
|
&& webhook -version
|
||||||
|
|
||||||
WORKDIR /etc/webhook
|
WORKDIR /etc/webhook
|
||||||
VOLUME /etc/webhook
|
VOLUME /etc/webhook
|
||||||
@ -23,4 +40,4 @@ EXPOSE 9000
|
|||||||
|
|
||||||
ENTRYPOINT ["webhook"]
|
ENTRYPOINT ["webhook"]
|
||||||
# See: https://github.com/adnanh/webhook/blob/master/docs/Webhook-Parameters.md
|
# See: https://github.com/adnanh/webhook/blob/master/docs/Webhook-Parameters.md
|
||||||
CMD ["-hooks", "hooks.json", "-hooks", "hooks.yaml", "-hotreload", "-template", "-verbose"]
|
CMD ["-hooks=hooks.json", "-hooks=hooks.yaml", "-hotreload", "-port=9000", "-template", "-urlprefix=hooks"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user