policy/docker.git
3 years agoUse local version of the include script 89/121689/1
arkadiusz.adamski [Thu, 3 Jun 2021 15:09:29 +0000 (16:09 +0100)]
Use local version of the include script

- Use local version of the include-raw-integration-install-robotframework.sh script
- correct name of pip python module

Issue-ID: POLICY-3092
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: Iba43621b3c8aebfa715cee91a75fd6832ccbc2be

3 years agoUse python3 for CSITs 99/121599/10
arkadiusz.adamski [Mon, 24 May 2021 11:50:40 +0000 (12:50 +0100)]
Use python3 for CSITs

- use python3 and pip3 in scripts
- update robot-framework-http library, so it can use python3
- update selenium2library, so it can use python3

Issue-ID: POLICY-3092
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: I5a6a4fe43e54366859049e1d43bbce599dacd14e

3 years agoTest csit verify jobs 25/121425/1
Ram Krishna Verma [Wed, 19 May 2021 18:33:02 +0000 (14:33 -0400)]
Test csit verify jobs

Test the csit verify jobs created as part of https://gerrit.onap.org/r/c/ci-management/+/121407

Issue-ID: POLICY-3257
Change-Id: I03bbfc2113c18c704c28270fe9c6720ddbc0e7ef
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoMerge "Update comments in test plans"
Pamela Dragosh [Fri, 14 May 2021 18:42:04 +0000 (18:42 +0000)]
Merge "Update comments in test plans"

3 years agoMerge "add https telemetry configuration for csits"
Ram Krishna Verma [Thu, 13 May 2021 18:52:22 +0000 (18:52 +0000)]
Merge "add https telemetry configuration for csits"

3 years agoUpdate comments in test plans 42/121342/1
Jim Hahn [Thu, 13 May 2021 17:24:12 +0000 (13:24 -0400)]
Update comments in test plans

Changed the directory name in the test plan comments, now that they've
been moved to docker/csit.

Issue-ID: POLICY-3299
Change-Id: Ie17e01ff68a6d2caca9750736724a6e97a8ac20d
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFix distribution csit failure 40/121340/1
Ram Krishna Verma [Thu, 13 May 2021 15:03:50 +0000 (11:03 -0400)]
Fix distribution csit failure

Fixing the path of the mount path from where csar files will be copied into the container.

Issue-ID: POLICY-3257
Change-Id: Ibea35730439ae757578660d327f0fc26e3ad45a8
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoadd https telemetry configuration for csits 39/121339/2
jhh [Thu, 13 May 2021 14:55:40 +0000 (09:55 -0500)]
add https telemetry configuration for csits

Issue-ID: POLICY-3230
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I89c932753cd236ab1e696004834db430c175f953
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agoMerge "Move remaining CSITs from to docker/csit"
Ram Krishna Verma [Thu, 13 May 2021 13:10:39 +0000 (13:10 +0000)]
Merge "Move remaining CSITs from to docker/csit"

3 years agoMove remaining CSITs from to docker/csit 90/121290/2
Jim Hahn [Wed, 12 May 2021 15:33:43 +0000 (11:33 -0400)]
Move remaining CSITs from to docker/csit

Moved the remaining CSITs from the individual policy repos to the
docker repo.  The files are unchanged, except for removing trailing
spaces and adding newlines to the end of a few of them.  The two
exceptions were the setup.sh scripts for drools-apps and distribution,
in which "/csit" is no longer being appended to the TESTPLANDIR, as
that variable now already includes "/csit".

Issue-ID: POLICY-3299
Change-Id: I4dd381ad7d916f334cfbcbfb541c78db97012dd2
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFix xacml-pdp csit test cases 63/121263/1
Ram Krishna Verma [Tue, 11 May 2021 13:57:02 +0000 (09:57 -0400)]
Fix xacml-pdp csit test cases

In the recent runs, it was found that get statitcs might take few seconds longer after the actual deployment of policies. So, increasing the "max" wait time for the test cases to 1 min. And it won't slow down the tests as the check will be made every 15 sec to verify if the assertions are passing. The moment they pass, it will move on.

Issue-ID: POLICY-3257
Change-Id: Ifb00a7745b054fe490dd66cc680732893ff2b31a
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoMerge csits into docker/csit 40/121240/2
Jim Hahn [Mon, 10 May 2021 19:36:30 +0000 (15:36 -0400)]
Merge csits into docker/csit

Decided to move CSIT test source code from the individual repos into
the docker repo.  This review modifies the scripts to begin the process,
and includes the CSIT code from xacml-pdp, as the first one to move.

Note: while the xacml-pdp files are new to the docker repo, they are
not actually new, thus their licenses were retained.

Issue-ID: POLICY-3299
Change-Id: I7cce548ceec38c9c1615af883f08eb118e84d132
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoMake base image name a property 38/120638/2
liamfallon [Mon, 19 Apr 2021 13:10:43 +0000 (14:10 +0100)]
Make base image name a property

The base image name is not configurable for Policy builds. This change
makes the base image name configurable so it can be reconfigured if
needs be.

