Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-hooker

Docker hooker is a simple webhook that listens for a call and executes a command / script. This can be useful to deploy an application / container after an external build finishes.

The example deploy script in this repo, pulls the latest docker image and restarts a container.

Ofcourse docker-hooker itself can run in a container as well :)

Usage

As docker container:

docker run -d -p 8080:8080 -v $HOME/.dockercfg:/root/.dockercfg -v $HOME/my_custom_deploy_script.sh:/usr/src/app/deploy.sh -v /var/run/docker.sock:/var/run/docker.sock --name docker-hooker -e DEPLOY_ENDPOINT=mysecretendpoint blendle/docker-hooker

or without docker:

bundle install
export DEPLOY_ENDPOINT=mysecretendpoint 
ruby docker-hooker.rb
Docker Pull Command
Owner
blendle
Source Repository

Comments (0)