Skip to content

Commit 2c7ff5e

Browse files
authored
Base TomEE smoke test images on jdk ones (#4425)
1 parent 7ae89fa commit 2c7ff5e

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

smoke-tests/images/servlet/build.gradle

+7-8
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ def linuxTargets = [
4747
[version: ["10.0.11"], vm: ["openj9"], jdk: ["8", "11"], args: [majorVersion: "10"], war: "servlet-5.0"]
4848
],
4949
"tomee" : [
50-
[version: ["7.0.0"], vm: ["hotspot"], jdk: ["8"]],
51-
[version: ["7.0.0"], vm: ["openj9"], jdk: ["8"], dockerfile: "tomee-custom"],
52-
[version: ["8.0.6"], vm: ["hotspot"], jdk: ["8", "11"]],
53-
[version: ["8.0.6"], vm: ["openj9"], jdk: ["8", "11"], dockerfile: "tomee-custom"]
50+
[version: ["7.0.9"], vm: ["hotspot", "openj9"], jdk: ["8"]],
51+
[version: ["7.1.4"], vm: ["hotspot", "openj9"], jdk: ["8"]],
52+
[version: ["8.0.8"], vm: ["hotspot"], jdk: ["8", "11", "17"]],
53+
[version: ["8.0.8"], vm: ["openj9"], jdk: ["8", "11", "16"]],
54+
[version: ["9.0.0-M7"], vm: ["hotspot"], jdk: ["8", "11", "17"], war: "servlet-5.0"],
55+
[version: ["9.0.0-M7"], vm: ["openj9"], jdk: ["8", "11", "16"], war: "servlet-5.0"]
5456
],
5557
"payara" : [
5658
[version: ["5.2020.6"], vm: ["hotspot", "openj9"], jdk: ["8", "11"]]
@@ -70,10 +72,7 @@ def linuxTargets = [
7072
def windowsTargets = [
7173
"jetty" : linuxTargets["jetty"],
7274
"tomcat" : linuxTargets["tomcat"],
73-
"tomee" : [
74-
[version: ["7.0.0"], vm: ["hotspot", "openj9"], jdk: ["8"]],
75-
[version: ["8.0.6"], vm: ["hotspot", "openj9"], jdk: ["8", "11"]]
76-
],
75+
"tomee" : linuxTargets["tomee"],
7776
"payara" : linuxTargets["payara"],
7877
"wildfly": [
7978
[version: ["13.0.0.Final"], vm: ["hotspot", "openj9"], jdk: ["8"]],

smoke-tests/images/servlet/src/tomee-custom.dockerfile

-15
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
ARG jdkImage
2+
3+
# Unzip in a separate container so that zip file layer is not part of final image
4+
FROM ${jdkImage} as builder
15
ARG version
2-
ARG jdk
36

4-
FROM tomee:${jdk}-jre-${version}-webprofile
7+
ADD https://archive.apache.org/dist/tomee/tomee-${version}/apache-tomee-${version}-webprofile.tar.gz /server.tgz
8+
RUN tar xf server.tgz && ls -al / && mv apache-tomee-webprofile-${version} /server
9+
10+
FROM ${jdkImage}
11+
COPY --from=builder /server /server
12+
13+
WORKDIR /server/bin
14+
CMD /server/bin/catalina.sh run
515

6-
COPY app.war /usr/local/tomee/webapps/
16+
COPY app.war /server/webapps/

0 commit comments

Comments
 (0)