Issue-ID: POLICY-2971
Change-Id: I8ba39aa109c5b4ddb516c27f65bf20dc1020d220
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoUse github in lieu of gerrit mirror 39/120339/4
Jim Hahn [Thu, 8 Apr 2021 19:28:15 +0000 (15:28 -0400)]
Use github in lieu of gerrit mirror

The gerrit mirror is not always accessible behind corporate firewalls,
thus changed the CSITs to use github instead.
Also modified the script to only clone ci-management to /tmp if it
does not already exist.

Issue-ID: POLICY-3179
Change-Id: I9cac98b04e000d9365e05a1f2ca1c328fef14c6c
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUse base image for policy-jdk docker images 73/119873/2
Jim Hahn [Thu, 25 Mar 2021 22:04:18 +0000 (18:04 -0400)]
Use base image for policy-jdk docker images

Couldn't figure out a way to remove the jre, but was able to install the
jdk over top of it.

Issue-ID: POLICY-3134
Change-Id: I6096ff765500977f58449800192bbf2b53848efa
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUse generated keystore in CSITs 98/119398/10
Jim Hahn [Tue, 16 Mar 2021 18:52:34 +0000 (14:52 -0400)]
Use generated keystore in CSITs

Added code to the CSITs to generate a self-signed certificate, which can
then be mounted over the policy-keystore of each docker image when it is
launched.
Converted xacml's API params to BusTopicParams.

Issue-ID: POLICY-3143
Change-Id: Ic1c25a7f29d87583b81515fd2caf72ba7c44924c
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agochange temp dir mount for csit distribution 95/119195/2
Taka Cho [Thu, 11 Mar 2021 21:55:20 +0000 (16:55 -0500)]
change temp dir mount for csit distribution

refactor temp dir mount for csar distribution

Issue-ID: POLICY-2895
Change-Id: If5eda9b378f20766285346a6f5c9812d8623fb71
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoBump version to 2.3.0 in docker 56/119156/1
Jim Hahn [Thu, 11 Mar 2021 16:33:28 +0000 (11:33 -0500)]
Bump version to 2.3.0 in docker

Issue-ID: POLICY-3105
Change-Id: Ieabed46bee9f553aaf75445327c384f7ed3e9fb0
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agochange shell for disable feature in csit 72/118872/2
Taka Cho [Fri, 5 Mar 2021 19:57:31 +0000 (14:57 -0500)]
change shell for disable feature in csit

there is no bash in container
hence need to change to sh

Issue-ID: POLICY-2895
Change-Id: I5b5ffb028e478a93e09e9ed6926c6478da15e0ef
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agothree scripts move to docker/csit 08/118608/3
Taka Cho [Fri, 26 Feb 2021 15:25:55 +0000 (10:25 -0500)]
three scripts move to docker/csit

those three scripts appear to use in
drools and xacml. would suggest to move
to docker repo for general purpose

Issue-ID: POLICY-2895
Change-Id: Ib292f72a0df1bb45db0a9fc6dd25b3f9e172740f
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoUpdate info.yaml in docker 07/118407/1
Ram Krishna Verma [Wed, 24 Feb 2021 15:49:29 +0000 (10:49 -0500)]
Update info.yaml in docker

Issue-ID: POLICY-3028
Change-Id: I5ab36eb2d51acef48bf56a4fe62b63b1be1d86b3
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoBump version to 2.2.2-SNAPSHOT in docker 08/118208/1
Jim Hahn [Mon, 22 Feb 2021 22:17:22 +0000 (17:17 -0500)]
Bump version to 2.2.2-SNAPSHOT in docker

Issue-ID: POLICY-3088
Change-Id: Ie019d5eab6a7ec087ad689c50482dabb317010a9
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRelease docker image 2.2.1 of docker 05/118205/1 8.0.0-ONAP
Jim Hahn [Mon, 22 Feb 2021 21:29:34 +0000 (16:29 -0500)]
Release docker image 2.2.1 of docker

Issue-ID: POLICY-3088
Change-Id: I122845631b5da4e84441ed2bc1c37fabf100ea1f
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoPoint to non-snapshots in docker 96/118196/1 2.2.1 8.0.1-ONAP 8.0.2-PF-I1
Jim Hahn [Mon, 22 Feb 2021 19:26:39 +0000 (14:26 -0500)]
Point to non-snapshots in docker

Issue-ID: POLICY-3088
Change-Id: I77ad5fbf2bd3fa08ce68fbce7ae40a885751d08d
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoxacml pdpType is configurable 25/117925/1
Pamela Dragosh [Tue, 16 Feb 2021 21:50:52 +0000 (15:50 -0600)]
xacml pdpType is configurable

Update the configuration file.

Issue-ID: POLICY-3071
Change-Id: Ib164dcc8d8b4f761d4e8a9e14555ac1ae43b7f95
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoUpgrade mariadb version in CSITs 10/117610/1
Jim Hahn [Mon, 8 Feb 2021 20:32:31 +0000 (15:32 -0500)]
Upgrade mariadb version in CSITs

