SlideShare a Scribd company logo
USING DOCKER SWARM 

AT PRONTO
L E S S O N L E A R N E D F R O M
www.prontotools.io
K A N O U I V I R A C H
K A N
O U I V I R A C H
A B O U T M E
Research & Development Engineer
D O C K E R S WA R M
Lesson Learned from Using Docker Swarm at Pronto
Lesson Learned from Using Docker Swarm at Pronto
M I C R O S E R V I C E S
https://www.nginx.com/blog/introduction-to-microservices/
. . H O W W E ’ V E S E T U P. .
Lesson Learned from Using Docker Swarm at Pronto
docker swarm init
docker network create 
-d overlay 
--subnet=192.168.0.0/24 
simplesat
docker service create 
--name survey 
--network simplesat 
survey:stable
docker service update 
--image survey:live survey
docker swarm join 
--token
SWMTKN-1-0nqrebfaz7qc6deimizh4tfqa
vfq5pam1qt08alxots8w5x9fv-8ii4ina9
fm640am99z1tbpfvl 
192.168.65.2:2377
docker swarm join-token manager
To add a worker to swarm
To add a manager to swarm
O U R B U I L D P I P E L I N E 

L O O K S L I K E
Check-In
BUILD PIPELINE FOR
SERVICE 1
BUILD PIPELINE FOR
SERVICE 2
BUILD PIPELINE FOR
SERVICE 3
BUILD PIPELINE FOR
SERVICE 4
Lesson Learned from Using Docker Swarm at Pronto
C O N T I N U O U S 

I N T E G R AT I O N P R O C E S S
Check - In
Static Analysis
Unit Tests
Build & Push
Push
Deploy
Production
Pull
Deploy Dev
Pull
– I N S P I R E D B Y Y E L P
Docker Images Versioning
for Continuous Delivery
docker build -t ${package}:${GIT_COMMIT}
docker tag ${package}:${GIT_COMMIT}

${package}:unstable
During the first docker build
docker tag ${package}:${GIT_COMMIT} 

${package}:stable
docker push ${package}:${GIT_COMMIT}
docker push ${package}:stable
After the tests pass
docker tag ${package}:${GIT_COMMIT} 

${package}:live
docker push ${package}:live
After deployment succeeds
. . W H AT W E ’ V E L E A R N E D . .
http://bocabraincenter.com/conditions/learning-disabilities/
Follow the practices
• One process per one container
• Use an appropriate base image (official base
image)
S E R V I C E N A M E I N T H E C O D E !
SURVEY_API_URL = 'http://survey:8000/api/'
R O L L I N G U P D AT E S 

F… C O O L F E AT U R E !
I S
Effortless with Blue-Green
Deployment
– E A S Y T O M A I N TA I N
Keep services in
one single repository
Environment variables
– ALLOW US TO HAVE SAME IMAGE 

ON ALL KINDS OF SERVERS
D O C K E R S WA R M
couldn’t automatically pull images from
private registry when update a service
--with-registry-auth
Ex. docker service update --with-registry-auth
--image simplesat-gateway:cc01ef0c gateway
(A bit) complex command
. . W H AT W E P L A N . .
https://unsplash.com/photos/CkH1Hh8kllA
Monitoring
Log centralization
Docker images versioning
management
More integration tests
Questions?
www.facebook.com/girlswhodev/
We are hiring!
https://www.prontomarketing.com/company/careers/

More Related Content

What's hot (19)

PPTX
OpenShift4 Installation by UPI on kvm
Jooho Lee
 
PPTX
Scaling Development Environments with Docker
Docker, Inc.
 
PDF
The Good Parts / The Hard Parts
Noah Zoschke
 
PDF
Workshop Consul .- Service Discovery & Failure Detection
Vincent Composieux
 
PDF
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
Омские ИТ-субботники
 
PDF
Autoscaling with hashi_corp_nomad
Bram Vogelaar
 
PDF
Host Health Monitoring with Docker Run
Noah Zoschke
 
PPTX
TIAD 2016 : Application delivery in a container world
The Incredible Automation Day
 
