Skip to content

Commit

Permalink
define war container as initContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamink authored and Benjamin Krein committed Sep 6, 2018
1 parent 04efb06 commit e392127
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions staging/javaweb-tomcat-sidecar/javaweb-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@ kind: Pod
metadata:
name: javaweb-2
spec:
containers:
initContainers:
- image: resouer/sample:v2
name: war
lifecycle:
postStart:
exec:
command:
- "cp"
- "/sample.war"
- "/app"
command:
- "cp"
- "/sample.war"
- "/app"
volumeMounts:
- mountPath: /app
name: app-volume
containers:
- image: resouer/mytomcat:7.0
name: tomcat
command: ["sh","-c","/root/apache-tomcat-7.0.42-v2/bin/start.sh"]
Expand Down

0 comments on commit e392127

Please sign in to comment.