-
Notifications
You must be signed in to change notification settings - Fork 1
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
6 changed files
with
68 additions
and
9 deletions.
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 |
---|---|---|
|
@@ -31,3 +31,5 @@ build/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
newrelic.yml |
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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
FROM openjdk:11 | ||
|
||
ARG XMX=1024m | ||
ARG XMX=4096m | ||
ARG PROFILE=production | ||
ARG CLOUD_CONFIG | ||
ARG ILI_QUEUE | ||
ARG NEW_RELIC_ENVIRONMENT | ||
|
||
ENV XMX=$XMX | ||
ENV PROFILE=$PROFILE | ||
ENV CLOUD_CONFIG=$CLOUD_CONFIG | ||
ENV ILI_QUEUE=$ILI_QUEUE | ||
ENV NEW_RELIC_ENVIRONMENT=$NEW_RELIC_ENVIRONMENT | ||
|
||
VOLUME /tmp | ||
|
||
ADD ./target/st-microservice-ili-2.2.0.jar st-microservice-ili.jar | ||
ADD ./target/st-microservice-ili-2.4.2.jar st-microservice-ili.jar | ||
ADD ./target/newrelic.jar newrelic.jar | ||
ADD ./newrelic.yml newrelic.yml | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT java -Xmx$XMX -jar /st-microservice-ili.jar --spring.profiles.active=$PROFILE --spring.cloud.config.uri=$CLOUD_CONFIG | ||
ENTRYPOINT java -javaagent:/newrelic.jar -Dnewrelic.environment=$NEW_RELIC_ENVIRONMENT -Xmx$XMX -jar /st-microservice-ili.jar --spring.profiles.active=$PROFILE --spring.cloud.config.uri=$CLOUD_CONFIG --st.rabbitmq.queueInstance=$ILI_QUEUE |
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
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
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
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 |
---|---|---|
|
@@ -27,4 +27,7 @@ server: | |
|
||
iliProcesses: | ||
srs: "9377" | ||
|
||
|
||
st: | ||
rabbitmq: | ||
queueInstance: st.queue.ili |