mirror of https://github.com/apache/druid.git
Fix TLS IT for docker-machine (#6379)
This commit is contained in:
parent
6843cbba1d
commit
6a909c85d0
|
@ -43,8 +43,11 @@ Set the docker environment:
|
|||
```
|
||||
eval "$(docker-machine env integration)"
|
||||
export DOCKER_IP=$(docker-machine ip integration)
|
||||
export DOCKER_MACHINE_IP=$(docker-machine inspect integration | jq -r .Driver[\"HostOnlyCIDR\"])
|
||||
```
|
||||
|
||||
The final command uses the `jq` tool to read the Driver->HostOnlyCIDR field from the `docker-machine inspect` output. If you don't wish to install `jq`, you will need to set DOCKER_MACHINE_IP manually.
|
||||
|
||||
## Running tests
|
||||
|
||||
To run all the tests using docker and mvn run the following command:
|
||||
|
|
|
@ -27,6 +27,7 @@ basicConstraints=CA:FALSE,pathlen:0
|
|||
IP.1 = ${DOCKER_HOST_IP}
|
||||
IP.2 = 127.0.0.1
|
||||
IP.3 = 172.172.172.1
|
||||
IP.4 = ${DOCKER_MACHINE_IP:=127.0.0.1}
|
||||
DNS.1 = ${HOSTNAME}
|
||||
DNS.2 = localhost
|
||||
EOT
|
||||
|
|
|
@ -27,6 +27,7 @@ basicConstraints=CA:FALSE,pathlen:0
|
|||
IP.1 = ${DOCKER_HOST_IP}
|
||||
IP.2 = 127.0.0.1
|
||||
IP.3 = 172.172.172.1
|
||||
IP.4 = ${DOCKER_MACHINE_IP:=127.0.0.1}
|
||||
DNS.1 = ${HOSTNAME}
|
||||
DNS.2 = localhost
|
||||
EOT
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
export DOCKER_HOST_IP=$(resolveip -s $HOSTNAME)
|
||||
|
||||
|
||||
# Generate a client cert with an incorrect hostname for testing
|
||||
cat <<EOT > invalid_hostname_csr.conf
|
||||
[req]
|
||||
|
|
|
@ -58,6 +58,7 @@ basicConstraints=CA:FALSE,pathlen:0
|
|||
IP.1 = ${DOCKER_HOST_IP}
|
||||
IP.2 = 127.0.0.1
|
||||
IP.3 = 172.172.172.1
|
||||
IP.4 = ${DOCKER_MACHINE_IP:=127.0.0.1}
|
||||
DNS.1 = ${HOSTNAME}
|
||||
DNS.2 = localhost
|
||||
EOT
|
||||
|
|
|
@ -28,6 +28,7 @@ basicConstraints=CA:FALSE,pathlen:0
|
|||
IP.1 = ${DOCKER_HOST_IP}
|
||||
IP.2 = 127.0.0.1
|
||||
IP.3 = 172.172.172.1
|
||||
IP.4 = ${DOCKER_MACHINE_IP:=127.0.0.1}
|
||||
DNS.1 = ${HOSTNAME}
|
||||
DNS.2 = localhost
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ basicConstraints=CA:FALSE,pathlen:0
|
|||
IP.1 = ${DOCKER_HOST_IP}
|
||||
IP.2 = 127.0.0.1
|
||||
IP.3 = 172.172.172.1
|
||||
IP.4 = ${DOCKER_MACHINE_IP:=127.0.0.1}
|
||||
DNS.1 = ${HOSTNAME}
|
||||
DNS.2 = localhost
|
||||
EOT
|
||||
|
|
|
@ -58,6 +58,7 @@ basicConstraints=CA:FALSE,pathlen:0
|
|||
IP.1 = ${DOCKER_HOST_IP}
|
||||
IP.2 = 127.0.0.1
|
||||
IP.3 = 172.172.172.1
|
||||
IP.4 = ${DOCKER_MACHINE_IP:=127.0.0.1}
|
||||
DNS.1 = ${HOSTNAME}
|
||||
DNS.2 = localhost
|
||||
EOT
|
||||
|
|
Loading…
Reference in New Issue