Remove creation of POLICY_HOME/etc/ssl 58/101758/2
authorjhh <jorge.hernandez-herrero@att.com>
Fri, 14 Feb 2020 17:42:25 +0000 (11:42 -0600)
committerjhh <jorge.hernandez-herrero@att.com>
Mon, 17 Feb 2020 00:17:39 +0000 (18:17 -0600)
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>
.gitignore
policy-jdk/debian-slim/src/main/docker/Dockerfile

index 62b4a89..abced7c 100644 (file)
@@ -3,6 +3,6 @@
 .settings
 target
 install.log*
-policy-drools/install.log*
 *.sw?
-*.iml
+**/*.iml
+.idea/
index 66f99c6..55e3827 100644 (file)
@@ -32,11 +32,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 \
@@ -45,5 +42,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}