PDF
(Re)discover your AEM
Jakub Wadolowski
 
PDF
How to stay sane during your Vagrant journey
Jakub Wadolowski
 
PPTX
Dockerizing Windows Server Applications by Ender Barillas and Taylor Brown
Docker, Inc.
 
PDF
Testing your infrastructure with litmus
Bram Vogelaar
 
PDF
Taming AEM deployments
Jakub Wadolowski
 
PDF
Kubernetes Boston — Custom High Availability of Kubernetes
Mike Splain
 
PDF
Clocker - The Docker Cloud Maker
Andrew Kennedy
 
PDF
Advanced VCL: how to use restart
Fastly
 
PDF
Kube-AWS
CoreOS
 
PDF
Docker Compose to Production with Docker Swarm
Mario IC
 
PDF
Docker.io
Ladislav Prskavec
 
OpenShift4 Installation by UPI on kvm
Jooho Lee
 
Scaling Development Environments with Docker
Docker, Inc.
 
The Good Parts / The Hard Parts
Noah Zoschke
 
Workshop Consul .- Service Discovery & Failure Detection
Vincent Composieux
 
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
Омские ИТ-субботники
 
Autoscaling with hashi_corp_nomad
Bram Vogelaar
 
Host Health Monitoring with Docker Run
Noah Zoschke
 
TIAD 2016 : Application delivery in a container world
The Incredible Automation Day
 
(Re)discover your AEM
Jakub Wadolowski
 
How to stay sane during your Vagrant journey
Jakub Wadolowski
 
Dockerizing Windows Server Applications by Ender Barillas and Taylor Brown
Docker, Inc.
 
Testing your infrastructure with litmus
Bram Vogelaar
 
Taming AEM deployments
Jakub Wadolowski
 
Kubernetes Boston — Custom High Availability of Kubernetes
Mike Splain
 
Clocker - The Docker Cloud Maker
Andrew Kennedy
 
Advanced VCL: how to use restart
Fastly
 
Kube-AWS
CoreOS
 
Docker Compose to Production with Docker Swarm
Mario IC
 

Viewers also liked (20)

PDF
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Giovanni Toraldo
 
PPTX
Docker Networking & Swarm Mode Introduction
Phi Huynh
 
PDF
Introduction to Docker
Harun Yardımcı
 
PDF
swarmmode-dojo
Clarence Bakirtzidis
 
PDF
Docker Swarm 1.12 Overview and Demo
Brian Christner
 
PDF
Docker 1.12 (dockercon recap)
Nguyen Anh Tu
 
PPTX
Docker meetup
syed1
 
PDF
COSCUP 2016: Project 52 每週一個小專案來學習 Golang
Evan Lin
 
PDF
CF WebUI - CloudFoundry User Group DACH
Lidia Fernández Garcés
 
PPTX
Golang 入門初體驗
政斌 楊
 
PPTX
CloudStack - Apache's best kept secret
ShapeBlue
 
PDF
CloudStack Container Service
ShapeBlue
 
PPTX
CloudStack EU user group - CloudStack news
ShapeBlue
 
PPTX
CloudStack EU user group - Trillian
ShapeBlue
 
PDF
Microservices Architectures with Docker Swarm, etcd, Kuryr and Neutron
Fawad Khaliq
 
PPTX
Jenkins vs gogs
Aaron King
 
PPTX
What's New in NGINX Plus R10?
NGINX, Inc.
 
PDF
Artem Zhurbila - docker clusters (solit 2015)
Artem Zhurbila
 
PPTX
Docker Networking - Current Status and goals of Experimental Networking
Sreenivas Makam
 
PDF
Import golang; struct microservice - Codemotion Rome 2015
Giorgio Cefaro
 
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Giovanni Toraldo
 
Docker Networking & Swarm Mode Introduction
Phi Huynh
 
Introduction to Docker
Harun Yardımcı
 
swarmmode-dojo
Clarence Bakirtzidis
 
Docker Swarm 1.12 Overview and Demo
Brian Christner
 
Docker 1.12 (dockercon recap)
Nguyen Anh Tu
 
Docker meetup
syed1
 
