commit | 1f68035b96e9336b737bc9a5d055c5ffdd016813 | [log] [tgz] |
---|---|---|
author | danielhanrahan <daniel.hanrahan@est.tech> | Wed Sep 08 10:49:44 2021 +0100 |
committer | Daniel Hanrahan <daniel.hanrahan@est.tech> | Fri Sep 10 08:23:04 2021 +0000 |
tree | 9deb894ae8e5a9b3820555e79dbb1cdd7be0b5e1 | |
parent | f2047d16b47f086395856aefca6c5047b488d207 [diff] |
Ensure that login in policy-gui works with AAF Add CLAMP SSL cert and key to Docker image Change nginx port from 8080 to 2443 and enable SSL Update README to include instructions on certificate login Issue-ID: POLICY-3615 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I5211d30c420d75a94621399f33763b8156c50b5b
Copyright 2017-2018 AT&T Intellectual Property. All rights reserved. Copyright (C) 2021 Nordix Foundation. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains the ONAP Policy GUI code.
To build it using Maven 3, run: mvn clean install -P docker
Maven produces a single docker image containing the policy GUIs. These are exposed on the same port (2443) using different URLs:
You can use the following command to build the policy-gui docker image:
mvn clean install -P docker
Currently, the policy-gui docker image can be deployed with minimal configuration. As the clamp backend is required to use the clamp GUI, you can use the CLAMP_REST_URL environment variable to set its location.
By default, CLAMP_REST_URL is set to an invalid address (0.0.0.0), meaning the CLAMP GUI will not work without specifying CLAMP_REST_URL.
If running clamp as part of a docker network, where policy-clamp-backend
is the CLAMP backend, then CLAMP_REST_URL should be set to https://policy-clamp-backend:8443
.
If running clamp backend on localhost port 8443, the policy-gui docker image would be started like this:
docker run -p 2443:2443 \ --add-host host.docker.internal:host-gateway \ --env CLAMP_REST_URL=https://host.docker.internal:8443 \ onap/policy-gui
A certificate must be added in the browser and is required to log in properly:
org.onap.clamp.p12 (from clamp master) (Password: "China in the Spring")
See onap/clamp repo README for details.