2015-11-05 05:32:10 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for webhook
|
|
|
|
#
|
|
|
|
|
2021-03-26 06:46:59 +02:00
|
|
|
FROM alpine:3
|
2019-12-27 06:21:51 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
2024-02-20 12:27:53 +02:00
|
|
|
|
|
|
|
ARG WEBHOOK_VERSION=2.8.1
|
|
|
|
ARG WEBHOOK_OS=linux
|
|
|
|
ARG WEBHOOK_ARCH=amd64
|
|
|
|
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 \
|
2024-02-20 15:01:16 +02:00
|
|
|
&& 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 \
|
2024-02-20 12:27:53 +02:00
|
|
|
&& curl -sSL $WEBHOOK_URL | tar xz -C /usr/local/bin ${WEBHOOK_FILE%.tar.gz}/webhook --strip 1 \
|
2024-02-20 15:01:16 +02:00
|
|
|
&& webhook -version
|
2024-02-20 12:27:53 +02:00
|
|
|
|
2019-01-09 13:01:55 +02:00
|
|
|
WORKDIR /etc/webhook
|
2019-01-09 12:59:22 +02:00
|
|
|
VOLUME /etc/webhook
|
2024-02-20 12:27:53 +02:00
|
|
|
|
2015-11-05 06:20:42 +02:00
|
|
|
EXPOSE 9000
|
2024-02-20 12:27:53 +02:00
|
|
|
|
2015-11-05 06:20:42 +02:00
|
|
|
ENTRYPOINT ["webhook"]
|
2024-02-20 12:27:53 +02:00
|
|
|
# See: https://github.com/adnanh/webhook/blob/master/docs/Webhook-Parameters.md
|
2024-02-20 15:01:16 +02:00
|
|
|
CMD ["-hooks=hooks.json", "-hooks=hooks.yaml", "-hotreload", "-port=9000", "-template", "-urlprefix=hooks"]
|