Make command consistent in javaweb examples

This commit is contained in:
Vilmos Nebehaj 2018-09-19 08:38:42 -07:00
parent 724fd94417
commit 1f595fb669
2 changed files with 2 additions and 5 deletions

View File

@ -6,10 +6,7 @@ spec:
initContainers:
- image: resouer/sample:v2
name: war
command:
- "cp"
- "/sample.war"
- "/app"
command: ["cp", "/sample.war", "/app"]
volumeMounts:
- mountPath: /app
name: app-volume

View File

@ -6,7 +6,7 @@ spec:
initContainers:
- image: resouer/sample:v1
name: war
command: ["sh", "-c", "cp /sample.war /app"]
command: ["cp", "/sample.war", "/app"]
volumeMounts:
- mountPath: /app
name: app-volume