1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-12 04:23:04 +02:00

add webhook

This commit is contained in:
kev 2015-11-05 11:32:10 +08:00
parent 008dec4b5b
commit 48e3c6f377
4 changed files with 29 additions and 0 deletions

8
webhook/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
#
# Dockerfile for webhook
#
FROM scratch
COPY webhook /
ENTRYPOINT ["/webhook"]
CMD ["-help"]

13
webhook/Makefile Normal file
View File

@ -0,0 +1,13 @@
.PHONY: webhook
export GOPATH = /tmp/go
export GOOS = linux
export GOARCH = amd64
webhook:
go get -d github.com/adnanh/webhook
go build --ldflags '-s -extldflags "-static"' -i -o webhook github.com/adnanh/webhook
clean:
rm -rf $(GOPATH)
rm -f webhook

8
webhook/README.md Normal file
View File

@ -0,0 +1,8 @@
webhook
=======
[webhook][1] is a lightweight configurable tool written in Go, that allows you
to easily create HTTP endpoints (hooks) on your server, which you can use to
execute configured commands.
[1]: https://github.com/adnanh/webhook

BIN
webhook/webhook Executable file

Binary file not shown.