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
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
54
Presentación
rderoldan1
0
72
Primera Sesión
rderoldan1
0
64
Other Decks in Programming
See All in Programming
FastAPI の並行処理モデルを完全に理解する
hoto17296
3
930
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
1
220
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
270
Claude CodeとAgentCore Gatewayを繋ぐ際の認証認可 / Authentication and authorization when connecting Claude Code with AgentCore Gateway
har1101
2
340
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
160
How I Won Prize Money at a Hackathon Using Codex and Symphony Alpha
yasei_no_otoko
0
120
SlackアプリとLambdaの 連携を構築した話
pawn_4_s
1
130
Go 1.27 における memory allocation の高速化
andpad
0
280
Android CLI
fornewid
0
230
「人を評価する AI」の設計と実装
ryoyanara
0
220
プロポーザルを書いてもらう
pvcresin
0
560
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
210
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
A better future with KSS
kneath
240
18k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.8k
Six Lessons from altMBA
skipperchong
29
4.4k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
280
We Are The Robots
honzajavorek
0
300
Odyssey Design
rkendrick25
PRO
2
770
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
The SEO Collaboration Effect
kristinabergwall1
1
530
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!