OOM has moved to mariaDB 10.5.8, so upgraded the version in the CSITs to
match.

Issue-ID: POLICY-3005
Change-Id: Ia4473f8c17510a2491e442689dfa99c55166fb08
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agochange archive dir based on new JJB template 86/116986/1
Taka Cho [Tue, 19 Jan 2021 18:56:54 +0000 (13:56 -0500)]
change archive dir based on  new JJB template

on integration-project-robot in integration/integration-macros.yaml
it sets output-path: 'csit/archives'
policy script has to fit this setting

Issue-ID: POLICY-2895
Change-Id: Ibc6b7fb8da03bba53e82ab5bddf9a4b37a02c935
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agorename to run-project-csit.sh to fit new JJB template 17/116917/4
Taka Cho [Fri, 15 Jan 2021 16:20:06 +0000 (11:20 -0500)]
rename to run-project-csit.sh to fit new JJB template

the project-csit jjb template is using
run-project-csit.sh by default.
also change SCRIPTS env to fit the right path
for jenkins build.

Issue-ID: POLICY-2895
Change-Id: Iec622cde4d65470ce966589082c086e6f668cb66
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agomove csit/scripts, docker-compose to docker repo 40/116740/6
Taka Cho [Mon, 11 Jan 2021 21:48:33 +0000 (16:48 -0500)]
move csit/scripts, docker-compose to docker repo

part of moving csit to project level
scripts shares with all applications repo reside in
docker repo.
all docker-compose relate volume files reside in
docker repo.
align with new JJB template

Issue-ID: POLICY-2895
Change-Id: I8fd97c6932e41779b01c1c941564763415c83f16
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agobump up version 2.2.1-SNAPSHOT 07/116607/1
Taka Cho [Tue, 5 Jan 2021 20:02:00 +0000 (15:02 -0500)]
bump up version 2.2.1-SNAPSHOT

bump up to next version

Issue-ID: POLICY-2917
Change-Id: I10c70240478ac9b7b633219c65d033823fde1d7c
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agorelease jdk and jre base 06/116606/1
Taka Cho [Tue, 5 Jan 2021 19:16:33 +0000 (14:16 -0500)]
release jdk and jre base

release 2.2.0 jdk and jre base
image

Issue-ID: POLICY-2917
Change-Id: Icb7021e3d8810e0b5a71862c86878faf132d903b
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agouse java11 jre base from onap 81/116481/1 2.2.0
Taka Cho [Fri, 18 Dec 2020 14:42:52 +0000 (09:42 -0500)]
use java11 jre base from onap

1, use onap/integration-java11 as a base for JRE
2, sym-link to the original JAVA_HOME to ensure
   all startup scripts worked

Issue-ID: POLICY-2917
Change-Id: I2c8333f227f8ae2076a6c784cf344db8fb59345b
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoremove all GPL-3.0 and plus license package 36/116436/1
Taka Cho [Wed, 16 Dec 2020 20:42:38 +0000 (15:42 -0500)]
remove all GPL-3.0 and plus license package

change to /bin/sh for policy user

Issue-ID: POLICY-2847
Change-Id: Ie2c88b3e15ab4ca2bf5e6d928f0f9c40c0688c4b
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoremove all GPL-3.0 and plus license package 31/116231/1
Taka Cho [Tue, 8 Dec 2020 20:41:01 +0000 (15:41 -0500)]
remove all GPL-3.0 and plus license package

this gerrit would be the second step
to not to use any GPL-3.0 and plus license

Issue-ID: POLICY-2847
Change-Id: Idd299ddb6d69bf8ad11a8df7919331062837a510
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoremove all GPL-3.0 and plus license package 40/115140/1
Taka Cho [Thu, 19 Nov 2020 19:32:35 +0000 (14:32 -0500)]
remove all GPL-3.0 and plus license package

this gerrit would be the second step
to not to use any GPL-3.0 and plus license

Issue-ID: POLICY-2847
Change-Id: I637b8db2fd39a1f0864c8320b5744fc99350108c
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoBump docker master to 2.2.0-SNAPSHOT 16/114316/1
Jim Hahn [Tue, 27 Oct 2020 18:29:13 +0000 (14:29 -0400)]
Bump docker master to 2.2.0-SNAPSHOT

Bumping minor version now that guilin branch has been created.
Also repointed to snapshot versions for dependencies.

Issue-ID: POLICY-2875
Change-Id: I9e84ca07f8d932d2e6fb80a1746eb26878bb7857
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFixing policy-models-simulator helm issues 79/113579/3
a.sreekumar [Tue, 6 Oct 2020 17:13:47 +0000 (18:13 +0100)]
Fixing policy-models-simulator helm issues

This review updates the config file for the simulator in order to fix
below 2 issues:
1) Too much logs due to SSL related errors causing POD to be evicted
every 30minutes.
2) Invalid Parameters causing the container to crash
(RestServerParameters validation in dmaapProvider making it mandatory to
add host and port)