COSCUP 2016: Project 52 每週一個小專案來學習 Golang
Evan Lin
 
CF WebUI - CloudFoundry User Group DACH
Lidia Fernández Garcés
 
Golang 入門初體驗
政斌 楊
 
CloudStack - Apache's best kept secret
ShapeBlue
 
CloudStack Container Service
ShapeBlue
 
CloudStack EU user group - CloudStack news
ShapeBlue
 
CloudStack EU user group - Trillian
ShapeBlue
 
Microservices Architectures with Docker Swarm, etcd, Kuryr and Neutron
Fawad Khaliq
 
Jenkins vs gogs
Aaron King
 
What's New in NGINX Plus R10?
NGINX, Inc.
 
Artem Zhurbila - docker clusters (solit 2015)
Artem Zhurbila
 
Docker Networking - Current Status and goals of Experimental Networking
Sreenivas Makam
 
Import golang; struct microservice - Codemotion Rome 2015
Giorgio Cefaro
 
Ad

Similar to Lesson Learned from Using Docker Swarm at Pronto (20)

PDF
New Docker Features for Orchestration and Containers
Jeff Anderson
 
PPTX
Nats meetup oct 2016 docker 112
Nirmal Mehta
 
PDF
What's New in Docker 1.12 by Nishant Totla for Docker SF Meetup 08.03.16
Docker, Inc.
 
PDF
What's New in Docker 1.12?
Ajeet Singh Raina
 
PDF
Deep Dive into Docker Swarm Mode
Ajeet Singh Raina
 
PDF
Portainer.io Intro | Into The Box 2018
Dillon Slaughter
 
PDF
11thDockerMeetupSwitzerland
Michael Mueller
 
PDF
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Docker, Inc.
 
PDF
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
PROIDEA
 
PDF
Docker 1.12 and swarm mode
Wesley Charles Blake
 
PDF
Container Orchestrator Smackdown @ContinousLifecycle
Michael Mueller
 
PDF
Docker 1.12 and SwarmKit
Gianluca Arbezzano
 
PDF
DCEU 18: Tips and Tricks of the Docker Captains
Docker, Inc.
 
PPTX
Docker Swarm for Beginner
Shahzad Masud
 
PPTX
Introduction To Docker, Docker Compose, Docker Swarm
An Nguyen
 
PDF
Dockertaipei 20150528-dockerswarm
Wei-Ting Kuo
 
PPTX
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Alexandra Karapidaki
 
PPTX
Codemotion Rome 2018 Docker Swarm Mode
Simone Soldateschi
 
PDF
Docker Clustering - Batteries Included
C4Media
 
PDF
Docker From Scratch
Giacomo Vacca
 
New Docker Features for Orchestration and Containers
Jeff Anderson
 
Nats meetup oct 2016 docker 112
Nirmal Mehta
 
What's New in Docker 1.12 by Nishant Totla for Docker SF Meetup 08.03.16
Docker, Inc.
 
What's New in Docker 1.12?
Ajeet Singh Raina
 
Deep Dive into Docker Swarm Mode
Ajeet Singh Raina
 
Portainer.io Intro | Into The Box 2018
Dillon Slaughter
 
11thDockerMeetupSwitzerland
Michael Mueller
 
Using Docker Swarm Mode to Deploy Service Without Loss by Dongluo Chen & Nish...
Docker, Inc.
 
JDO 2019: Container orchestration with Docker Swarm - Jakub Hajek
PROIDEA
 
Docker 1.12 and swarm mode
Wesley Charles Blake
 
Container Orchestrator Smackdown @ContinousLifecycle
Michael Mueller
 
Docker 1.12 and SwarmKit
Gianluca Arbezzano
 
DCEU 18: Tips and Tricks of the Docker Captains
Docker, Inc.
 
Docker Swarm for Beginner
Shahzad Masud
 
Introduction To Docker, Docker Compose, Docker Swarm
An Nguyen
 
Dockertaipei 20150528-dockerswarm
Wei-Ting Kuo
 
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Alexandra Karapidaki
 
Codemotion Rome 2018 Docker Swarm Mode
Simone Soldateschi
 
