diff --git a/integration-tests/docker/Dockerfile b/integration-tests/docker/Dockerfile index 6c5094cf7d11..2cd58fae9c34 100644 --- a/integration-tests/docker/Dockerfile +++ b/integration-tests/docker/Dockerfile @@ -86,4 +86,4 @@ EXPOSE 8300 8301 8302 8303 8304 8305 EXPOSE 9092 9093 WORKDIR /var/lib/druid -ENTRYPOINT export HOST_IP="$(resolveip -s $HOSTNAME)" && /tls/generate-server-certs-and-keystores.sh && exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf +ENTRYPOINT export HOST_IP="$(curl ifconfig.me)" && /tls/generate-server-certs-and-keystores.sh && exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf diff --git a/integration-tests/docker/tls/generate-expired-client-cert.sh b/integration-tests/docker/tls/generate-expired-client-cert.sh index 71fb8b7f633b..6acdb135c61b 100755 --- a/integration-tests/docker/tls/generate-expired-client-cert.sh +++ b/integration-tests/docker/tls/generate-expired-client-cert.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -export DOCKER_HOST_IP=$(resolveip -s $HOSTNAME) +export DOCKER_HOST_IP=$(curl ifconfig.me) cat < expired_csr.conf [req] diff --git a/integration-tests/docker/tls/generate-good-client-cert.sh b/integration-tests/docker/tls/generate-good-client-cert.sh index e166d0908603..84e71b0341af 100755 --- a/integration-tests/docker/tls/generate-good-client-cert.sh +++ b/integration-tests/docker/tls/generate-good-client-cert.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -export DOCKER_HOST_IP=$(resolveip -s $HOSTNAME) +export DOCKER_HOST_IP=$(curl ifconfig.me) cat < csr.conf [req] diff --git a/integration-tests/docker/tls/generate-incorrect-hostname-client-cert.sh b/integration-tests/docker/tls/generate-incorrect-hostname-client-cert.sh index b778aa2aa3ba..9a0b80c644f3 100755 --- a/integration-tests/docker/tls/generate-incorrect-hostname-client-cert.sh +++ b/integration-tests/docker/tls/generate-incorrect-hostname-client-cert.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -export DOCKER_HOST_IP=$(resolveip -s $HOSTNAME) +export DOCKER_HOST_IP=$(curl ifconfig.me) # Generate a client cert with an incorrect hostname for testing cat < invalid_hostname_csr.conf diff --git a/integration-tests/docker/tls/generate-invalid-intermediate-client-cert.sh b/integration-tests/docker/tls/generate-invalid-intermediate-client-cert.sh index fc7771683250..b8e91a0d52e7 100755 --- a/integration-tests/docker/tls/generate-invalid-intermediate-client-cert.sh +++ b/integration-tests/docker/tls/generate-invalid-intermediate-client-cert.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -export DOCKER_HOST_IP=$(resolveip -s $HOSTNAME) +export DOCKER_HOST_IP=$(curl ifconfig.me) cat < invalid_ca_intermediate.conf [req] diff --git a/integration-tests/docker/tls/generate-to-be-revoked-client-cert.sh b/integration-tests/docker/tls/generate-to-be-revoked-client-cert.sh index effcad5e3099..adc0737d269b 100755 --- a/integration-tests/docker/tls/generate-to-be-revoked-client-cert.sh +++ b/integration-tests/docker/tls/generate-to-be-revoked-client-cert.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -export DOCKER_HOST_IP=$(resolveip -s $HOSTNAME) +export DOCKER_HOST_IP=$(curl ifconfig.me) # Generate a client cert that will be revoked cat < revoked_csr.conf diff --git a/integration-tests/docker/tls/generate-untrusted-root-client-cert.sh b/integration-tests/docker/tls/generate-untrusted-root-client-cert.sh index c133a5df1eab..2489300861ee 100755 --- a/integration-tests/docker/tls/generate-untrusted-root-client-cert.sh +++ b/integration-tests/docker/tls/generate-untrusted-root-client-cert.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -export DOCKER_HOST_IP=$(resolveip -s $HOSTNAME) +export DOCKER_HOST_IP=$(curl ifconfig.me) cat < csr_another_root.conf [req] diff --git a/integration-tests/docker/tls/generate-valid-intermediate-client-cert.sh b/integration-tests/docker/tls/generate-valid-intermediate-client-cert.sh index 914a7031100f..3ec09bd89535 100755 --- a/integration-tests/docker/tls/generate-valid-intermediate-client-cert.sh +++ b/integration-tests/docker/tls/generate-valid-intermediate-client-cert.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -export DOCKER_HOST_IP=$(resolveip -s $HOSTNAME) +export DOCKER_HOST_IP=$(curl ifconfig.me) cat < ca_intermediate.conf [req]