Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Docker + DockerCompose
Search
Ruben Espinosa
June 12, 2015
Programming
160
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
280
Segunda sesión
rderoldan1
0
56
Presentación
rderoldan1
0
73
Primera Sesión
rderoldan1
0
67
Other Decks in Programming
See All in Programming
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
880
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
150
Next.js: The final boss of Web Performance
guaca
0
250
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
590
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
880
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
630
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
420
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
Domain-Driven Transformation
hschwentner
2
2.3k
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
From π to Pie charts
rasagy
1
400
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Designing for Performance
lara
612
70k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
GitHub's CSS Performance
jonrohan
1033
470k
Into the Great Unknown - MozCon
thekraken
41
2.8k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
A Soul's Torment
seathinner
8
3.8k
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!