Skip to content

Commit 169078a

Browse files
committed
Update test Dockerfiles to use PARENT_IMAGE build arg
1 parent d333b65 commit 169078a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

test/test-pet-clinic/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
ARG IMAGE=ibmcom/websphere-liberty:kernel-java8-openj9-ubi
3-
FROM ${IMAGE} as staging
2+
ARG PARENT_IMAGE=ibmcom/websphere-liberty:kernel-java8-openj9-ubi
3+
FROM $PARENT_IMAGE as staging
44

55
COPY --chown=1001:0 server.xml /config
66
COPY --chown=1001:0 spring-petclinic-2.1.0.BUILD-SNAPSHOT.jar /staging/myFatApp.jar
@@ -13,7 +13,7 @@ RUN features.sh \
1313

1414
RUN configure.sh
1515

16-
FROM ${IMAGE}
16+
FROM $PARENT_IMAGE
1717

1818
COPY --from=staging /config/server.xml /config/server.xml
1919

test/test-stock-quote/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
FROM ibmcom/websphere-liberty:kernel-java17-openj9-ubi
16+
ARG PARENT_IMAGE=ibmcom/websphere-liberty:kernel-java17-openj9-ubi
17+
FROM $PARENT_IMAGE
1718

1819
COPY --chown=1001:0 config /config/
1920

test/test-stock-trader/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM ibmcom/websphere-liberty:kernel-java8-openj9-ubi
15+
ARG PARENT_IMAGE=ibmcom/websphere-liberty:kernel-java8-openj9-ubi
16+
FROM $PARENT_IMAGE
1617

1718
COPY --chown=1001:0 config /config/
1819

0 commit comments

Comments
 (0)