File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ NGINX Plus manages client requests based on service definitions provided by an e
1111This repo has been tested with:
1212
1313- Linux VM
14- - Docker- compose v2.20.2+
15- - NGINX Plus R29 + license (` nginx-repo.crt ` and ` nginx-repo.key ` )
14+ - Docker compose v2.20.2+
15+ - NGINX Plus R33 + license (` nginx-repo.crt ` , ` nginx-repo.key ` and ` license.jwt ` )
1616
1717## Current status / work in progress
1818
@@ -64,7 +64,7 @@ To start the environment:
64641 . Run the startup script: during its first run it will build all Docker images
6565
6666```
67- $ ./nginx-soap-rest.sh -o start -C /etc/ssl/nginx/nginx-repo.crt -K /etc/ssl/nginx/nginx-repo.key
67+ $ ./nginx-soap-rest.sh -o start -C /etc/ssl/nginx/nginx-repo.crt -K /etc/ssl/nginx/nginx-repo.key -j ./license.jwt
6868[+] Running 6/6
6969[...]
7070 ✔ Network nginx-soap-rest_lab-network Created
Original file line number Diff line number Diff line change 1- version : " 3.9"
2-
31services :
42 openldap :
53 container_name : openldap
@@ -71,6 +69,7 @@ services:
7169 - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
7270 - ./nginx/soaprest.js:/etc/nginx/conf.d/soaprest.js:ro
7371 - ./nginx/soaprest.conf:/etc/nginx/conf.d/soaprest.conf:ro
72+ - ${NGINX_JWT}:/etc/nginx/license.jwt:ro
7473 - /dev/null:/etc/nginx/conf.d/default.conf:ro
7574
7675secrets :
Original file line number Diff line number Diff line change @@ -10,16 +10,17 @@ $0 [options]\n\n
1010-h\t\t\t- This help\n
1111-o [start|stop]\t- Start/stop the lab\n
1212-C [file.crt]\t\t- Certificate file to pull packages from the official NGINX repository\n
13- -K [file.key]\t\t- Key file to pull packages from the official NGINX repository\n\n
13+ -K [file.key]\t\t- Key file to pull packages from the official NGINX repository\n
14+ -j [license.jwt]\t- JWT license for NGINX Plus R33+\n\n
1415=== Examples:\n\n
1516Lab start:\n
16- \t$0 -o start -C /etc/ssl/nginx/nginx-repo.crt -K /etc/ssl/nginx/nginx-repo.key\n\n
17+ \t$0 -o start -C /etc/ssl/nginx/nginx-repo.crt -K /etc/ssl/nginx/nginx-repo.key -j ./license.jwt \n\n
1718Lab stop:\n
1819\t$0 -o stop\n\n
1920"
2021
2122
22- while getopts ' ho:C:K:' OPTION
23+ while getopts ' ho:C:K:j: ' OPTION
2324do
2425 case " $OPTION " in
2526 h)
3536 K)
3637 export NGINX_KEY=$OPTARG
3738 ;;
39+ j)
40+ export NGINX_JWT=$OPTARG
41+ ;;
3842 esac
3943done
4044
4650
4751case $MODE in
4852 ' start' )
49- if [ -z " ${NGINX_CERT} " ] || [ -z " ${NGINX_KEY} " ]
53+ if [ -z " ${NGINX_CERT} " ] || [ -z " ${NGINX_KEY} " ] || [ -z " ${NGINX_JWT} " ]
5054 then
51- echo " Missing NGINX Plus certificate/key"
55+ echo " Missing NGINX Plus certificate/key/jwt license "
5256 exit
5357 fi
5458
55- DOCKER_BUILDKIT=1 docker- compose -p $PROJECT_NAME -f $DOCKERCOMPOSE up -d --remove-orphans
59+ DOCKER_BUILDKIT=1 docker compose -p $PROJECT_NAME -f $DOCKERCOMPOSE up -d --remove-orphans
5660 ;;
5761 ' stop' )
5862 export NGINX_CERT=" x"
5963 export NGINX_KEY=" x"
60- docker-compose -p $PROJECT_NAME -f $DOCKERCOMPOSE down
64+ export NGINX_JWT=" x"
65+ docker compose -p $PROJECT_NAME -f $DOCKERCOMPOSE down
6166 ;;
6267 * )
6368 echo " $0 [start|stop]"
You can’t perform that action at this time.
0 commit comments