@@ -3,8 +3,10 @@ WITHTOOLS_IMAGE_NAME=codacy/withtools
33
44VERSION? =$(shell cat .version || echo dev)
55OPENJ9_VERSION? =openj9-$(VERSION )
6+ OPENJDK11_VERSION? =jre11-$(VERSION )
67OPENJDK17_VERSION? =jre17-$(VERSION )
78BASE_IMAGE_OPENJDK =adoptopenjdk/openjdk8:x86_64-ubuntu-jre8u462-b08
9+ BASE_IMAGE_OPENJDK11 =eclipse-temurin:11-jdk-focal
810BASE_IMAGE_OPENJDK17 =eclipse-temurin:17.0.16_8-jre-jammy
911BASE_IMAGE_OPENJ9 =adoptopenjdk/openjdk8-openj9:x86_64-ubuntu-jre8u462-b08_openj9-0.53.0
1012
@@ -13,12 +15,13 @@ all: docker_build ## produce the docker image
1315docker_build : # # build the docker image
1416 docker build --build-arg base_image=$(BASE_IMAGE_OPENJDK ) --no-cache -t $(BASE_IMAGE_NAME ) :$(VERSION ) --target base .
1517 docker build --build-arg base_image=$(BASE_IMAGE_OPENJ9 ) --no-cache -t $(BASE_IMAGE_NAME ) :$(OPENJ9_VERSION ) --target base .
18+ docker build --build-arg base_image=$(BASE_IMAGE_OPENJDK11 ) --no-cache -t $(BASE_IMAGE_NAME ) :$(OPENJDK11_VERSION ) --target base .
1619 docker build --build-arg base_image=$(BASE_IMAGE_OPENJDK17 ) --no-cache -t $(BASE_IMAGE_NAME ) :$(OPENJDK17_VERSION ) --target base .
1720
1821 docker build --build-arg base_image=$(BASE_IMAGE_OPENJDK) --no-cache -t $(WITHTOOLS_IMAGE_NAME):$(VERSION) --target withtools .
1922 docker build --build-arg base_image=$(BASE_IMAGE_OPENJ9) --no-cache -t $(WITHTOOLS_IMAGE_NAME):$(OPENJ9_VERSION) --target withtools .
2023 docker build --build-arg base_image=$(BASE_IMAGE_OPENJDK17) --no-cache -t $(WITHTOOLS_IMAGE_NAME):$(OPENJDK17_VERSION) --target withtools .
21-
24+ docker build --build-arg base_image=$(BASE_IMAGE_OPENJDK11) --no-cache -t $(WITHTOOLS_IMAGE_NAME):$(OPENJDK11_VERSION) --target withtools .
2225
2326docker_scan : # # scan docker images using Docker Scout
2427 docker scout quickview $(BASE_IMAGE_NAME ) :$(VERSION ) || true
@@ -34,10 +37,12 @@ push-docker-image: ## push the docker image to the registry (DOCKER_USER and DOC
3437 @docker login -u $(DOCKER_USER ) -p $(DOCKER_PASS ) && \
3538 docker push $(BASE_IMAGE_NAME ) :$(VERSION )
3639 docker push $(BASE_IMAGE_NAME ) :$(OPENJ9_VERSION )
40+ docker push $(BASE_IMAGE_NAME ) :$(OPENJDK11_VERSION )
3741 docker push $(BASE_IMAGE_NAME ) :$(OPENJDK17_VERSION )
3842 docker push $(WITHTOOLS_IMAGE_NAME ) :$(VERSION )
3943 docker push $(WITHTOOLS_IMAGE_NAME ) :$(OPENJ9_VERSION )
4044 docker push $(WITHTOOLS_IMAGE_NAME ) :$(OPENJDK17_VERSION )
45+ docker push $(WITHTOOLS_IMAGE_NAME ) :$(OPENJDK11_VERSION )
4146
4247.PHONY : push-latest-docker-image
4348push-latest-docker-image : # # push the docker image with the "latest" tag to the registry (DOCKER_USER and DOCKER_PASS mandatory)
0 commit comments