diff --git a/product-composite-service/Dockerfile b/product-composite-service/Dockerfile index 30212339..eb7ba1d7 100644 --- a/product-composite-service/Dockerfile +++ b/product-composite-service/Dockerfile @@ -18,10 +18,13 @@ RUN java -Djarmode=layertools -jar --enable-preview application.jar extract # ------------------------ # Build image based on JDK 14 base image, based on latest debian buster OS FROM openjdk:14-slim-buster -MAINTAINER Mohamed Taman -# Set image information -LABEL version="0.1.beta" name="Product Service" +# Set image information, but could be set to different location from command line +ARG IMAGE_VERSION="0.0.1-SNAPSHOT" +ARG IMAGE_NAME="Product Composite Service" +ARG MAINTAINER="Mohamed Taman " + +LABEL version=${IMAGE_VERSION} name=${IMAGE_NAME} maintainer=${MAINTAINER} # Limiting security access to not user root user RUN addgroup siriusxi && useradd -g siriusxi -ms /bin/bash taman @@ -41,7 +44,9 @@ COPY --from=builder temp/application/ ./ # Expose current application to port 8080 EXPOSE 8080 -# Run the application +ARG JAVA_OPTS="" + +# Run the application with JVM configs if any ENTRYPOINT ["bash", "-c", \ "java -server --enable-preview -XX:+UseContainerSupport \ -XX:+AlwaysActAsServerClassMachine -XX:+UseG1GC -XX:+UseStringDeduplication ${JAVA_OPTS} \ diff --git a/product-composite-service/pom.xml b/product-composite-service/pom.xml index 658dd259..adc103f4 100644 --- a/product-composite-service/pom.xml +++ b/product-composite-service/pom.xml @@ -14,4 +14,9 @@ Product Composite Service Product Composite Service Spring Boot based project + + false + false + + diff --git a/product-service/Dockerfile b/product-service/Dockerfile index 30212339..492c8e38 100644 --- a/product-service/Dockerfile +++ b/product-service/Dockerfile @@ -4,7 +4,7 @@ FROM openjdk:14-slim-buster as builder WORKDIR temp -# Could be set to different jar file location +# Fatjar location, but could be set to different location from command line ARG JAR_FILE=target/*.jar # Copy fat jar file to current image builder @@ -20,8 +20,12 @@ RUN java -Djarmode=layertools -jar --enable-preview application.jar extract FROM openjdk:14-slim-buster MAINTAINER Mohamed Taman -# Set image information -LABEL version="0.1.beta" name="Product Service" +# Set image information, but could be set to different location from command line +ARG IMAGE_VERSION="0.0.1-SNAPSHOT" +ARG IMAGE_NAME="Product Service" +ARG MAINTAINER="Mohamed Taman " + +LABEL version=${IMAGE_VERSION} name=${IMAGE_NAME} maintainer=${MAINTAINER} # Limiting security access to not user root user RUN addgroup siriusxi && useradd -g siriusxi -ms /bin/bash taman @@ -41,7 +45,9 @@ COPY --from=builder temp/application/ ./ # Expose current application to port 8080 EXPOSE 8080 -# Run the application +ARG JAVA_OPTS="" + +# Run the application with JVM configs if any ENTRYPOINT ["bash", "-c", \ "java -server --enable-preview -XX:+UseContainerSupport \ -XX:+AlwaysActAsServerClassMachine -XX:+UseG1GC -XX:+UseStringDeduplication ${JAVA_OPTS} \ diff --git a/product-service/pom.xml b/product-service/pom.xml index cbedb927..654737e2 100644 --- a/product-service/pom.xml +++ b/product-service/pom.xml @@ -14,4 +14,9 @@ Product Service Product Service Spring Boot based project + + false + false + + diff --git a/recommendation-service/Dockerfile b/recommendation-service/Dockerfile index 96dd37dc..75ab08b9 100644 --- a/recommendation-service/Dockerfile +++ b/recommendation-service/Dockerfile @@ -20,8 +20,12 @@ RUN java -Djarmode=layertools -jar --enable-preview application.jar extract FROM openjdk:14-slim-buster MAINTAINER Mohamed Taman -# Set image information -LABEL version="0.1.beta" name="Review Service" +# Set image information, but could be set to different location from command line +ARG IMAGE_VERSION="0.0.1-SNAPSHOT" +ARG IMAGE_NAME="Recommendation Service" +ARG MAINTAINER="Mohamed Taman " + +LABEL version=${IMAGE_VERSION} name=${IMAGE_NAME} maintainer=${MAINTAINER} # Limiting security access to not user root user RUN addgroup siriusxi && useradd -g siriusxi -ms /bin/bash taman @@ -41,7 +45,9 @@ COPY --from=builder temp/application/ ./ # Expose current application to port 8080 EXPOSE 8080 -# Run the application +ARG JAVA_OPTS="" + +# Run the application with JVM configs if any ENTRYPOINT ["bash", "-c", \ "java -server --enable-preview -XX:+UseContainerSupport \ -XX:+AlwaysActAsServerClassMachine -XX:+UseG1GC -XX:+UseStringDeduplication ${JAVA_OPTS} \ diff --git a/recommendation-service/pom.xml b/recommendation-service/pom.xml index dbded8af..c9106565 100644 --- a/recommendation-service/pom.xml +++ b/recommendation-service/pom.xml @@ -14,4 +14,9 @@ Recommendation Service Recommendation Service Spring Boot based project + + false + false + + diff --git a/review-service/Dockerfile b/review-service/Dockerfile index 96dd37dc..37564580 100644 --- a/review-service/Dockerfile +++ b/review-service/Dockerfile @@ -20,8 +20,12 @@ RUN java -Djarmode=layertools -jar --enable-preview application.jar extract FROM openjdk:14-slim-buster MAINTAINER Mohamed Taman -# Set image information -LABEL version="0.1.beta" name="Review Service" +# Set image information, but could be set to different location from command line +ARG IMAGE_VERSION="0.0.1-SNAPSHOT" +ARG IMAGE_NAME="Review Service" +ARG MAINTAINER="Mohamed Taman " + +LABEL version=${IMAGE_VERSION} name=${IMAGE_NAME} maintainer=${MAINTAINER} # Limiting security access to not user root user RUN addgroup siriusxi && useradd -g siriusxi -ms /bin/bash taman @@ -41,7 +45,9 @@ COPY --from=builder temp/application/ ./ # Expose current application to port 8080 EXPOSE 8080 -# Run the application +ARG JAVA_OPTS="" + +# Run the application with JVM configs if any ENTRYPOINT ["bash", "-c", \ "java -server --enable-preview -XX:+UseContainerSupport \ -XX:+AlwaysActAsServerClassMachine -XX:+UseG1GC -XX:+UseStringDeduplication ${JAVA_OPTS} \ diff --git a/review-service/pom.xml b/review-service/pom.xml index ab68e6bb..653471f6 100644 --- a/review-service/pom.xml +++ b/review-service/pom.xml @@ -14,4 +14,9 @@ Review Service Review Service Spring Boot based project + + false + false + + diff --git a/store-api/pom.xml b/store-api/pom.xml index 40e06f27..43c417bb 100644 --- a/store-api/pom.xml +++ b/store-api/pom.xml @@ -17,7 +17,7 @@ UTF-8 UTF-8 - 2.2.3.BUILD-SNAPSHOT + 2.3.0.M3 3.8.1 3.0.0-M4 3.0.0-M4 diff --git a/store-chassis/pom.xml b/store-chassis/pom.xml index d5497379..e181abfc 100644 --- a/store-chassis/pom.xml +++ b/store-chassis/pom.xml @@ -1,13 +1,12 @@ - 4.0.0 org.springframework.boot spring-boot-starter-parent - - 2.3.0.M2 + 2.3.0.M4 @@ -31,6 +30,19 @@ 14 UTF-8 UTF-8 + + + 1.4.13 + + + Mohamed Taman + mohamed.taman@gmail.com + siriusxi + latest + true + true + true + true @@ -101,7 +113,9 @@ spring-boot-maven-plugin - LAYERED_JAR + + true + @@ -127,6 +141,62 @@ + + + com.spotify + dockerfile-maven-plugin + ${dockerfile-maven-version} + + + build-image + package + + build + + + ${skip.image.build} + ${docker.repo.image.prefix}/${project.artifactId} + ${docker.image.default.tag} + + + + tag-image + package + + tag + + + ${skip.image.tag} + ${project.version} + + + + push-image + verify + + push + + + ${skip.image.push} + ${project.version} + + + + + ${skip.dockerization} + Dockerfile + ${docker.repo.image.prefix}/${project.artifactId} + true + + target/${project.build.finalName}.jar + ${project.version} + ${project.name} + "${maintainer.name} (${maintainer.email})" + + + + + diff --git a/store-utils/pom.xml b/store-utils/pom.xml index aacd0357..d0ce4fa9 100644 --- a/store-utils/pom.xml +++ b/store-utils/pom.xml @@ -17,7 +17,7 @@ UTF-8 UTF-8 - 2.2.3.BUILD-SNAPSHOT + 2.3.0.M3 3.8.1 3.0.0-M4 3.0.0-M4