Docker Clustering - Batteries Included
C4Media
 
Docker From Scratch
Giacomo Vacca
 
Ad

More from Kan Ouivirach, Ph.D. (19)

PDF
Adoption of AI: The Great Opportunities for Everyone
Kan Ouivirach, Ph.D.
 
PDF
Uncover Python's Potential in Machine Learning
Kan Ouivirach, Ph.D.
 
PDF
WordPress Hooks: The Right Way to Extend Your WordPress
Kan Ouivirach, Ph.D.
 
PDF
หัดเขียน A.I. แบบ AlphaGo กันชิวๆ
Kan Ouivirach, Ph.D.
 
PDF
Agile and Scrum Methodology
Kan Ouivirach, Ph.D.
 
PDF
Machine Learning at Geeky Base 2
Kan Ouivirach, Ph.D.
 
PDF
Machine Learning คือ? #bcbk
Kan Ouivirach, Ph.D.
 
PDF
What We Do in This Weird Office Culture
Kan Ouivirach, Ph.D.
 
PDF
The WordPress Way
Kan Ouivirach, Ph.D.
 
PDF
Exploring Machine Learning in Python with Scikit-Learn
Kan Ouivirach, Ph.D.
 
PDF
Machine Learning at Geeky Base
Kan Ouivirach, Ph.D.
 
PDF
Thailand Hadoop Big Data Challenge #1
Kan Ouivirach, Ph.D.
 
PDF
Achieving "Zero Downtime Deployment" with Automated Testing
Kan Ouivirach, Ph.D.
 
PDF
Pronto R&D Presentation
Kan Ouivirach, Ph.D.
 
PDF
Scrum at Pronto Marketing
Kan Ouivirach, Ph.D.
 
PDF
Practical Experience in Automated Testing at Pronto Marketing
Kan Ouivirach, Ph.D.
 
PDF
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Kan Ouivirach, Ph.D.
 
PDF
Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...
Kan Ouivirach, Ph.D.
 
PDF
Adapting Scrum to Managing a Research Group
Kan Ouivirach, Ph.D.
 
Adoption of AI: The Great Opportunities for Everyone
Kan Ouivirach, Ph.D.
 
Uncover Python's Potential in Machine Learning
Kan Ouivirach, Ph.D.
 
WordPress Hooks: The Right Way to Extend Your WordPress
Kan Ouivirach, Ph.D.
 
หัดเขียน A.I. แบบ AlphaGo กันชิวๆ
Kan Ouivirach, Ph.D.
 
Agile and Scrum Methodology
Kan Ouivirach, Ph.D.
 
Machine Learning at Geeky Base 2
Kan Ouivirach, Ph.D.
 
Machine Learning คือ? #bcbk
Kan Ouivirach, Ph.D.
 
What We Do in This Weird Office Culture
Kan Ouivirach, Ph.D.
 
The WordPress Way
Kan Ouivirach, Ph.D.
 
Exploring Machine Learning in Python with Scikit-Learn
Kan Ouivirach, Ph.D.
 
Machine Learning at Geeky Base
Kan Ouivirach, Ph.D.
 
Thailand Hadoop Big Data Challenge #1
Kan Ouivirach, Ph.D.
 
Achieving "Zero Downtime Deployment" with Automated Testing
Kan Ouivirach, Ph.D.
 
Pronto R&D Presentation
Kan Ouivirach, Ph.D.
 
Scrum at Pronto Marketing
Kan Ouivirach, Ph.D.
 
Practical Experience in Automated Testing at Pronto Marketing
Kan Ouivirach, Ph.D.
 
Extracting the Object from the Shadows: Maximum Likelihood Object/Shadow Disc...
Kan Ouivirach, Ph.D.
 
Clustering Human Behaviors with Dynamic Time Warping and Hidden Markov Models...
Kan Ouivirach, Ph.D.
 
Adapting Scrum to Managing a Research Group
Kan Ouivirach, Ph.D.
 

Recently uploaded (20)

PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
July Patch Tuesday
Ivanti
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 

Lesson Learned from Using Docker Swarm at Pronto