Skip to content

Commit

Permalink
EPMRPP-85017 || Postfix for bucket names in binary storage (#266)
Browse files Browse the repository at this point in the history
* EPMRPP-85017 || Postfix for bucket names in binary storage

* EPMRPP-85017 || Update dockerfile


---------

Co-authored-by: Andrei Piankouski <[email protected]>
Co-authored-by: Reingold Shekhtel <[email protected]>
  • Loading branch information
3 people authored Jul 24, 2023
1 parent 14f33f3 commit 7ed5391
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 233 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ hs_err_pid*
.idea/
build/
.gradle/
.vscode/
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

30 changes: 23 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
FROM alpine:latest
LABEL version=5.8.1 description="Unified Authorization Trap for all ReportPortal's Services" maintainer="Andrei Varabyeu <[email protected]>, Hleb Kanonik <[email protected]>"
ARG GH_TOKEN
RUN echo 'exec java ${JAVA_OPTS} -jar service-authorization-5.8.1-exec.jar' > /start.sh && chmod +x /start.sh && \
wget --header="Authorization: Bearer ${GH_TOKEN}" -q https://maven.pkg.github.com/reportportal/service-authorization/com/epam/reportportal/service-authorization/5.8.1/service-authorization-5.8.1-exec.jar
ENV JAVA_OPTS="-Xmx512m -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=70 -Djava.security.egd=file:/dev/./urandom"
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 <[email protected]>, Hleb Kanonik <[email protected]>"
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-authorization-*exec.jar .
VOLUME ["/tmp"]
EXPOSE 8080
ENTRYPOINT ./start.sh
ENTRYPOINT exec java ${JAVA_OPTS} -jar ${APP_DIR}/service-authorization-*exec.jar
111 changes: 0 additions & 111 deletions Jenkinsfile.k8s.groovy

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dependencies {
compile 'com.epam.reportportal:commons-rules'
compile 'com.epam.reportportal:commons-model'
} else {
compile 'com.github.reportportal:commons-dao:d6966878ef'
compile 'com.github.reportportal:commons-dao:c0d3d19'
compile 'com.github.reportportal:commons-rules:331c402'
compile 'com.github.reportportal:commons-model:d61b714'
}
Expand Down
30 changes: 0 additions & 30 deletions docker/Dockerfile-dev-release

This file was deleted.

32 changes: 0 additions & 32 deletions docker/Dockerfile-develop

This file was deleted.

26 changes: 0 additions & 26 deletions docker/Dockerfile-release

This file was deleted.

1 change: 1 addition & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@ datastore:
accessKey:
secretKey:
bucketPrefix: prj-
bucketPostfix:
defaultBucketName: rp-bucket
region: us-west-1

0 comments on commit 7ed5391

Please sign in to comment.