Workaround 'Protocol family unavailable on a Java+Docker+WildFly'

See: https://access.redhat.com/solutions/2801771
main
Guido Grazioli 2021-12-14 13:37:19 +01:00
parent d90c9685c4
commit cc211d22e5
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ startKeycloak() {
-Djboss.https.port=${KEYCLOAK_HTTPS_PORT} \
-Djboss.management.http.port=${KEYCLOAK_MANAGEMENT_HTTP_PORT} \
-Djboss.management.https.port=${KEYCLOAK_MANAGEMENT_HTTPS_PORT} \
{% if ansible_facts.virtualization_type == 'docker' %}-Djava.net.preferIPv4Stack=true \{% endif %}
-Djboss.node.name={{ inventory_hostname }} 2>&1 >> "${KEYCLOAK_LOGFILE}" &
echo "${!}" > "${KEYCLOAK_PIDFILE}"
fi