Did you ever wanted to deploy your own docker-image with only git-push ? Well I've got solution for you :) Check-it-out :)
S0-E14/E30 :)
Project in Github
First what you need is a Github repository. Then what you need is to enable docker integration on the project with :
Settings -> Integrations & services -> Add Service -> "Docker"
Docker Hub with access
When you have setup your github repository, what you need to do is go to Docker Hub and create your account if you haven't done it yet.
Then go to Create
-> Create Automated Build
-> Link Accounts
Or go to this site.
Then you will link your github account.
After this point you will be able to make automated builds for docker-images with git-pushes.
Docker image on Docker Hub with push
I've created a github-test-repository called docker_discovery that is linked now with github.
Dockerfile :
FROM alpine
MAINTAINER anselmos@users.noreply.github.com
RUN apk update
RUN apk add vim
You can check my first successful build here
Acknowledgements
- Remote Build Triggers for Docker-hub
- Github service hooks for docker-hub
- Practival devops use case github jenkins docker
- How to Automate docker builds end to end
Thanks!
That's it :) Comment, share or don't :)
If you have any suggestions what I should blog about in the next articles - please give me a hint :)
See you tomorrow! Cheers!
Comments
comments powered by Disqus