-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
!target/*-runner | ||
!target/*-runner.jar | ||
!target/lib/* | ||
!target/quarkus-app/* | ||
!target/quarkus-app/* | ||
!images/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM registry.access.redhat.com/ubi9/openjdk-11:1.21-1 AS builder | ||
|
||
ARG GIT_REVISION=main | ||
|
||
USER root | ||
|
||
RUN microdnf install -y git-core && microdnf clean all | ||
|
||
WORKDIR /workspace | ||
|
||
RUN git init && \ | ||
git clone -b ${GIT_REVISION} --depth 1 https://github.com/Commonjava/indy-generic-proxy-service.git | ||
|
||
RUN cd indy-generic-proxy-service && \ | ||
mvn package -Dquarkus.package.type=uber-jar | ||
|
||
FROM registry.access.redhat.com/ubi9/openjdk-11-runtime:1.21-1 | ||
|
||
USER root | ||
|
||
RUN mkdir -p /deployment/log /deployment/config && \ | ||
chmod -R 777 /deployment/log /deployment/config | ||
|
||
COPY --from=builder /workspace/indy-generic-proxy-service/target/*-runner.jar /deployment/indy-generic-proxy-service-runner.jar | ||
RUN chmod +r /deployment/indy-generic-proxy-service-runner.jar | ||
|
||
COPY images/start-service.sh /deployment/start-service.sh | ||
RUN chmod +x /deployment/* | ||
|
||
WORKDIR / | ||
|
||
ENTRYPOINT ["bash", "-c"] | ||
CMD ["/deployment/start-service.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
echo "Hello! Indy Generic Proxy Service starts!" | ||
|
||
export JAVA_HOME=/usr/lib/jvm/jre-11-openjdk | ||
export JAVA_CMD=$JAVA_HOME/bin/java | ||
|
||
cd /deployment | ||
$JAVA_CMD $JAVA_OPTS -jar ./indy-generic-proxy-service-runner.jar |