| // |
| // ============LICENSE_START======================================================= |
| // Copyright (C) 2016-2018 Ericsson. All rights reserved. |
| // ================================================================================ |
| // 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 |
| // |
| // SPDX-License-Identifier: CC-BY-4.0 |
| // ============LICENSE_END========================================================= |
| // |
| // @author Sven van der Meer (sven.van.der.meer@ericsson.com) |
| // |
| |
| == Running APEX in Docker |
| |
| Since APEX is in ONAP, we provide a full virtualization environment for the engine. |
| |
| |
| === Run in ONAP |
| |
| Running APEX from the ONAP docker repository only requires 2 commands: |
| |
| . Log into the ONAP docker repo |
| [source%nowrap,sh,numbered] |
| ---- |
| docker login -u docker -p docker nexus3.onap.org:10003 |
| ---- |
| . Run the APEX docker image |
| [source%nowrap,sh,numbered] |
| ---- |
| docker run -it --rm nexus3.onap.org:10003/onap/policy-apex-pdp:latest |
| ---- |
| |
| |
| === Build a Docker Image |
| |
| Alternatively, one can use the Dockerfile defined in the Docker package to build an image. |
| |
| .APEX Dockerfile |
| [source%nowrap,sh,numbered,subs="attributes+"] |
| ---- |
| include::{adsite-packages-docker-dir}/main/docker/Dockerfile[APEX Dockerfile] |
| ---- |
| |