Skip to content

Commit

Permalink
Use Maven's --also-make option in Docker files (RedHatInsights#2287)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg authored Oct 27, 2023
1 parent ed04597 commit e9cb69a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-aggregator.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -DskipTests --projects :checkstyle,:notifications-common-aggregator,:notifications-database,:notifications-aggregator --no-transfer-progress
RUN ./mvnw clean package -DskipTests -pl :notifications-aggregator -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-backend.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -DskipTests --projects :checkstyle,:notifications-common,:notifications-common-aggregator,:notifications-database,:notifications-backend --no-transfer-progress
RUN ./mvnw clean package -DskipTests -pl :notifications-backend -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-connector-drawer.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-connector-common,:notifications-connector-drawer --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-drawer -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-connector-email.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-connector-common,:notifications-connector-email --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-email -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-connector-google-chat.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-connector-common,:notifications-connector-google-chat --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-google-chat -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-connector-common,:notifications-connector-microsoft-teams --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-microsoft-teams -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-connector-servicenow.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-connector-common,:notifications-connector-servicenow --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-servicenow -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-connector-slack.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-connector-common,:notifications-connector-slack --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-slack -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-connector-splunk.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-connector-common,:notifications-connector-splunk --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-splunk -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-connector-webhook.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-connector-common,:notifications-connector-webhook --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-connector-webhook -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-engine.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -DskipTests --projects :checkstyle,:notifications-common,:notifications-common-aggregator,:notifications-database,:notifications-engine --no-transfer-progress
RUN ./mvnw clean package -DskipTests -pl :notifications-engine -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.notifications-recipients-resolver.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip --projects :notifications-recipients-resolver --no-transfer-progress
RUN ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -pl :notifications-recipients-resolver -am --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest
Expand Down

0 comments on commit e9cb69a

Please sign in to comment.