We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15a878a commit 5ed9041Copy full SHA for 5ed9041
test.sh
@@ -7,12 +7,8 @@ NONE='\033[00m'
7
DOCKER_IMAGE_NAME=jwt-nginx
8
CONTAINER_ID=$(docker run --rm --name "${DOCKER_IMAGE_NAME}-cont" -d -p 8000:8000 ${DOCKER_IMAGE_NAME})
9
10
-if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "linux"* ]]; then
11
- # Mac OSX / Linux
12
- MACHINE_IP='localhost'
13
-else
14
- # Windows
15
- MACHINE_IP=`docker-machine ip 2> /dev/null`
+if ! MACHINE_IP=`docker-machine ip 2>/dev/null`; then
+ MACHINE_IP='0.0.0.0' # fix for MacOS
16
fi
17
18
docker cp ${CONTAINER_ID}:/usr/lib64/nginx/modules/ngx_http_auth_jwt_module.so .
0 commit comments