Docker build for webhook (https://github.com/adnanh/webhook/)
972
A Docker container to setup a webhook.
Create a directory conf to hold hooks config and scripts. Create hooks.json in conf directory. For instance.
[
{
"id": "test-webhook",
"execute-command": "/conf/test-webhook.sh",
"command-working-directory": "/conf",
}
]
Also create a script in the conf directory that you've referenced in hooks.json.
From within the conf directory run docker mounting the current dir as /conf and mapping port 9000 to the host:
$ docker run -p 9000:9000 -v `pwd`:/conf -d daveoxley/webhook
Content type
Image
Digest
Size
216.8 MB
Last updated
about 10 years ago
docker pull iadev/webhook