Pull your nodejs project git code into a data volume and trigger node event via Webhook.
2.2K
Not maintained anymore, please visit new Docker. Here
Pull your nodejs project git code into a data volume and trigger node event via Webhook.
This image is based on Alpine Linux image, which is a 166MB image.
Download size of this image is:
Docker hub image: funnyzak/git-webhook-node
Docker Pull Command: docker pull funnyzak/git-webhook-node
Webhook Url: http://hostname:9000/hooks/git-webhook?token=HOOK_TOKEN
The following flags are a list of all the currently supported options that can be changed by passing in the variables to docker with the -e flag.
ssh-keygen -t rsa -b 4096 -C "[email protected]" -N "" -f ./id_rsa
version: '3'
services:
hookserver:
image: funnyzak/git-webhook-node
privileged: true
container_name: git-hook
working_dir: /app/code
logging:
driver: 'json-file'
options:
max-size: '1g'
tty: true
environment:
- TZ=Asia/Shanghai
- LANG=C.UTF-8
- USE_HOOK=1
- HOOK_TOKEN=hello
- GIT_REPO=https://github.com/vuejs/vuepress.git
- GIT_BRANCH=master
- GIT_EMAIL=youremail
- GIT_NAME=yourname
- STARTUP_COMMANDS=echo "STARTUP_COMMANDS helllo"
- AFTER_PULL_COMMANDS=echo "AFTER_PULL_COMMANDS hello"
- BEFORE_PULL_COMMANDS=echo "AFTER_PULL_COMMANDS hello"
restart: on-failure
ports:
- 1001:9000
volumes:
- ./custom_scripts:/custom_scripts
- ./code:/app/code
- ./ssh:/root/.ssh
Content type
Image
Digest
Size
199.1 MB
Last updated
over 6 years ago
docker pull funnyzak/git-webhook-node