Change-Id: I5cd1b44b0a142627071dccd93b6d3e40400db711
Issue-ID: POLICY-2828
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
3 years agoHelm chart for policy-models-simulator 19/113419/4
puthuparambil.aditya [Thu, 1 Oct 2020 11:06:33 +0000 (12:06 +0100)]
Helm chart for policy-models-simulator

Issue-ID: POLICY-2828
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Ic5e94edb2bc76067d5cde03dae2670dc6cf99a0e

3 years agoBump version to 2.1.2 43/112643/1
Jim Hahn [Mon, 14 Sep 2020 19:55:03 +0000 (15:55 -0400)]
Bump version to 2.1.2

Issue-ID: POLICY-2819
Change-Id: I2383dd7e2cc7d0262ea27b9a03152216b006389e
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRelease docker 2.1.1 37/112637/1 7.0.0-ONAP
Jim Hahn [Mon, 14 Sep 2020 19:33:58 +0000 (15:33 -0400)]
Release docker 2.1.1

Issue-ID: POLICY-2789
Change-Id: I020252f5ca31d79915740a418eccbc194e868f46
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpdate alpine images for jdk11 97/112497/2 2.1.1
Jim Hahn [Thu, 10 Sep 2020 14:46:21 +0000 (10:46 -0400)]
Update alpine images for jdk11

Updated the docker images to alpine 3.12.0 so that a newer version of
openjdk11 would be pulled in.
Modified the jdk image to download maven via curl rather than installing
it via apk so-as to prevent it from installing java8 as a dependency.

Issue-ID: POLICY-2819
Change-Id: Iba4e2448b826ce6abb5df506228c99b9a3676495
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoMerge "Bump version to 2.1.1"
Jim Hahn [Fri, 4 Sep 2020 21:06:37 +0000 (21:06 +0000)]
Merge "Bump version to 2.1.1"

3 years agoUpdate container after stage-release 81/112181/1
Jim Hahn [Fri, 4 Sep 2020 14:34:01 +0000 (10:34 -0400)]
Update container after stage-release

Previously forgot to "stage-release" the docker images.  Having done
that, now need to update the container.yaml to match it.

Issue-ID: POLICY-2789
Change-Id: Id0d5c061ae8f49ac17d796594647c5426157466f
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoBump version to 2.1.1 79/112179/1
Jim Hahn [Fri, 4 Sep 2020 13:56:49 +0000 (09:56 -0400)]
Bump version to 2.1.1

Issue-ID: POLICY-2789
Change-Id: I994fd59c7ec7a8a9472c08e1404f1afc7a14d112
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRelease docker 2.1.0 27/112127/1
Jim Hahn [Thu, 3 Sep 2020 17:26:34 +0000 (13:26 -0400)]
Release docker 2.1.0

Issue-ID: POLICY-2789
Change-Id: I350c68fe8b1bed96c639bd1f4a81bc4dd4d71760
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoremove debian docker image build 57/112057/1 2.1.0
Taka Cho [Wed, 2 Sep 2020 16:55:44 +0000 (12:55 -0400)]
remove debian docker image build

In order to comply license violation,
have to move to alpine docker image build.
Hence removed all debian docker image build

Issue-ID: POLICY-2793
Change-Id: Ifa225b37dd65d366e54aebef317853f43c79311e
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoBump docker version to 2.1.0 64/111564/2
Jim Hahn [Fri, 21 Aug 2020 17:16:19 +0000 (13:16 -0400)]
Bump docker version to 2.1.0

Issue-ID: POLICY-2787
Change-Id: I8293c1684d6fa628f2a4866458a28ea0bb12bc9f
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRelease 2.0.2 docker containers 61/111561/1
Jim Hahn [Fri, 21 Aug 2020 16:06:29 +0000 (12:06 -0400)]
Release 2.0.2 docker containers

Issue-ID: POLICY-2787
Change-Id: I7ab2b4c045085562461521e70a5ac64617273c87
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpdate INFO.yaml in policy-docker 71/110771/1 2.0.2
Jim Hahn [Thu, 30 Jul 2020 19:03:03 +0000 (15:03 -0400)]
Update INFO.yaml in policy-docker

Verified with Jessica W that the "type" should still be "Addition",
even when updating the PTL.
Updated to Mature, per TSC.

Issue-ID: POLICY-2738
Change-Id: Idd77cdbd590d87d5cbbc59147f867d3dc440aa94
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoAdd Ajith to policy-docker info 61/110561/1
Jim Hahn [Fri, 24 Jul 2020 16:49:27 +0000 (12:49 -0400)]
Add Ajith to policy-docker info

Issue-ID: POLICY-2738
Change-Id: I0e743021f25450f0848c873fe9ca87d177b923d0
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRefer to released versions in policy/docker 35/110135/1
Jim Hahn [Mon, 13 Jul 2020 18:33:02 +0000 (14:33 -0400)]
Refer to released versions in policy/docker

Issue-ID: POLICY-2695
Change-Id: I7a38190e07c83d0cf9544e3bee53b86e9d575b64
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoChanging format of timestamp for docker 50/109450/1
RossC [Tue, 23 Jun 2020 10:19:54 +0000 (11:19 +0100)]
Changing format of timestamp for docker

