mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +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
|
||||
|
||||
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 \
|
||||
&& webhook --version
|
||||
&& webhook -version
|
||||
|
||||
WORKDIR /etc/webhook
|
||||
VOLUME /etc/webhook
|
||||
@ -23,4 +40,4 @@ EXPOSE 9000
|
||||
|
||||
ENTRYPOINT ["webhook"]
|
||||
# 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…
Reference in New Issue
Block a user