Relay to push a webhook from DockerHub to Slack when a build is finished
422
Create a DockerFile like :
FROM julienstroheker/slockerENV Slack_Hook_Url 'https://hooks.slack.com/services/XXXXX/XXXXXX/XXXXXXXXXX'COPY app/redirectChannel.json /usr/src/app/redirectChannel.jsonEXPOSE 8080CMD python2 /usr/src/app/slocker.pyBuild your container Docker Build DockerFile
You'll need to modfify the redirectChannel.json with your own parameters :
{
"NameUserDocker/NameRepoDocker":"#YourSlackChannel"
}
Execute your container Docker run -d -p 8080:8080 julienstroheker/slocker
Enjoy
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featurev1.0 - Julien Stroheker
Content type
Image
Digest
Size
203.4 MB
Last updated
almost 11 years ago
docker pull julienstroheker/slocker