Issue-ID: POLICY-2598
Change-Id: Ic72ec6ee112dc8a6b160702218480dcfafb3e811
Signed-off-by: RossC <ross.carter@est.tech>
4 years agoRemoving multiarch support from docker repo 90/109190/6
RossC [Tue, 16 Jun 2020 10:41:49 +0000 (11:41 +0100)]
Removing multiarch support from docker repo

Issue-ID: POLICY-2598
Change-Id: I233e235ad22a4acda3d53060eae6cec454dec1a1
Signed-off-by: RossC <ross.carter@est.tech>
4 years agoChange alpine docker images to match debian 31/108931/1 frankfurt
Jim Hahn [Mon, 8 Jun 2020 16:26:34 +0000 (12:26 -0400)]
Change alpine docker images to match debian

Various changes were made to the policy debian-slim docker
images.  Made the same changes to the alpine images.

Issue-ID: POLICY-2374
Change-Id: I1acc6a7791dc7c4a9ba44ea2c70b19ebeb0acf94
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoremove outdated docker compose files 62/107162/4
Taka Cho [Tue, 5 May 2020 20:53:52 +0000 (16:53 -0400)]
remove outdated docker compose files

preferable using docker-compose under csit
repo for policy in order to bring up local env

Issue-ID: POLICY-2541
Change-Id: I2e9a7e7e1cac5642228bd048def857879e580e71
Signed-off-by: Taka Cho <takamune.cho@att.com>
4 years agoPoint to released models, drools-apps 74/105974/1
Pamela Dragosh [Wed, 15 Apr 2020 00:43:40 +0000 (20:43 -0400)]
Point to released models, drools-apps

Issue-ID: POLICY-2378
Change-Id: I31d1dabe86f2d7d0466d7e5527de24e4a4b1224e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to parent, common, models 71/105871/2
Pamela Dragosh [Mon, 13 Apr 2020 20:49:47 +0000 (16:49 -0400)]
Point to parent, common, models

Parent released, common and models have fixes.

Issue-ID: POLICY-2486
Change-Id: I9e34b45f23411a4660f015ee6099ad4158eb1c57
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to policy SNAPSHOT 55/105255/1
Pamela Dragosh [Tue, 7 Apr 2020 12:45:50 +0000 (08:45 -0400)]
Point to policy SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: I6ccc6ec484ad8a46ec452ad6e4e9d6de4efdfb12
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to latest snapshots 85/104585/1
Pamela Dragosh [Fri, 27 Mar 2020 16:55:14 +0000 (12:55 -0400)]
Point to latest snapshots

Issue-ID: POLICY-2378
Change-Id: Ie302d4e3f9141004feb7782d5895dda040d7bdfd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoUpdate brms dependency and models dependency versions 28/104428/2
Peyton Puckett [Wed, 25 Mar 2020 20:33:23 +0000 (15:33 -0500)]
Update brms dependency and models dependency versions

Issue-ID: POLICY-2378
Change-Id: Ie64c246fee536138c179e13d53f1ccfc854c2238
Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
4 years agoPoint to models release 91/104191/1
Pamela Dragosh [Mon, 23 Mar 2020 23:43:17 +0000 (19:43 -0400)]
Point to models release

Issue-ID: POLICY-2378
Change-Id: Ib2ca540fd6b77dbf4dec6e36b8fc75fce8a9d44b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Bump policy/docker 2.0.2"
Ram Krishna Verma [Mon, 2 Mar 2020 14:25:55 +0000 (14:25 +0000)]
Merge "Bump policy/docker 2.0.2"

4 years agoBump policy/docker 2.0.2 78/102678/2
Pamela Dragosh [Sun, 1 Mar 2020 21:36:02 +0000 (16:36 -0500)]
Bump policy/docker 2.0.2

2.0.1 is released, bump to next patch.

Also ensure configuration for dependencies is correct.

Issue-ID: POLICY-2378
Change-Id: Ia581392df30614f92d30b52ef4799258991f584b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Release policy-docker 2.0.1" 6.0.0-ONAP
Pamela Dragosh [Sun, 1 Mar 2020 19:54:33 +0000 (19:54 +0000)]
Merge "Release policy-docker 2.0.1"

4 years agoRelease policy-docker 2.0.1 29/102629/5
a.sreekumar [Fri, 28 Feb 2020 19:42:54 +0000 (19:42 +0000)]
Release policy-docker 2.0.1

Pam updated to latest head which had the specification
of an exact alpine image. Note, the debian was already
fixed.

Change-Id: Ia9624e51ff9d949b77a4ebb9969034d2f8907357
Issue-ID: POLICY-2378
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoUpdating alpine version to 3.11.3 in policy-docker Dockerfiles 52/102652/1 2.0.1
a.sreekumar [Sat, 29 Feb 2020 11:59:14 +0000 (11:59 +0000)]
Updating alpine version to 3.11.3 in policy-docker Dockerfiles

