Skip to content

Commit c1614a1

Browse files
Modified Dockerfiles for LD Images Build
1 parent 13158b9 commit c1614a1

File tree

4 files changed

+8
-8
lines changed
  • basyx.aasdiscoveryservice/basyx.aasdiscoveryservice.component
  • basyx.aasenvironment/basyx.aasenvironment.component
  • basyx.aasregistry/basyx.aasregistry-service-release-log-mem/src/main/docker
  • basyx.submodelregistry/basyx.submodelregistry-service-release-log-mem/src/main/docker

4 files changed

+8
-8
lines changed

basyx.aasdiscoveryservice/basyx.aasdiscoveryservice.component/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ USER nobody
55
WORKDIR /application
66
ARG JAR_FILE=target/*-exec.jar
77
COPY ${JAR_FILE} basyxExecutable.jar
8-
COPY src/main/resources/application.properties application.properties
8+
# COPY src/main/resources/application.properties application.properties
99
ARG PORT=8081
1010
ENV SERVER_PORT=${PORT}
1111
EXPOSE ${SERVER_PORT}
12-
HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=15s CMD curl --fail http://localhost:${SERVER_PORT}/actuator/health || exit 1
13-
ENTRYPOINT ["java","-jar","basyxExecutable.jar"]
12+
# HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=15s CMD curl --fail http://localhost:${SERVER_PORT}/actuator/health || exit 1
13+
ENTRYPOINT ["java", "-Dspring.config.location=file:/application.properties", "-jar","basyxExecutable.jar"]

basyx.aasenvironment/basyx.aasenvironment.component/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ USER nobody
55
WORKDIR /application
66
ARG JAR_FILE=target/*-exec.jar
77
COPY ${JAR_FILE} basyxExecutable.jar
8-
COPY src/main/resources/application.properties application.properties
8+
# COPY src/main/resources/application.properties application.properties
99
ARG PORT=8081
1010
ENV SERVER_PORT=${PORT}
1111
EXPOSE ${SERVER_PORT}
12-
HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=15s CMD curl --fail http://localhost:${SERVER_PORT}/actuator/health || exit 1
13-
ENTRYPOINT ["java","-jar","basyxExecutable.jar"]
12+
# HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=15s CMD curl --fail http://localhost:${SERVER_PORT}/actuator/health || exit 1
13+
ENTRYPOINT ["java", "-Dspring.config.location=file:/application.properties", "-jar","basyxExecutable.jar"]

basyx.aasregistry/basyx.aasregistry-service-release-log-mem/src/main/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ ENV SERVER_PORT=${PORT}
2121
ARG CONTEXT_PATH=/
2222
ENV SERVER_SERVLET_CONTEXT_PATH=${CONTEXT_PATH}
2323
EXPOSE ${SERVER_PORT}
24-
HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=15s CMD curl --fail http://localhost:${SERVER_PORT}${SERVER_SERVLET_CONTEXT_PATH%/}/actuator/health || exit 1
24+
# HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=15s CMD curl --fail http://localhost:${SERVER_PORT}${SERVER_SERVLET_CONTEXT_PATH%/}/actuator/health || exit 1
2525
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/.urandom", "org.springframework.boot.loader.launch.JarLauncher"]
2626

basyx.submodelregistry/basyx.submodelregistry-service-release-log-mem/src/main/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ ENV SERVER_PORT=${PORT}
2121
ARG CONTEXT_PATH=/
2222
ENV SERVER_SERVLET_CONTEXT_PATH=${CONTEXT_PATH}
2323
EXPOSE ${SERVER_PORT}
24-
HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=15s CMD curl --fail http://localhost:${SERVER_PORT}${SERVER_SERVLET_CONTEXT_PATH%/}/actuator/health || exit 1
24+
# HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=15s CMD curl --fail http://localhost:${SERVER_PORT}${SERVER_SERVLET_CONTEXT_PATH%/}/actuator/health || exit 1
2525
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/.urandom", "org.springframework.boot.loader.launch.JarLauncher"]
2626

0 commit comments

Comments
 (0)