From cd6e87e9305ed8fea95aefbf1d8494b57ab55c70 Mon Sep 17 00:00:00 2001 From: "reportportal.io" Date: Mon, 24 Jul 2023 19:56:47 +0000 Subject: [PATCH] [Gradle Release Plugin] - new version commit: '5.9.3'. --- Dockerfile | 30 +++++++----------------------- gradle.properties | 2 +- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/Dockerfile b/Dockerfile index efadd2c..a13526d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,25 +1,9 @@ -FROM gradle:6.8.3-jdk11 AS build -ARG BOM_VERSION MIGRATION_VERSION GITHUB_USER GITHUB_TOKEN RELEASE_MODE SCRIPTS_VERSION APP_VERSION -WORKDIR /usr/app -COPY . /usr/app -RUN if [ ${RELEASE_MODE} = true ]; then \ - gradle build --exclude-task test \ - -PreleaseMode=true \ - -PgithubUserName=${GITHUB_USER} \ - -PgithubToken=${GITHUB_TOKEN} \ - -Pscripts.version=${SCRIPTS_VERSION} \ - -Pmigrations.version=${MIGRATION_VERSION} \ - -Pbom.version=${BOM_VERSION} \ - -Dorg.gradle.project.version=${APP_VERSION}; \ - else gradle build --exclude-task test -Dorg.gradle.project.version=${APP_VERSION}; fi - -# For ARM build use flag: `--platform linux/arm64` -FROM --platform=$BUILDPLATFORM amazoncorretto:11.0.19 -LABEL version=${APP_VERSION} description="EPAM Report portal. Main API Service" maintainer="Andrei Varabyeu , Hleb Kanonik " -ARG APP_VERSION=${APP_VERSION} -ENV APP_DIR=/usr/app JAVA_OPTS="-Xmx1g -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=70 -Djava.security.egd=file:/dev/./urandom" -WORKDIR $APP_DIR -COPY --from=build $APP_DIR/build/libs/service-jobs-*exec.jar . +FROM alpine:latest +LABEL version=5.9.2 description="EPAM Report portal. Service jobs" maintainer="Andrei Varabyeu , Hleb Kanonik " +ARG GH_TOKEN +RUN echo 'exec java ${JAVA_OPTS} -jar service-jobs-5.9.2-exec.jar' > /start.sh && chmod +x /start.sh && \ + wget --header="Authorization: Bearer ${GH_TOKEN}" -q https://maven.pkg.github.com/reportportal/service-jobs/com/epam/reportportal/service-jobs/5.9.2/service-jobs-5.9.2-exec.jar +ENV JAVA_OPTS="-Xmx512m -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=70 -Djava.security.egd=file:/dev/./urandom" VOLUME ["/tmp"] EXPOSE 8080 -ENTRYPOINT exec java ${JAVA_OPTS} -jar ${APP_DIR}/service-jobs-*exec.jar \ No newline at end of file +ENTRYPOINT ./start.sh diff --git a/gradle.properties b/gradle.properties index 8866622..92a1e75 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=5.9.2 +version=5.9.3 description=EPAM Report portal. Service jobs dockerServerUrl=unix:///var/run/docker.sock dockerPrepareEnvironment=