Re-add alpine docker images 78/100378/4
authorJim Hahn <jrh3@att.com>
Thu, 16 Jan 2020 15:41:56 +0000 (10:41 -0500)
committerJim Hahn <jrh3@att.com>
Thu, 16 Jan 2020 17:13:21 +0000 (12:13 -0500)
Split the RUN into separate items in an attempt to get past the
sporadic I/O Error when building the policy alpine docker images.
Updates per review comments:
- removed nss
- removed openssh (for now)

Issue-ID: POLICY-1586
Change-Id: I9e6181e67333a5fdf01c8a4286f117b673e50076
Signed-off-by: Jim Hahn <jrh3@att.com>
policy-jdk/alpine/src/main/docker/Dockerfile
policy-jdk/pom.xml
policy-jre/alpine/src/main/docker/Dockerfile
policy-jre/pom.xml

index a258a31..330e54f 100644 (file)
@@ -28,6 +28,10 @@ LABEL maintainer="Policy Team"
 
 ENV POLICY_HOME=/opt/app/policy
 
+#
+# When these are done via a single "RUN", I/O errors occur sporadically,
+# thus they have been split into separate RUNs.
+#
 RUN apk update \
     && apk add --no-cache \
         bash \
@@ -38,16 +42,18 @@ RUN apk update \
         grep \
         httpie \
         jq \
-        maven \
-        nss \
-        openjdk11 \
-        openssh \
         procps \
         py-pip \
         python \
         unzip \
         wget \
-        zip \
+        zip
+
+RUN apk add --no-cache \
+        maven
+
+RUN apk add --no-cache \
+        openjdk11 \
     && addgroup -S policy \
     && adduser -S  --shell /bin/bash -G policy policy \
     && mkdir -p ${POLICY_HOME}/etc/ssl \
index e02d1d1..130784b 100644 (file)
@@ -29,7 +29,7 @@
 
     <artifactId>policy-jdk</artifactId>
     <packaging>pom</packaging>
-    <name>Policy Common Docker images</name>
+    <name>Policy JDK Docker images</name>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <profile>
             <id>docker</id>
             <modules>
-                <!-- pretty frequently, alpine fails to build, so removing
-                     it for now
                 <module>alpine</module>
-                -->
                 <module>debian-slim</module>
             </modules>
         </profile>
index 7270414..169e280 100644 (file)
@@ -28,6 +28,10 @@ LABEL maintainer="Policy Team"
 
 ENV POLICY_HOME=/opt/app/policy
 
+#
+# When these are done via a single "RUN", I/O errors occur sporadically,
+# thus they have been split into separate RUNs.
+#
 RUN apk update \
     && apk add --no-cache \
         bash \
@@ -38,15 +42,15 @@ RUN apk update \
         grep \
         httpie \
         jq \
-        nss \
-        openjdk11-jre \
-        openssh \
         procps \
         py-pip \
         python \
         unzip \
         wget \
-        zip \
+        zip
+
+RUN apk add --no-cache \
+        openjdk11-jre \
     && addgroup -S policy \
     && adduser -S  --shell /bin/bash -G policy policy \
     && mkdir -p ${POLICY_HOME}/etc/ssl \
index cc0d588..3a0ae4e 100644 (file)
@@ -29,7 +29,7 @@
 
     <artifactId>policy-jre</artifactId>
     <packaging>pom</packaging>
-    <name>Policy Base Docker images</name>
+    <name>Policy JRE Docker images</name>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <profile>
             <id>docker</id>
             <modules>
-                <!-- pretty frequently, alpine fails to build, so removing
-                     it for now
                 <module>alpine</module>
-                -->
                 <module>debian-slim</module>
             </modules>
         </profile>