Skip to content

Commit

Permalink
Fix javaweb example
Browse files Browse the repository at this point in the history
The image used for the init container runs /mv.sh, which executes `tail
-f /etc/hosts` as its last command. Since this command will block
forever, an explicit command should be specified for this container that
just copies the sample war file to /app (otherwise the pod will get
stuck forever, waiting for the init container to succeed).
  • Loading branch information
ldx committed Sep 18, 2018
1 parent b171bae commit e3c0e94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions staging/javaweb-tomcat-sidecar/javaweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ spec:
initContainers:
- image: resouer/sample:v1
name: war
command: ["sh", "-c", "cp /sample.war /app"]
volumeMounts:
- mountPath: /app
name: app-volume
Expand Down

0 comments on commit e3c0e94

Please sign in to comment.