Deployments repo - Docker and scripts
update label of all manager node
docker node update --label-add node_role=generic workflow
docker node update --label-add state_anchor=true workflow
docker node update --label-add node_role=generic emma
docker node update --label-add node_role=generic dev-server-1
docker node update --label-add node_role=generic dev-server-3
Clone repo to all manager role into src/ git clone https://github.com/cr-ste-justine/devops.git
-
Create a single node docker swarm cluster (if you got a single networking interface, docker swarm init should work without having to pass extra arguments)
-
Type the following:
docker node update --label-add app_role=generic $(docker node ls -q)
docker node update --label-add state_anchor=true $(docker node ls -q)