Fix docker build in policy/distribution 46/78046/1
authorramverma <ram.krishna.verma@est.tech>
Thu, 7 Feb 2019 12:02:07 +0000 (12:02 +0000)
committerramverma <ram.krishna.verma@est.tech>
Thu, 7 Feb 2019 12:02:07 +0000 (12:02 +0000)
policyLoger.properties file was removed as part of moving to slf4j
for logging. But the assembly.xml file was still refering to it. Since
the file was not there the /bin directory was missing from the
created package. Resulting in docker builds failing.

Change-Id: Ia800c949d180d592aa0adb6cf61773b37329be48
Issue-ID: POLICY-1346
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
packages/policy-distribution-docker/src/main/docker/Dockerfile
packages/policy-distribution-tarball/src/main/package/tarball/assembly.xml

index 3406185..1a55e6c 100644 (file)
@@ -28,7 +28,7 @@ RUN \
 RUN groupadd policy 
 RUN useradd --create-home --shell /bin/bash -g policy policy
 
-RUN mkdir -p ${POLICY_DISTRIBUTION_HOME} ${POLICY_LOGS} ${POLICY_HOME}/etc/ssl && \
+RUN mkdir -p ${POLICY_DISTRIBUTION_HOME} ${POLICY_LOGS} ${POLICY_HOME}/etc/ssl ${POLICY_DISTRIBUTION_HOME}/bin && \
     chown  -R policy:policy ${POLICY_HOME} ${POLICY_DISTRIBUTION_HOME} ${POLICY_LOGS}
 
 RUN mkdir /packages
index 351fe7e..af3d577 100644 (file)
         </dependencySet>
     </dependencySets>
     <fileSets>
-        <fileSet>
-            <directory>${project.basedir}/src/main/resources</directory>
-            <includes>
-                <include>policyLogger.properties</include>
-            </includes>
-            <outputDirectory>/bin/config</outputDirectory>
-            <lineEnding>unix</lineEnding>
-        </fileSet>
         <fileSet>
             <directory>${project.basedir}/src/main/resources/etc
             </directory>