Using Gitlab for CI/CD on Docker-swarm
What is your audience?
This is for DevOps users with intermediate experience which wants to see how to quickly and easily use GitLab-ci to deploy on a Docker Swarm Cluster
What are the requirements?
- a GitLab account
- a valid Play-With-Docker session
What's your ETA?
This is the hard question ;) I hope several days only since today (08/08/2017)
Proposal
Writing sample
This is an exemple tutorial I Submit on Play-with-docker about using Docker Swarm to deploy micro-service apps:
In this proposal I would like to show you how to use a Docker Swarm within your GitLab Repository for Pipelines and Environments
Introduction
Outlines
If we comes their that means that we have our project on Gitlab, and we wants to automatically deploy it on a Docker Swarm cluster.
For that purpose, I will show you how to create a Docker Swarm cluster using Play-With-Docker. Note, that this method is only for you to ease to follow this tutorial, but the Play-with-docker cluster will only be available for 4 hours, afterwards it will be discarded. So If you have a Swarm Cluster on your own It would be better to uses yours.
Example project
This will be this one https://gitlab.com/allamand/example-voting-app/
The goal it to build, test and deploy to a docker swarm the docker voting app example. The deployment will be done on Play-with-docker instances, where we set-up a One docker swarm instance, deploy Traefik loadbalancer, in order to proxify requests to our voting application, then deploy the voting app.
Let me know If this sounds correct for you.