This is an example of how to run an ONAP sdnc-image with a minimal setup with SDN-R configuration with docker-compose. With this deployment you are able run the ODLUX gui within the SDNC
Prerequisites
- docker
- docker-compose
Deployment
So we have only 2 files in our directory. The docker-compose.yml itself and the .env file for storing all parameters we may like to change.
docker-compose.yml (minimal):
version: '3' services: sdnr: image: ${SDNC_IMAGE} container_name: sdnr ports: - 8181:8181 environment: - A1_ADAPTER_NORTHBOUND=false - CCSDK_REPLICAS=0 - DOMAIN="" - ENABLE_OAUTH=false - ENABLE_ODL_CLUSTER=false - ODL_ADMIN_PASSWORD=${ADMIN_PASSWORD} - SDNC_REPLICAS=0 - SDNRDBURL=http://sdnrdb:9200 - SDNRDM=false - SDNRINIT=true - SDNRONLY=true - SDNRWT=true - SDNR_NETCONF_CALLHOME_ENABLED=true - JAVA_OPTS=-Xms256m -Xmx4g sdnrdb: image: ${SDNRDB_IMAGE} container_name: sdnrdb environment: - discovery.type=single-node
.env file:
SDNC_IMAGE=nexus3.onap.org:10001/onap/sdnc-image:latest ADMIN_PASSWORD=admin SDNRDB_IMAGE=docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3
The sdnc image version (here latest) you can choose from this list here: https://nexus3.onap.org:10001/v2/onap/sdnc-image/tags/list.
So after you started this deployment with
$ docker-compose up -d
you should be able to access the ODLUX gui via you webbrowser on http://localhost:8181/odlux/index.html.
Troubleshooting
Problem: ODLUX is not coming up/ 401 Unauthorized response:
Step 1: check ready service
$ curl -v http://localhost:8181/ready
should return response code 200
< HTTP/1.1 200 OK < Server: nginx < Date: Mon, 20 Sep 2021 07:00:29 GMT < Transfer-Encoding: chunked < Connection: keep-alive < X-Frame-Options: SAMEORIGIN < * Connection #0 to host localhost left intact
If this