Do not install certs in docker image 38/109938/2
authorDan Timoney <dtimoney@att.com>
Thu, 2 Jul 2020 15:38:10 +0000 (11:38 -0400)
committerDan Timoney <dtimoney@att.com>
Wed, 23 Sep 2020 13:50:46 +0000 (13:50 +0000)
Updated docker config to no longer install certificates in docker image.
Instead, in kubernetes env, they will be installed as secrets in oom.
In docker-compose env, certs will be an external mount.

Issue-ID: CCSDK-2519
Signed-off-by: Dan Timoney <dtimoney@att.com>
Change-Id: Id67e16e72d2cb7d0c9a1d88fdcff544d86ca2708
(cherry picked from commit 3b346af513694c07a3cb57734c8b881677c595f6)

ms/py-executor/dc/docker-compose.yaml
ms/py-executor/docker/distribution.xml

index 63c5eeb..844f8b0 100755 (executable)
@@ -9,6 +9,7 @@ services:
     restart: always
     volumes:
       - blueprints-deploy:/opt/app/onap/blueprints/deploy
+      - ../certs:/opt/app/onap/python/certs
     environment:
       APPLICATIONNAME: PythonExecutor
       BUNDLEVERSION: 1.0.0
index 558ce2f..a2739bd 100755 (executable)
             <useDefaultExcludes>true</useDefaultExcludes>
             <fileMode>0666</fileMode>
         </fileSet>
-        <fileSet>
-            <directory>${project.basedir}/certs</directory>
-            <outputDirectory>opt/app/onap/python/certs</outputDirectory>
-            <useDefaultExcludes>true</useDefaultExcludes>
-            <fileMode>0666</fileMode>
-        </fileSet>
         <fileSet>
             <directory>${project.basedir}/docker</directory>
             <outputDirectory>opt/app/onap/python</outputDirectory>