Change-Id: I9291f36e94d4b262cfe5bd0d420af86ce21205a8
Issue-ID: POLICY-2378
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoBump policy/docker to 2.0.1 47/102147/1
Pamela Dragosh [Fri, 21 Feb 2020 13:37:54 +0000 (08:37 -0500)]
Bump policy/docker to 2.0.1

2.0.0 was released, there are changes so there needs to be
a release for 2.0.1

Issue-ID: POLICY-2378
Change-Id: Ib9cd12ffc4ab06016d4208d45f4a5183e62432d1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRemove POLICY_HOME/etc/ssl and python 28/102028/1
jhh [Wed, 19 Feb 2020 23:24:50 +0000 (17:24 -0600)]
Remove POLICY_HOME/etc/ssl and python

These are companion changes to
https://gerrit.onap.org/r/#/c/policy/docker/+/101758/.
to keep them consistent.  In a nutshell, directory layout
under POLICY_HOME should be done by individual components,
as well as python installation.

Issue-ID: POLICY-2181
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ie0a538ad7b9b245d43e707cf92303829f0dae2ff

4 years agoRemove drools from engine CSITs compose 41/101941/1
jhh [Wed, 19 Feb 2020 02:48:47 +0000 (20:48 -0600)]
Remove drools from engine CSITs compose

Engine CSITs uses docker-compose-integration.yml which
is stored under policy/docker repo.   This is historical
as there are no robot tests on those CSITs that exercise
functionality with interactions between engine components
and drools.   drools and drools apps are covered on its
own CSITs.   This change will decouple drools-pdp image
from engine in CSIT tests.

Issue-ID: POLICY-2181
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib528751dbd2cdce3e912012c9ce4429d8cbac030

4 years agoRemove creation of POLICY_HOME/etc/ssl 58/101758/2
jhh [Fri, 14 Feb 2020 17:42:25 +0000 (11:42 -0600)]
Remove creation of POLICY_HOME/etc/ssl

onap/policy-jdk-debian is only used by policy/drools
and policy/engine.  Their corresponding Dockerfiles
remove the precreated $POLICY_HOME/etc/ssl in order
to proceed with their images build.  In any case,
the directory layout under $POLICY_HOME should be handled
by its respective derived images.

Miscellaneous clean up of packages in the base image.
Some packages are only used in drools and not in engine,
hence removed and moved to drools.   The python dependencies
(python 2) created issues with tooling (http and telemetry).

Issue-ID: POLICY-2181
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I3028cc9aa10bb453110c45769a1dba0315f7704f
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoAdd container yaml 36/100336/6
Jim Hahn [Thu, 6 Feb 2020 22:04:27 +0000 (17:04 -0500)]
Add container yaml

Issue-ID: POLICY-1586
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I9664676f9a00c2ff47eb2b26e8af2f91574ce34c

4 years agoAdd vim to debian docker images 43/101143/1 2.0.0
Jim Hahn [Tue, 4 Feb 2020 21:39:39 +0000 (16:39 -0500)]
Add vim to debian docker images

Already included in alpine images.

Issue-ID: POLICY-1586
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I6b659dd0512493041a8ab3c83e7cdb5d2ca2e1bd

4 years agoMerge "Expose system proxy settings via base.conf"
Ram Krishna Verma [Thu, 30 Jan 2020 12:57:37 +0000 (12:57 +0000)]
Merge "Expose system proxy settings via base.conf"

4 years agoExpose system proxy settings via base.conf 78/100878/3
Rashmi Pujar [Tue, 28 Jan 2020 20:57:58 +0000 (15:57 -0500)]
Expose system proxy settings via base.conf

Issue-ID: POLICY-2330
Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca>
Change-Id: Ibb0343ea5446bce4d35905931930fb3de5df0448

4 years agoUpdate the java path to openjdk 11 82/100882/1
Bilal A [Tue, 28 Jan 2020 22:56:18 +0000 (22:56 +0000)]
Update the java path to openjdk 11

Issue-ID: POLICY-2325
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: I6d170616e9e0b9ff0342ef5dba6816207cb73b2e

4 years agoRemove explicit setting of JAVA_HOME 94/100394/1
jhh [Thu, 16 Jan 2020 21:04:49 +0000 (15:04 -0600)]
Remove explicit setting of JAVA_HOME

Issue-ID: POLICY-1586
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I122637aec5eb48d6bf2d452167998964f9346211

4 years agoRe-add alpine docker images 78/100378/4
Jim Hahn [Thu, 16 Jan 2020 15:41:56 +0000 (10:41 -0500)]
Re-add alpine docker images

Split the RUN into separate items in an attempt to get past the
sporadic I/O Error when building the policy alpine docker images.
Updates per review comments:
- removed nss
- removed openssh (for now)

Issue-ID: POLICY-1586
Change-Id: I9e6181e67333a5fdf01c8a4286f117b673e50076
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoComment out alpine docker images 26/100326/1
Jim Hahn [Wed, 15 Jan 2020 16:09:14 +0000 (11:09 -0500)]
Comment out alpine docker images

Issue-ID: POLICY-1586
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I2d6dc8c2d4b233cc17b5acf5260780416c55217b

