diff --git a/docker/pulsar-all/pom.xml b/docker/pulsar-all/pom.xml index b934bd1f2fcee..4da3d78c234e2 100644 --- a/docker/pulsar-all/pom.xml +++ b/docker/pulsar-all/pom.xml @@ -151,17 +151,17 @@ - ${docker.organization}/pulsar-all + ${docker.organization}/${docker.image}-all ${project.basedir} - latest + ${docker.tag} ${project.version}-${git.commit.id.abbrev} target/apache-pulsar-io-connectors-${project.version}-bin target/pulsar-offloader-distribution-${project.version}-bin.tar.gz - ${docker.organization}/pulsar:${project.version}-${git.commit.id.abbrev} + ${docker.organization}/${docker.image}:${project.version}-${git.commit.id.abbrev} diff --git a/docker/pulsar/pom.xml b/docker/pulsar/pom.xml index 0f97504e9bb64..8e458bf6eb298 100644 --- a/docker/pulsar/pom.xml +++ b/docker/pulsar/pom.xml @@ -85,7 +85,7 @@ - ${docker.organization}/pulsar + ${docker.organization}/${docker.image} target/pulsar-server-distribution-${project.version}-bin.tar.gz @@ -96,7 +96,7 @@ ${project.basedir} - latest + ${docker.tag} ${project.version}-${git.commit.id.abbrev} diff --git a/pom.xml b/pom.xml index c3c4da6f8650d..b2bb04b1874f4 100644 --- a/pom.xml +++ b/pom.xml @@ -105,6 +105,8 @@ flexible messaging model and an intuitive client API. 1 apachepulsar + pulsar + latest false false package diff --git a/tests/docker-images/java-test-image/pom.xml b/tests/docker-images/java-test-image/pom.xml index 5bf9dca36ff05..b726143990b2b 100644 --- a/tests/docker-images/java-test-image/pom.xml +++ b/tests/docker-images/java-test-image/pom.xml @@ -147,15 +147,19 @@ package build + tag ${docker.organization}/java-test-image + + ${docker.organization}/${docker.image}:${project.version}-${git.commit.id.abbrev} + ${project.basedir} - latest + ${docker.tag} ${project.version} true diff --git a/tests/docker-images/latest-version-image/Dockerfile b/tests/docker-images/latest-version-image/Dockerfile index dfcd28fd36d8d..028c9d9690fb6 100644 --- a/tests/docker-images/latest-version-image/Dockerfile +++ b/tests/docker-images/latest-version-image/Dockerfile @@ -18,6 +18,8 @@ # # build go lang examples first in a separate layer +ARG PULSAR_ALL_IMAGE +ARG PULSAR_IMAGE FROM apachepulsar/pulsar:latest as pulsar-function-go @@ -44,12 +46,12 @@ RUN cd /go/src/github.com/apache/pulsar/pulsar-function-go/pf && go install RUN cd /go/src/github.com/apache/pulsar/pulsar-function-go/examples && go install ./... # Reference pulsar-all to copy connectors from there -FROM apachepulsar/pulsar-all:latest as pulsar-all +FROM $PULSAR_ALL_IMAGE as pulsar-all ######################################## ###### Main image build ######################################## -FROM apachepulsar/pulsar:latest +FROM $PULSAR_IMAGE # Switch to run as the root user to simplify building container and then running # supervisord. Each of the pulsar components are spawned by supervisord and their diff --git a/tests/docker-images/latest-version-image/pom.xml b/tests/docker-images/latest-version-image/pom.xml index bc54140dfc0ba..0db9d12569277 100644 --- a/tests/docker-images/latest-version-image/pom.xml +++ b/tests/docker-images/latest-version-image/pom.xml @@ -121,11 +121,15 @@ - ${docker.organization}/pulsar-test-latest-version + ${docker.organization}/${docker.image}-test-latest-version ${project.basedir} + + ${docker.organization}/${docker.image}:${project.version}-${git.commit.id.abbrev} + ${docker.organization}/${docker.image}-all:${project.version}-${git.commit.id.abbrev} + - latest + ${docker.tag} ${project.version} true