Skip to content

Commit

Permalink
fix dockerfile, changed start script
Browse files Browse the repository at this point in the history
Signed-off-by: alfonso.iazzetti <alfonso.iazzetti@host.docker.internal>
  • Loading branch information
alfonso.iazzetti committed Sep 2, 2022
1 parent 7cc2c05 commit 6d12fca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,24 @@
FROM maven:3.6.0-jdk-11-slim
COPY pom.xml /tmp/
COPY src /tmp/src/
COPY log4j2.xml /tmp/log4j2.xml
COPY PA_List.dat /tmp/PA_List.dat
COPY TS_Config.conf /tmp/TS_Config.conf
COPY rpt.xml /tmp/rpt.xml
COPY apm.conf /tmp/apm.conf
COPY elastic-apm-agent-1.26.0.jar /tmp/elastic-apm-agent-1.26.0.jar
COPY startPAMock.sh /tmp/startPAMock.sh

WORKDIR /tmp/

RUN mvn package

ENTRYPOINT ["java", "-Dlog4j.configurationFile","/tmp/target/log4j2.xml", "-DLog4jContextSelector","org.apache.logging.log4j.core.async.AsyncLoggerContextSelector ", "-jar","/tmp/target/PA_Mock-1.1.1.jar"]
RUN mv startPAMock.sh target/startPAMock.sh

WORKDIR target

RUN chmod +777 startPAMock.sh

EXPOSE 8484

ENTRYPOINT ["/bin/sh", "./startPAMock.sh"]
2 changes: 1 addition & 1 deletion startPAMock.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java -Xmx500m -Dlog4j.configurationFile=log4j2.xml -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -jar XXX.jar --address=http://10.6.189.194:8484/servizio
java -Xmx500m -Dlog4j.configurationFile=log4j2.xml -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -jar PA_Mock-1.1.1.jar --address=http://localhost:8484/servizio

0 comments on commit 6d12fca

Please sign in to comment.