4 years agoUpdate parent version in docker pom 17/100317/2
Jim Hahn [Wed, 15 Jan 2020 14:15:27 +0000 (09:15 -0500)]
Update parent version in docker pom

Addressed review comments:
- removed deprecated properties

Issue-ID: POLICY-1586
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: Ib3bb5b7bc3a4483ec0f51714fa43070fa1e94d94

4 years agoRemove BUILD_VERSION argument 14/100314/1
jhh [Wed, 15 Jan 2020 13:05:29 +0000 (07:05 -0600)]
Remove BUILD_VERSION argument

Issue-ID: POLICY-1586
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I0ae7e03262a5e7e2af2773c63c681535b73284e5

4 years agoUpdate docker images for java 11 66/100266/8
Jim Hahn [Mon, 13 Jan 2020 21:36:38 +0000 (16:36 -0500)]
Update docker images for java 11

Added debian-slim images based off of jre-slim.
Removed alpine images from the build.

If it's determined that we need a jdk instead of a jre, then
"jre" can be changed to "jdk" in the policy-base Dockerfile.
As an alternative, a new policy-docker-jdk image could be created,
based off of "jdk" and all of the apt packages added to it.  In that
case, it would probably be appropriate to removed maven from the
packages that are loaded into the policy-common image.
Addressed first round of review comments:
- use specific version of java 11
- removed docker-maven-plugin version
- replaced the images with policy-jre-debian and policy-jdk-debian
- added a policy-jdk-alpine image, which includes the jdk & maven, but
  is significantly smaller than the debian-slim version
- added a policy-jre-alpine image
Addressed additional review comments:
- removed BUILD_VERSION
- installed maven packages instead of downloading via curl
- added link to /usr/lib/jvm

Issue-ID: POLICY-1586
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I43fd6a5c5ff9c4a0b537d3f297fdf2ad8248ba75

4 years agoconfiguration to support offline pdpd 53/99453/1
jhh [Tue, 10 Dec 2019 23:34:13 +0000 (17:34 -0600)]
configuration to support offline pdpd

Issue-ID: POLICY-2191
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I8eeb77afe17efefe413bbe6d1b1877c8a884cd6e

4 years agoAdd PdpGroup to drools docker configuration 66/99166/2
Jim Hahn [Wed, 4 Dec 2019 18:32:24 +0000 (13:32 -0500)]
Add PdpGroup to drools docker configuration

When PDPs register with PAP, they now have to specify their PDP
group.  Added the default group to the config file.

Issue-ID: POLICY-2285
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I1e3928ff17d0d30961a8211b6c7a3c05453558a5

4 years agoRename policy-docker to match other repos 06/99006/1
Pamela Dragosh [Mon, 2 Dec 2019 14:17:42 +0000 (09:17 -0500)]
Rename policy-docker to match other repos

The other repos use the "name" field to name the policy repos
consistency: policy-{repo}.

Issue-ID: POLICY-2280
Change-Id: Ida87954d6932ebef124c5b6ef06bd2bccd0415db
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoStop pushing the release tag 09/97909/1
Cristina Pauna [Mon, 4 Nov 2019 13:27:17 +0000 (15:27 +0200)]
Stop pushing the release tag

The release tag should not be pushed during the development cycle
(by the stage or merge jobs). Only the release jobs should push this tag

Issue-ID: POLICY-1997
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
Change-Id: I23b317f37ad9fc3a03c5d9847f5baf7d0bf1852f

4 years agoSymmetric Key configuration 80/97580/1
jhh [Thu, 24 Oct 2019 21:20:39 +0000 (16:20 -0500)]
Symmetric Key configuration

Issue-ID: POLICY-1945
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I10885a2eba9a13a454f4ba9922aaf16054b6b015

4 years agoUpdate CDS grpc server properties to base.conf 84/97284/1
Rashmi Pujar [Thu, 17 Oct 2019 19:53:29 +0000 (15:53 -0400)]
Update CDS grpc server properties to base.conf

Issue-ID: POLICY-2088
Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca>
Change-Id: Id06c467923b3df8c7199b349571676958341c2c5

4 years agoMultiplatform support for policy 53/93953/27
Paul Vaduva [Thu, 27 Jun 2019 16:00:57 +0000 (18:00 +0200)]
Multiplatform support for policy

Add multiplatfrom support for policy-base
and policy-common docker images:
   - the pom.xml files are modified to push and pull from dockerhub instead
     of nexus repository (as nexus lacks support for manifest list)
   - for each image that is built with maven, an arch suffix is added to the
     tag. The currently supported architectures are amd64 and arm64.
   - the creation of the timestamped tag is moved from the pom.xml files to
     the docker_push_manifest.sh script
   - for each image built via the Jenkins CI jobs, the docker_push_manifest.sh
     is called. The script pushes a manifest list for each tag, plus it
     creates the timestamp tags for SNAPSHOT or STAGING images,
     depending on what job called the script (merge job, or stag job)

For using the images, the name of the manifest list is to be used (which
is the same as the current images in nexus)

