Webhook: How to install webhook in linux alpine

Created on 22 Nov 2018  路  3Comments  路  Source: adnanh/webhook

is there any apk package for webhook

question

Most helpful comment

@nkv16786 look further at what @adnanh posted

https://github.com/almir/docker-webhook/blob/master/Dockerfile#L7

Extract the commands from the Docker RUN statement to install manually.

curl -L --silent -o webhook.tar.gz https://github.com/adnanh/webhook/archive/${WEBHOOK_VERSION}.tar.gz && \
            tar -xzf webhook.tar.gz --strip 1 &&  \
            go get -d && \
            go build -o /usr/local/bin/webhook && \
            apk del --purge build-deps && \
            rm -rf /var/cache/apk/* && \
            rm -rf /go

Don't forget to set the WEBHOOK_VERSION variable first as per https://github.com/almir/docker-webhook/blob/master/Dockerfile#L5

All 3 comments

Hi, there are no official apk packages, I presume you're asking because you woulid like to run webhook in Docker? If that is the case, please check out almir/docker-webhook

I have a alpine container, inside that i want to install webhook. I am not able to install it directly as there are no apk package. I tried with binary distribution also but no luck

@nkv16786 look further at what @adnanh posted

https://github.com/almir/docker-webhook/blob/master/Dockerfile#L7

Extract the commands from the Docker RUN statement to install manually.

curl -L --silent -o webhook.tar.gz https://github.com/adnanh/webhook/archive/${WEBHOOK_VERSION}.tar.gz && \
            tar -xzf webhook.tar.gz --strip 1 &&  \
            go get -d && \
            go build -o /usr/local/bin/webhook && \
            apk del --purge build-deps && \
            rm -rf /var/cache/apk/* && \
            rm -rf /go

Don't forget to set the WEBHOOK_VERSION variable first as per https://github.com/almir/docker-webhook/blob/master/Dockerfile#L5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zoenglinghou picture zoenglinghou  路  4Comments

ptflp picture ptflp  路  5Comments

eschizoid picture eschizoid  路  4Comments

macau23 picture macau23  路  6Comments

dcj picture dcj  路  5Comments