Remove GPLv3 from apex-pdp image 55/123555/2
authorJim Hahn <jrh3@att.com>
Wed, 25 Aug 2021 15:44:58 +0000 (11:44 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 25 Aug 2021 16:08:00 +0000 (12:08 -0400)
The apex-pdp docker image includes libelf, which is GPLv3 and is
therefore disallowed by ONAP.  Appears to be included with "iproute2",
which isn't needed anymore, so just removed it.  Also added code to
update the "apk" repo list.

Issue-ID: POLICY-2845
Change-Id: I7472d584bdd391b7a711c6718f2596b1081c032c
Signed-off-by: Jim Hahn <jrh3@att.com>
packages/apex-pdp-docker/src/main/docker/Dockerfile

index f1b0234..7c7941d 100644 (file)
@@ -1,7 +1,7 @@
 #-------------------------------------------------------------------------------
 # ============LICENSE_START=======================================================
 #  Copyright (C) 2020 Nordix Foundation.
-#  Modification Copyright (C) 2020 AT&T Foundation.
+#  Modification Copyright (C) 2020-2021 AT&T Foundation.
 #  Modifications Copyright (C) 2021 Bell Canada.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -31,9 +31,9 @@ ARG POLICY_LOGS=/var/log/onap/policy/apex-pdp
 ENV POLICY_HOME=/opt/app/policy/apex-pdp
 ENV POLICY_LOGS=$POLICY_LOGS
 
-RUN apk add --no-cache \
+RUN apk update \
+    && apk add --no-cache \
         vim \
-        iproute2 \
         iputils \
     && addgroup -S apexuser && adduser -S apexuser -G apexuser \
     && mkdir -p $POLICY_HOME \