Remove POLICY_HOME/etc/ssl and python 28/102028/1
authorjhh <jorge.hernandez-herrero@att.com>
Wed, 19 Feb 2020 23:24:50 +0000 (17:24 -0600)
committerjhh <jorge.hernandez-herrero@att.com>
Wed, 19 Feb 2020 23:24:50 +0000 (17:24 -0600)
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

policy-jre/debian-slim/src/main/docker/Dockerfile

index de01a2d..8816139 100644 (file)
@@ -28,11 +28,8 @@ ENV POLICY_HOME=/opt/app/policy
 RUN apt-get -y update \
     && apt-get -y install \
         curl \
-        httpie \
         jq \
         less \
-        python \
-        python-pip \
         ssh \
         unzip \
         vim \
@@ -41,5 +38,5 @@ RUN apt-get -y update \
     && mkdir /usr/lib/jvm \
     && ln -s /usr/local/openjdk-11 /usr/lib/jvm/java-11-openjdk \
     && adduser --shell /bin/bash --disabled-password policy \
-    && mkdir -p ${POLICY_HOME}/etc/ssl \
-    && chown -R policy:policy ${POLICY_HOME}
+    && mkdir -p ${POLICY_HOME}/ \
+    && chown policy:policy ${POLICY_HOME}