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
Containing Atlassian
Search
David McKay
October 26, 2016
Technology
1
81
Containing Atlassian
David McKay
October 26, 2016
Tweet
Share
More Decks by David McKay
See All by David McKay
The Telegraf Toolbelt (InfluxDays SF, 2019)
rawkode
0
130
The DShell Pattern (DevOpsDays London 2019)
rawkode
0
190
Cloud Native Telegraf - Cloud Native London (September 2019)
rawkode
0
45
Developing Your Own Flux Packages (InfluxDays London 2019)
rawkode
0
120
Introduction to Time Series (Software Circus, April 2019)
rawkode
0
140
Introduction to Time Series (Cloud Native Kraków, April 2019)
rawkode
0
88
Introduction to Time Series (Cloud Native Wales, April 2019)
rawkode
0
81
Introduction to InfluxDB 2.0 (Kubernetes London - February 2019)
rawkode
0
55
Kickass Development Environments with Docker (PHPBenelux 2019)
rawkode
0
95
Other Decks in Technology
See All in Technology
Oracle Cloud Infrastructureデータベース・クラウド:各バージョンのサポート期間
oracle4engineer
PRO
28
12k
Application Development WG Intro at AppDeveloperCon
salaboy
0
180
スクラム成熟度セルフチェックツールを作って得た学びとその活用法
coincheck_recruit
1
140
[FOSS4G 2024 Japan LT] LLMを使ってGISデータ解析を自動化したい!
nssv
1
210
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
2
590
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
2
3.2k
いざ、BSC討伐の旅
nikinusu
2
780
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
370
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
Introduction to Works of ML Engineer in LY Corporation
lycorp_recruit_jp
0
100
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
160
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Optimizing for Happiness
mojombo
376
70k
Code Reviewing Like a Champion
maltzj
520
39k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
A Philosophy of Restraint
colly
203
16k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
How STYLIGHT went responsive
nonsquared
95
5.2k
Transcript
Containing Atlassian Running the Atlassian Suite with Docker
David McKay @rawkode Software Consultant Serial Meetup Organiser
Containing Atlassian
Why Containers?
Containment for neatness
Containment for security
Containment for speed
Why Docker?
Because it’s a trendy
Because it’s good on the CV
Because all your friends are doing it
None
Docker OK; I’m Serial Now • Industry Leader • Always
Evolving • Proven at Scale • Tooling for all environments • OCI / runC • Official Images
Vocabulary • Dockerfile • Image • Container
Dockerfile FROM ubuntu:16.10 RUN apt-get update RUN apt-get install x
y z CMD java
Docker Image $ docker build -t acme/jira:7.0 .
Docker Images $ docker images REPOSITORY TAG IMAGE ID CREATED
SIZE elixir 1.3 b80c8e9d71f9 3 weeks ago 758.7 MB acme/jira 7.0 e552540688e1 4 weeks ago 224.4 MB alpine 3.4 ee4603260daa 4 weeks ago 4.803 MB
Docker Container $ docker run acme/jira:7.0
Orchestration With Docker Swarm Mode
Swarm Mode ≇ Swarm
Vocabulary • Node • Manager • Worker • Service
Creating a Swarm $ docker swarm init
Joining a Swarm $ docker swarm join --token xxxx 192.168.66.100:2377
Creating a Service $ docker service create --name jira acme/jira:7.0
Creating Services $ docker service create --name crowd acme/crowd:2.10 $
docker service create --name jira acme/jira:7.0 $ docker service create --name confl.. acme/confluence:5.10
Scaling
Scaling a Service $ docker service scale jira=4
Service Discovery
Scaling a Service $ wget http://jira:8080 $ wget http://confluence:8081
Oh yeah, and you get load balancing for free ...
Upgrading
Scaling a Service $ docker service update --image acme/jira:10.1 jira
Potential Problems
Configuration
Configuration $ docker service create --env DB_HOST=postgres $ docker service
update --env-add DB_HOST=postgres
Persistence
Persistence $ docker service create --mount \ type=mount, source=/mnt/volume, destination=/path/in/container
⚖ How can I scale this?
Scaling the Persistence NFS / Fuse mount on all nodes
Feeling fancy? Check out CernVM-FS!
This brings other problems
With the Atlassian Suite You can deal with it, as
most writes to the disk are simply cache! Except BitBucket
Official Support?
⏳ It’s being worked on…
Atlassian on Docker Hub https://hub.docker.com/r/atlassian/
☹ BitBucket & Confluence only
Want more? Pester @durdn
That’s it! Any questions?