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
try! Swift Tokyo 2018: Best Docker Container in...
Search
Takeshi Ihara
March 01, 2018
Programming
1
1.3k
try! Swift Tokyo 2018: Best Docker Container in Swift
https://www.tryswift.co/events/2018/tokyo/en/#docker
Takeshi Ihara
March 01, 2018
Tweet
Share
More Decks by Takeshi Ihara
See All by Takeshi Ihara
iOSDC20200921: Feature Flagを適切に分類することでA/Bテストの運用コストを下げる
nonchalant
3
1.3k
iOSDC 20190906: 動画アプリの投げ銭機能における 消耗型課金の仕組みと実装
nonchalant
3
5.9k
iOSDC 20190906: 動画アプリの投げ銭機能における 消耗型課金の仕組みと実装 with 発表ノート
nonchalant
2
590
Sign In with Apple
nonchalant
1
2.2k
iOSDC RejectCon 20180915: Factoryの自動生成によりテストを書きやすくする
nonchalant
1
700
iOSDC 20180902: 小さくはじめる端末管理
nonchalant
2
920
devsap 20180728: コード生成のススメ
nonchalant
0
120
potatotips #50: iOSは自動生成の夢を見るか?
nonchalant
0
1.9k
Otemachi.swift x Kyobashi.swift #02: Vapor + ProtocolBuffers + DockerでServer Side Swift入門
nonchalant
1
330
Other Decks in Programming
See All in Programming
ASP.NETアプリケーションのモダナイズ インフラ編
tomokusaba
1
210
AIコーディング道場勉強会#2 君(エンジニア)たちはどう生きるか
misakiotb
1
130
カクヨムAndroidアプリのリブート
numeroanddev
0
410
Create a website using Spatial Web
akkeylab
0
260
ReadMoreTextView
fornewid
1
360
業務自動化をJavaとSeleniumとAWS Lambdaで実現した方法
greenflagproject
1
100
Webからモバイルへ Vue.js × Capacitor 活用事例
naokihaba
0
540
List Unfolding - 'unfold' as the Computational Dual of 'fold', and how 'unfold' relates to 'iterate'"
philipschwarz
PRO
0
190
JSAI2025 RecSysChallenge2024 優勝報告
unonao
1
450
try-catchを使わないエラーハンドリング!? PHPでResult型の考え方を取り入れてみよう
kajitack
3
500
CSC307 Lecture 17
javiergs
PRO
0
110
人には人それぞれのサービス層がある
shimabox
3
670
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
GitHub's CSS Performance
jonrohan
1031
460k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
Making Projects Easy
brettharned
116
6.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
107
19k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
A designer walks into a library…
pauljervisheath
206
24k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Producing Creativity
orderedlist
PRO
346
40k
Transcript
Best Docker Container in Swift USZ4XJGU$POGFSFODF 5BLFTIJ*IBSB
Swift on Linux 1. Ubuntu 14.x and 16.x 2. Server
Side Swift 3. Docker
Docker Images (Build) • vapor-build:16.04 └─ docker-swift-build:16.04 └─ ubuntu:16.04(LTS) •
vapor-build:14.04 └─ docker-swift-build:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Build) • vapor-build:16.04 └─ docker-swift-build:16.04 └─ ubuntu:16.04(LTS) •
vapor-build:14.04 └─ docker-swift-build:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Build) • vapor-build:16.04 └─ docker-swift-build:16.04 └─ ubuntu:16.04(LTS) •
vapor-build:14.04 └─ docker-swift-build:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Run) • vapor-server:16.04 └─ docker-swift:16.04 └─ ubuntu:16.04(LTS) •
vapor-server:14.04 └─ docker-swift:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Run) • vapor-server:16.04 └─ docker-swift:16.04 └─ ubuntu:16.04(LTS) •
vapor-server:14.04 └─ docker-swift:14.04 └─ ubuntu:14.04(LTS)
Docker Images (Run) • vapor-server:16.04 └─ docker-swift:16.04 └─ ubuntu:16.04(LTS) •
vapor-server:14.04 └─ docker-swift:14.04 └─ ubuntu:14.04(LTS)
Benchmark 4FSWFS $MJFOU .BDIJOF &$DMBSHF &$UNJDSP "QQMJDBUJPO 4XJGU7BQPS "QBDIF#FODI
5JNF TFD 3FRVFTU
GET Concurrency = 10
GET Concurrency = 100 & 1000 5JNF TFD
3FRVFTU $PODVSSFODZ 5JNF TFD 3FRVFTU $PODVSSFODZ
5JNF TFD 3FRVFTU
POST Concurrency = 10
5JNF TFD 3FRVFTU $PODVSSFODZ
5JNF TFD 3FRVFTU $PODVSSFODZ POST Concurrency = 100 & 1000
Docker Images (Build) 6CVOUV EPDLFSTXJGU CVJME WBQPSCVJME .# (#
.# (# .# .# (# .# (# .#
Docker Images (Run) 6CVOUV EPDLFSTXJGU WBQPSTFSWFS .# .# .#
(# .# .# .# .# (# .# ˣ.#
Summary • Each Dockerfile for build and run • nonchalant/docker-swift-build
• nonchalant/docker-swift • Currently, Ubuntu 16.04 is best • Ubuntu 18.04 (LTS) will be better?
Thank you ⚡ • Twitter: @nonchalant0303 • GitHub: @Nonchalant •
https://github.com/Nonchalant/ docker-swift-benchmark