aboutsummaryrefslogtreecommitdiffstats
path: root/src/site-docs/adoc/fragments/install-guide/docker.adoc
blob: 6f63956aa449a0f5516056133ebde99d218c2a59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// ============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]
----