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
Swift server applications with Docker (Swift.Berlin #21)
Search
Claus Höfele
October 10, 2016
Technology
0
310
Swift server applications with Docker (Swift.Berlin #21)
An introduction to Docker with examples on how to containerize a Swift server application.
Claus Höfele
October 10, 2016
Tweet
Share
More Decks by Claus Höfele
See All by Claus Höfele
Server-Side Swift (iOSDevUK 7)
choefele
0
190
Running Swift Code on AWS Lambda (CocoaHeads 01/2017)
choefele
0
370
Practical WatchKit Development (UIKonf 2015)
choefele
0
230
Practical WatchKit Development (CocoaHeads 04/2015)
choefele
0
90
Developing Apps for the Watch
choefele
0
140
Other Decks in Technology
See All in Technology
コードを書く隙間を見つけて生きていく技術/Findy 思考の現在地
fujiwara3
23
4.6k
DevOpsDays History and my DevOps story
kawaguti
PRO
4
900
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
1
630
Algyan イベント振り返り
linyixian
0
170
アプリがつくるNOT A HOTELブランド
hokuts
0
450
Why we expect the Microservices
shkitayama
2
320
スタートアップの技術顧問を3年間続けて発生した事と気付き
biwakonbu
0
150
Signals Unleashed: The Full Guide
rainerhahnekamp
0
350
オブザーバビリティの Primary Signals
onk
PRO
0
530
社内勉強会運営のコツ
senoo
6
1.1k
CloudFrontの継続的デプロイを試してみたはなし
stknohg
PRO
0
620
HEXA OSINT CTF V3 作戦会議
meow_noisy
0
110
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
28
46k
Code Reviewing Like a Champion
maltzj
513
39k
Pencils Down: Stop Designing & Start Developing
hursman
115
11k
Docker and Python
trallard
33
2.7k
[RailsConf 2023] Rails as a piece of cake
palkan
21
3.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
16
6.3k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
103
6.6k
Designing the Hi-DPI Web
ddemaree
275
33k
Six Lessons from altMBA
skipperchong
19
3k
Statistics for Hackers
jakevdp
789
220k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Into the Great Unknown - MozCon
thekraken
10
980
Transcript
@claushoefele +
MongoDB Before/After • Official How-To https://docs.mongodb.com/manual/tutorial/ install-mongodb-on-ubuntu/ • Docker docker
run --name db -d mongo
Docker Usage Docker Image Dockerfile Docker Hub Docker Container build
push run docker [OPTIONS] COMMAND [arg...] Dockerfile MongoDB
Dockerfile • Describes steps to produce an image • Can
inherit from other images • Images consist of layers • Images can be stored at Docker Hub
Docker Containers vs Virtual Machines Container VM
Docker Pros/Cons • Docker focuses on convenience and ease-of- use
• Abstracts providers (logging, deployment) • Lightweight (-> micro services) • Know what you deploy with pre-built images • But: Linux images only
A Typical Server App Database Data Application Server Reverse Proxy
Backup
docker-compose • Bundles multiple Docker commands • Includes connectivity (ports,
data) • Can be bound to remote machines via docker-machine
Environments Dev (macOS) CI (Linux) Prod (Linux) Package Management Swift
Package Manager Swift Package Manager N/A Build Environment Xcode docker build N/A Runtime Environment Xcode/ docker run docker run docker run
Demo
@claushoefele https://github.com/choefele/swift-server-app