Docker Image for deploy control-repo by r10k, using Gogs repository and webhooks.
2.0K
Docker Image for deploy control-repo by r10k, using Gogs repository and webhooks.
This image using a webservice for trigger r10k command. The webservice was created for Gogs webhooks only.
This image are built and hosted automatically on Docker Hub at ignoto/r10k-webhook
Pull with:
$ docker pull ignoto/r10k-webhook
The container has two ENV variables for the config:
PORT: The port that listen the webservice.SECRET: The secret used by Gogs Webhook.If not set, the following defaults will be used:
9001ChangemeFor the SSH keys, the container look for the key files at /srv/deploy-keys/private-key
and /srv/deploy-keys/private-key.pub and will use them if found.
First you need Gogs server. For the control-repo proyect, you need a webhook in this proyect with:
SECRET ENV variable.Second, you need to add the /etc/puppetlabs/ in the container. It's necessary that Puppet has well config, with the r10k folder and config file.
The execution of the container has this form:
$ docker run -p 9001:9001 \
-v /srv/puppetlabs:/etc/puppetlabs \
-v /srv/gogs-deploy:/srv/deploy-keys \
ignoto/r10k-webhook
Please submit and comment on bug reports and feature requests.
To submit a patch:
git checkout -b my-new-feature).git commit -am 'Add some feature').git push origin my-new-feature).Content type
Image
Digest
Size
35.5 MB
Last updated
over 9 years ago
docker pull ignoto/r10k-webhook