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
Docker + DockerCompose
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ruben Espinosa
June 12, 2015
Programming
150
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Docker + DockerCompose
Ruben Espinosa
June 12, 2015
More Decks by Ruben Espinosa
See All by Ruben Espinosa
RealTime APPS with Rails + Socket.io + Redis
rderoldan1
0
270
Segunda sesión
rderoldan1
0
52
Presentación
rderoldan1
0
69
Primera Sesión
rderoldan1
0
60
Other Decks in Programming
See All in Programming
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
250
さぁV100、メモリをお食べ・・・
nilpe
0
130
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
1.1k
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
450
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
5.2k
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.3k
3Dシーンの圧縮
fadis
1
650
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1.2k
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
320
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
12k
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
3
1.1k
RTSPクライアントを自作してみた話
simotin13
0
490
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
2.6k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
190
Marketing to machines
jonoalderson
1
5.4k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
140
Test your architecture with Archunit
thirion
1
2.3k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
320
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
550
The Art of Programming - Codeland 2020
erikaheidi
57
14k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Transcript
Rails + Docker Compose Rubén Espinosa
@rderoldan1 GitHub Twitter Gmail Skype ETC
Docker - Historia LXC LinuX Containers
Docker - Matrix from Hell
Docker - Matrix from Hell
Docker - Matrix from Hell
Docker • Portable. • Orientado a las aplicaciones. • Builds
automáticos. • Versionamiento. • Reusabilidad. • Colaborativo. • Ecosistema de herramientas.
Docker - vs VM
Docker - Historia Inicio del proyecto Open Source Adquiere Orchard
$40.000.000 Microsoft IBM 2014 2013 Adquiere Kitematic Machine + Swarm + Compose 2015
Docker - Quien lo usa
Sistemas Operativos Soportados Boot2Docker
Docker - Docker Hub
Docker - Dockerfile FROM ruby:latest RUN apt-get update && apt-get
install -y libpq-dev nodejs-dev RUN mkdir /myapp WORKDIR /myapp ADD Gemfile /myapp/Gemfile ENV BUNDLE_PATH=/bundle RUN bundle install --path /bundle Add . /myapp
FIG.sh COMPOSE Compose - FIG
Compose - Ventajas #!/bin/bash # Postgres container docker run -d
-v /var/docker/postgresql:/data --name=postgres -e USER='root' \ -e PASS='amazing_pass' -e DB='my_db' paintedfox/postgresql # Rabbit container docker run -d -v /var/docker/rabbit:/data -p 0.0.0.0:15672:15672 \ -p 0.0.0.0:5672:5672 -e RABBITMQ_PASS="amazing_pass" \ --name=rabbitmq tutum/rabbitmq # Web server container docker run -i -t -e INSTANCE_TYPE="web-server" --name='my-web' -p 0.0.0.0:8000:8000 \ -v /home/my/app:/home/my/app --link=postgres:postgres --link=redis:redis --link=rabbitmq:rabbit my_docker_image "$@" run_docker_containers.sh
Compose - Ventajas web: build: . command: bundle exec thin
start -a 0.0.0.0 -p 3000 links: - db volumes: - .:/myapp ports: - "3000" db: image: postgres:latest ports: - 5432 redis: image: redis:latest docker-compose up
Compose - Comandos docker-compose build docker-compose start docker-compose build docker-compose
ps docker-compose scale <service>=<n>
DEMO
BenchMark Ejemplos Rails on Docker - Advanced Rails On Docker
- Simple
Reflexión http://blog.circleci.com/its-the-future/
Patrocinador
¡Gracias!