Issue-ID: POLICY-1997
Change-Id: If54e7ee6ac432a999844d3584e146a90e2247323
Signed-off-by: Paul Vaduva <Paul.Vaduva@enea.com>
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
4 years agoUpgrade to snapshot integration parent artifact 87/93087/1
Bruno Sakoto [Thu, 8 Aug 2019 12:52:34 +0000 (08:52 -0400)]
Upgrade to snapshot integration parent artifact

Issue-ID: POLICY-1603
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ia34d496ca7fad77584926feb254a885566b16f14

4 years agoUpdate to latest common/models released versions 08/92708/2
jhh [Mon, 5 Aug 2019 15:50:16 +0000 (10:50 -0500)]
Update to latest common/models released versions

policy/models: 2.1.1
policy/common: 1.5.1

Change-Id: I703e2fb1c86e84893c8752bee5b8d69ce554baa5
Issue-ID: POLICY-1953
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoUpgrade to release 3.0.0 parent 55/90255/1
Pamela Dragosh [Thu, 20 Jun 2019 20:26:08 +0000 (16:26 -0400)]
Upgrade to release 3.0.0 parent

Policy/parent released

Issue-ID: POLICY-1737
Change-Id: Iba8dbccd95a88e623dd1a05f238b83506db67bfd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoBump docker 1.5.0 59/89059/2 5.0.0-ONAP
Pamela Dragosh [Fri, 31 May 2019 15:51:17 +0000 (11:51 -0400)]
Bump docker 1.5.0

Due to dublin branch.

Also update the configuration for CSIT tests.

Issue-ID: POLICY-1747
Change-Id: Ifb8f89f12b534543a5bded0a6f673c44f857b761
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoRemove unsupported vagrant and update README 86/88986/3
jhh [Fri, 31 May 2019 00:59:07 +0000 (19:59 -0500)]
Remove unsupported vagrant and update README

Change-Id: I1f2c9723a3dae88da524ff4ec5b2b5c0aad813c5
Issue-ID: POLICY-1816
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoUpdate to released 83/88383/2
Pamela Dragosh [Thu, 23 May 2019 15:47:24 +0000 (11:47 -0400)]
Update to released

Released drools-applications and models.

Issue-ID: POLICY-1700
Change-Id: I24b044cfd72a77514e8f07cdd8f61ebee165fc00
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoUpdate INFO.yaml 71/88371/2
Pamela Dragosh [Thu, 23 May 2019 15:24:28 +0000 (11:24 -0400)]
Update INFO.yaml

Add ram and Jim

Issue-ID: POLICY-1775
Change-Id: Ia1ef6afb2ad7b901cf0bff849167120af1fa4105
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoUpgrade to release drools-apps 22/87822/1
Pamela Dragosh [Wed, 15 May 2019 23:44:32 +0000 (19:44 -0400)]
Upgrade to release drools-apps

Point to latest drools-applications release

Issue-ID: POLICY-1630
Change-Id: I8732445928530ea6eb70b2465025f713d47f2f6d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoUpdate to release policy/models 62/87762/1
Pamela Dragosh [Wed, 15 May 2019 11:54:41 +0000 (07:54 -0400)]
Update to release policy/models

Point to release version as the SNAPSHOT will disappear in
about 2-3 weeks.

Issue-ID: POLICY-1630
Change-Id: If1ffa5703b5647588806538609d72bf927c1d7db
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoUpgrade parent and bump snapshot 24/86724/1
Pamela Dragosh [Wed, 1 May 2019 15:26:58 +0000 (11:26 -0400)]
Upgrade parent and bump snapshot

The version for this wasn't quite correct either. Fixed to
ensure follows the 1.4.x as defined in version.properties.

Updated to point to policy/parent release version and remove
warning for relative path.

Issue-ID: POLICY-1700
Change-Id: I6772a272f3f291af5fd6ee9efc3f10b0ac3edfd1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoNo fetching applications load 84/86584/2
jhh [Tue, 30 Apr 2019 03:04:12 +0000 (22:04 -0500)]
No fetching applications load

drools-pdp in docker when it sees this configuration files,
it will try to execute them.   Since the alpine common
image has an immutable BUILD_VERSION that does not refer
to the actual drools build, it will not find it.

Two solutions: (a) update the scripts to look for the newly
added BUILD_VERSION_DROOLS to counter the presence of that
variable, or (b) remove them altogether since the control loop
application being the only one that is used will have the control
loop applications image cooked.

Change-Id: Ie8adb4b50565601b09e1100578458e3071ee6e54
Issue-ID: POLICY-1712
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
5 years agoNo dependency.json manipulation in brmsgw 72/86572/1
jhh [Mon, 29 Apr 2019 23:45:55 +0000 (18:45 -0500)]
No dependency.json manipulation in brmsgw

There are multiple VERSIONS that make it to
the dependency.json since some libraries are
coming from models and others from drools-applications.

Change-Id: Ide1764962531e09ed5fc733cd18d22550d53c7da
Issue-ID: POLICY-1712
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>