commit | 9eb86110fc0f859d00a456ce065b562476b45bf6 | [log] [tgz] |
---|---|---|
author | liamfallon <liam.fallon@est.tech> | Thu Sep 09 16:14:59 2021 +0100 |
committer | liamfallon <liam.fallon@est.tech> | Thu Sep 09 16:14:59 2021 +0100 |
tree | 062f19204bf2d341da89deb27df3cc1c5aff57ce | |
parent | 4cca9c08dcc9c56d8517e98498c6ff5627dd7121 [diff] |
Point at released policy-parent Issue-ID: POLICY-3587 Change-Id: I33000b3a514af99208b380973485f0c6048b39fb Signed-off-by: liamfallon <liam.fallon@est.tech>
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 (8080) 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 8080:8080 \ --add-host host.docker.internal:host-gateway \ --env CLAMP_REST_URL=https://host.docker.internal:8443 \ onap/policy-gui