Skip to content

Commit

Permalink
Merge pull request #223 from Edirom/222-docker-healthcheck-not-workin…
Browse files Browse the repository at this point in the history
…g-correctly

overwrite default healthcheck
  • Loading branch information
peterstadler authored Oct 29, 2024
2 parents 7b6131d + 207f192 commit b2d590d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,12 @@ RUN ["java", "net.sf.saxon.Transform", "-s:/exist/etc/log4j2.xml", "-xsl:/exist/
#RUN [ "java", \
# "org.exist.start.Main", "client", "-l", \
# "--no-gui", "--xpath", "system:get-version()" ]

# overwrite default healthcheck and explicitly set `-ouri`
# see https://github.com/Edirom/MerMEId/issues/222
HEALTHCHECK CMD [ "java", \
"org.exist.start.Main", "client", \
"--no-gui", \
"--user", "guest", "--password", "guest", \
"-ouri=xmldb:exist://localhost:8080/xmlrpc", \
"--xpath", "system:get-version()" ]

0 comments on commit b2d590d

Please sign in to comment.