Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Futureworkz DevOps Workshop Day 1 - DevOps Tool...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Cam Huynh
April 08, 2016
Technology
0
75
Futureworkz DevOps Workshop Day 1 - DevOps ToolChain
- Ansible
- Docker
- Vagrant.
Cam Huynh
April 08, 2016
Tweet
Share
More Decks by Cam Huynh
See All by Cam Huynh
Reddit Ruby Conf 2016 Recap
hqc
0
120
FutureWorkz DevOps Workshop Day II - Deploying Rails
hqc
0
53
FutureWorkz DevOps Workshop Day III - Gitlab Runner for CD
hqc
0
99
FutureWorkz DevOps Workshop Intro
hqc
1
64
Rack for beginners
hqc
0
75
Chat Implementation with RESTful (Ruby) and Web Socket
hqc
0
64
Monkey patching in Ruby
hqc
0
300
Optimize Rails Asset Pipeline Deployment
hqc
0
74
Other Decks in Technology
See All in Technology
Embeddings : Symfony AI en pratique
lyrixx
0
160
Bref でサービスを運用している話
sgash708
0
190
スケールアップ企業でQA組織が機能し続けるための組織設計と仕組み〜ボトムアップとトップダウンを両輪としたアプローチ〜
qa
0
250
スピンアウト講座06_認証系(API-OAuth-MCP)入門
overflowinc
0
1.1k
Phase02_AI座学_応用
overflowinc
0
2.7k
SaaSに宿る21g
kanyamaguc
2
150
VSCode中心だった自分がターミナル沼に入門した話
sanogemaru
0
190
ThetaOS - A Mythical Machine comes Alive
aslander
0
160
_Architecture_Modernization_から学ぶ現状理解から設計への道のり.pdf
satohjohn
2
740
俺の/私の最強アーキテクチャ決定戦開催 ― チームで新しいアーキテクチャに適合していくために / 20260322 Naoki Takahashi
shift_evolve
PRO
1
430
ReactのdangerouslySetInnerHTMLは“dangerously”だから危険 / Security.any #09 卒業したいセキュリティLT
flatt_security
0
480
データマネジメント戦略Night - 4社のリアルを語る会
ktatsuya
1
220
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
187
22k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
160
Discover your Explorer Soul
emna__ayadi
2
1.1k
The Limits of Empathy - UXLibs8
cassininazir
1
270
Embracing the Ebb and Flow
colly
88
5k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
230
The Mindset for Success: Future Career Progression
greggifford
PRO
0
290
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
A designer walks into a library…
pauljervisheath
210
24k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
89
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Transcript
DevOps ToolChain Fwz DevOps Workshop Day I
What’s included?
Vagrant
What’s Vagrant? Create and configure lightweight, reproducible, and portable development
environments.
Vagrantfile Example
Why Vagrant? Infrastructure as code. Identical environments across machines. Reproduce
production environment on local machines.
Install Vagrant - Download from https://www.vagrantup.com/ - Execute the installation
by following the steps.
Boot Vagrant Box vagrant init ubuntu/trusty64 vagrant up vagrant ssh
Vagrant Boxes More boxes can be found by the URL
below. https://atlas.hashicorp.com/boxes/search
Ansible
What’s Ansible? Ansible is the simplest way to automate apps
and IT infrastructure.
Similar Tools - Mina, Capistrano. - Chef, Puppet. - AWS
Code Deploy. - … and more
Why Ansible? ANSIBLE - Written in Python (supporting Python 3
soon). - Lightweight. - Open source. - Playbook written in YAML. - Various modules are available. CHEF, PUPPET - Written in Ruby. - Heavyweight. - Open source. - Ruby language is required. - Widely support. - Various recipes are available.
Ansible Playbook Structure - Inventory - Vars, Group Vars, Host
Vars - Roles - Tasks
Install Ansible sudo pip install ansible ansible-playbook --version
Write your own Ansible Playbook - Set up an Ubuntu
server. - Install common modules (build-essentials) - Install nginx. - Start nginx. - Check if it works.
Docker
What’s Docker? Docker allows you to package an application with
all of its dependencies into a standardized unit for software development.
Docker vs Virtual Machines
Why Docker - Package, containerize, and standardize applications. - Eliminate
Environment Inconsistencies. - Facilitate Microservices Architecture. - Accelerate Developer Onboarding
Install Docker Install Docker Toolbox by following the guide in
this URL: https://docs.docker.com/engine/installation/mac/
Docker Toolbox - Docker Engine - Docker Machine - Docker
Compose - Kitematic - And more...
Start Docker Machine docker-machine create dev docker-machine env dev docker-machine
start dev
Run a Docker container docker run redis docker run -d
--name redis redis
Docker Port Binding
docker run -d --name nginx -p 6969:80 nginx Docker Port
Binding