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 for Java/Spring developers
Search
SingaSUG
September 09, 2015
Technology
0
69
Docker for Java/Spring developers
SingaSUG
September 09, 2015
Tweet
Share
More Decks by SingaSUG
See All by SingaSUG
Java/Spring and Node.JS side by side
singasug
0
190
Migrating to microservices (Carlos Queiroz)
singasug
0
220
Docker 101 - Mario Loriedo
singasug
0
250
Cloud Foundry and Docker
singasug
0
180
Multi dimensional scaling with CouchBase
singasug
1
110
NoSql presentation from Clarence Tauro
singasug
2
180
Rx Java introduction
singasug
0
110
Spring Websockets
singasug
0
190
migrating from JSP to AngularJS
singasug
0
2.5k
Other Decks in Technology
See All in Technology
「AI2027」を紐解く ― AGI・ASI・シンギュラリティ
masayamoriofficial
0
150
プロダクトの成長に合わせたアーキテクチャの段階的進化と成長痛、そして、ユニットエコノミクスの最適化
kakehashi
PRO
1
110
絶対に失敗できないキャンペーンページの高速かつ安全な開発、WINTICKET × microCMS の開発事例
microcms
0
320
Kubernetes における cgroup v2 でのOut-Of-Memory 問題の解決
pfn
PRO
0
420
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
30k
Kiroと学ぶコンテキストエンジニアリング
oikon48
4
810
Flutterでキャッチしないエラーはどこに行く
taiju59
0
180
Lessons from CVE-2025-22869: Memory Debugging and OSS Vulnerability Reporting
vvatanabe
2
110
実践アプリケーション設計 ①データモデルとドメインモデル
recruitengineers
PRO
5
1.3k
「守る」から「進化させる」セキュリティへ ~AWS re:Inforce 2025参加報告~ / AWS re:Inforce 2025 Participation Report
yuj1osm
1
180
制約理論(ToC)入門
recruitengineers
PRO
8
3.5k
AWSで推進するデータマネジメント
kawanago
0
490
Featured
See All Featured
Docker and Python
trallard
45
3.5k
Practical Orchestrator
shlominoach
190
11k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
How to train your dragon (web standard)
notwaldorf
96
6.2k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
Designing for Performance
lara
610
69k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Producing Creativity
orderedlist
PRO
347
40k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
KATA
mclloyd
32
14k
Transcript
Docker for Java Developers
Agenda Application lifecycle using Docker : • Building • Testing
• Deploying and a personal advertising campaign ;-)
Using Spring petclinic Demo
Building
Building - using language stacks
Building - Using language stacks docker run \ -v ~/.m2:/root/.m2
\ -v $(pwd):/usr/src \ -w /usr/src \ maven:3.2-jdk-7 \ mvn clean install
Building - Using a custom image
Building - Sublime Docker
Building - Demo
Testing
Testing - Using a custom image FROM tomcat:8 COPY ["target/*.war",
"/usr/local/tomcat/webapps/"] CMD ["catalina.sh", "run"] $ docker build -t petclinic . $ docker run -d -P petclinic
doclipser
Testing - Doclipser (Docker from Eclipse)
Deploying
Manual deploy - push to DockerHub $ docker push mariolet/petclinic
Manual deploy - search DockerHub $ docker search mariolet/petclinic
Manual deploy - pull from DockerHub $ docker pull mariolet/petclinic
$ docker run -d -P mariolet/petclinic
Automatic deploy - Image build
Automatic deploy - Webhooks
Deploying - Continuous deployment Dockerfile + Sources docker build ehazlett/conduit
docker pull docker stop docker rm docker start
Merci ! http://domeide.github.io/