summaryrefslogtreecommitdiffstats
path: root/installation
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2024-09-25 16:19:57 -0400
committerDan Timoney <dtimoney@att.com>2024-09-25 16:19:57 -0400
commitf1dcd52a68801642e4199f4eba88d172be2c0c99 (patch)
tree3e53a8038b5f593aac80b843a590b1210c4584a6 /installation
parent885b4e6f6caba1d6db67cb378ecfabd56b6da5be (diff)
Use released Oslo/Potassium parent poms2.8.0
Use released version of parent poms for ONAP Oslo release Issue-ID: SDNC-1846 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I1b3d239582c0df80878e0f68d1971363e87497ca
Diffstat (limited to 'installation')
-rw-r--r--installation/sdnc/pom.xml20
-rwxr-xr-xinstallation/sdnc/src/main/docker/Dockerfile6
-rw-r--r--installation/sdnc/src/main/resources/README-custom-certs.md3
3 files changed, 29 insertions, 0 deletions
diff --git a/installation/sdnc/pom.xml b/installation/sdnc/pom.xml
index f7ef8206..906c21bd 100644
--- a/installation/sdnc/pom.xml
+++ b/installation/sdnc/pom.xml
@@ -364,6 +364,26 @@
</resources>
</configuration>
</execution>
+ <execution>
+ <id>copy-certificates</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>validate</phase>
+ <configuration>
+ <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>*.pem</include>
+ <include>*.md</include>
+ </includes>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>
diff --git a/installation/sdnc/src/main/docker/Dockerfile b/installation/sdnc/src/main/docker/Dockerfile
index e281d16b..4946dfe1 100755
--- a/installation/sdnc/src/main/docker/Dockerfile
+++ b/installation/sdnc/src/main/docker/Dockerfile
@@ -16,6 +16,12 @@ ENV SDNC_SECUREPORT ${sdnc.secureport}
ARG AAF=false
+# Copy any certs
+COPY *.md *.pem /etc/ssl/certs/
+
+# Install certs
+RUN update-ca-certificates
+
# Copy deliverables to opt
COPY opt /opt
RUN test -L /opt/sdnc || ln -s /opt/onap/sdnc /opt/sdnc
diff --git a/installation/sdnc/src/main/resources/README-custom-certs.md b/installation/sdnc/src/main/resources/README-custom-certs.md
new file mode 100644
index 00000000..ac414c11
--- /dev/null
+++ b/installation/sdnc/src/main/resources/README-custom-certs.md
@@ -0,0 +1,3 @@
+Any .pem files in this directory will be copied to /etc/ssl/certs on the
+docker container and installed prior to running apk. This might be needed,
+for example, for docker builds to work properly behind a corporate firewall.