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
61
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
180
Migrating to microservices (Carlos Queiroz)
singasug
0
210
Docker 101 - Mario Loriedo
singasug
0
240
Cloud Foundry and Docker
singasug
0
160
Multi dimensional scaling with CouchBase
singasug
1
100
NoSql presentation from Clarence Tauro
singasug
2
170
Rx Java introduction
singasug
0
100
Spring Websockets
singasug
0
180
migrating from JSP to AngularJS
singasug
0
2.5k
Other Decks in Technology
See All in Technology
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
3
17k
RDRA3.0を知ろう
kanzaki
2
440
Contract One Dev Group 紹介資料
sansan33
PRO
0
6k
GigaViewerにおけるMackerel APM導入の裏側
7474
0
460
Scale Security Programs with Scorecarding
ramimac
0
440
ゴリラ.vim #36 ~ Vim x SNS ~ スポンサーセッション
yasunori0418
1
360
toittaにOpenTelemetryを導入した話 / Mackerel APM リリースパーティ
cohalz
1
490
ローカル環境でAIを動かそう!
falken
PRO
1
170
Data Hubグループ 紹介資料
sansan33
PRO
0
1.8k
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
2.6k
CloudBruteによる外部からのS3バケットの探索・公開の発見について / 20250605 Kumiko Hennmi
shift_evolve
3
210
GoogleのAI Agent
shukob
0
140
Featured
See All Featured
Code Review Best Practice
trishagee
68
18k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.3k
Embracing the Ebb and Flow
colly
85
4.7k
Reflections from 52 weeks, 52 projects
jeffersonlam
349
20k
GraphQLとの向き合い方2022年版
quramy
46
14k
Building an army of robots
kneath
306
45k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
A Tale of Four Properties
chriscoyier
159
23k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
Raft: Consensus for Rubyists
vanstee
137
7k
Become a Pro
speakerdeck
PRO
28
5.4k
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/