UNCLASSIFIED

Verified Commit 19d1310c authored by Humberto Ojeda's avatar Humberto Ojeda
Browse files

updated healthcheck to add retries and time periods; added yum disable ubi8 to install

parent ec0a35f5
......@@ -40,14 +40,18 @@ RUN useradd -M -s /usr/sbin/nologin --uid ${KEYCLOAK_USER_ID} --user-group ${KEY
chmod -R o-w /opt/jboss/keycloak
# Install dependencies
RUN yum install -y --disableplugin=subsciption-manager --nogpgcheck java-1.8.0-openjdk && \
RUN yum install -y --disableplugin=subsciption-manager \
--nogpgcheck \
--disablerepo=unified_platform_ubi8_appstream \
--disablerepo=unified_platform_ubi8_os \
java-1.8.0-openjdk && \
yum clean all
USER ${KEYCLOAK_USER_ID}
EXPOSE 8080
HEALTHCHECK CMD curl http://localhost/auth || exit 1
HEALTHCHECK --timeout=5m --start-period=2m --retries=3 CMD curl http://localhost/auth || exit 1
ENTRYPOINT [ "/opt/jboss/tools/docker-entrypoint.sh" ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment