Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Koehler
rdmo-docker-compose
Commits
6941be52
Commit
6941be52
authored
Oct 22, 2019
by
olaf michaelis
Browse files
Fix apache healthcheck
parent
8ad4e196
Changes
2
Hide whitespace changes
Inline
Side-by-side
apache/dockerfile_master
View file @
6941be52
...
...
@@ -25,12 +25,13 @@ RUN mkdir -p /usr/local/apache2/conf.d
COPY ./vhosts.conf "${HTTPD_VHOSTS}"
COPY ./drun.sh /drun.sh
COPY ./healthcheck.sh /healthcheck.sh
RUN useradd -m -u $UID -s /bin/bash rdmo
RUN mkdir -p /var/www/html
RUN mkdir -p /var/run/apache2
HEALTHCHECK --timeout=10s --interval=20s --retries=3 \
CMD
curl -f http://localhost:80 || exit 1
CMD
/healthcheck.sh
CMD ["/drun.sh"]
apache/healthcheck.sh
0 → 100755
View file @
6941be52
#!/bin/bash
curl
-f
http://localhost:80
${
BASE_URL
}
||
exit
1
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment