Skip to content

Commit

Permalink
Added healthcheck
Browse files Browse the repository at this point in the history
Add Compose files
Use vendor neutral container label
  • Loading branch information
slominskir committed May 15, 2024
1 parent 01268a0 commit c071d58
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ RUN mkdir /unicopy \
&& cp /app/config/docker-server.env /unicopy \
&& cp /app/scripts/TestOracleConnection.java /unicopy \
&& cp /app/scripts/TestMariadbConnection.java /unicopy \
&& cp /app/scripts/docker-entrypoint.sh /unicopy \
&& cp /app/scripts/container-entrypoint.sh /unicopy \
&& cp /app/scripts/container-healthcheck.sh /unicopy \
&& cp /app/scripts/server-setup.sh /unicopy \
&& cp /app/scripts/provided-setup.sh /unicopy \
&& cp /app/scripts/app-setup.sh /unicopy \
Expand All @@ -45,7 +46,8 @@ RUN /update-certs-runner.sh ${CUSTOM_CRT_URL} \
&& chsh -s /bin/bash jboss \
&& /server-setup.sh /docker-server.env \
&& rm -rf /opt/jboss/wildfly/standalone/configuration/standalone_xml_history
ENTRYPOINT ["/docker-entrypoint.sh"]
ENTRYPOINT ["/container-entrypoint.sh"]
ENV ORACLE_DRIVER_PATH=$ORACLE_DRIVER_PATH
ENV MARIADB_DRIVER_PATH=$MARIADB_DRIVER_PATH
USER ${RUN_USER}
USER ${RUN_USER}
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --start-interval=5s --retries=5 CMD /container-healthcheck.sh
8 changes: 8 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
wildfly:
extends:
file: compose.yaml
service: wildfly
build:
context: .
dockerfile: Dockerfile
3 changes: 3 additions & 0 deletions compose.override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
services:
keycloak:
image: jeffersonlab/wildfly:1.5.0
8 changes: 8 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
wildfly:
hostname: wildfly
container_name: wildfly
ports:
- 8443:8443
- 8080:8080
- 9990:9990
File renamed without changes.
3 changes: 3 additions & 0 deletions scripts/container-healthcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

curl http://localhost:8080 -sf -o /dev/null

0 comments on commit c071d58

Please sign in to comment.