summaryrefslogtreecommitdiffstats
path: root/bin/caservicecontainer/dockerfile
diff options
context:
space:
mode:
authorPramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>2018-08-27 09:05:45 -0700
committerPramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>2018-09-04 08:37:12 -0700
commita0865eeaad17733a2d21cc141fba168663c9f539 (patch)
tree1951c969c43bf5335eeea8d75003168179b52935 /bin/caservicecontainer/dockerfile
parenta5c07a62289e05e3fc7ee0d3baa702c8c3299356 (diff)
Script for SoftHSMv2 fallback mechanism
This will facilitate the SoftHSMv2 implementation when TPM is unavailable Change-Id: Ic77627702db514213cece200a259f723e6d66d34 Issue-ID: AAF-414 Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
Diffstat (limited to 'bin/caservicecontainer/dockerfile')
-rwxr-xr-xbin/caservicecontainer/dockerfile36
1 files changed, 4 insertions, 32 deletions
diff --git a/bin/caservicecontainer/dockerfile b/bin/caservicecontainer/dockerfile
index bad49d1..7a70dc9 100755
--- a/bin/caservicecontainer/dockerfile
+++ b/bin/caservicecontainer/dockerfile
@@ -1,6 +1,5 @@
-
# Base Image for the build
-FROM rmannfv/aaf-base:xenial
+FROM nexus3.onap.org:10001/onap/aaf/aaf-base-xenial:latest
# Files required for the Java application
RUN wget https://www.bouncycastle.org/download/bcprov-jdk15on-159.jar
@@ -14,36 +13,9 @@ RUN cp ./bcmail-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/
RUN cp ./bcpg-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/
RUN cp ./bctls-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext
-# Clone the sshsm repo
-RUN git clone https://gerrit.onap.org/r/aaf/sshsm
-
-# Build SoftHSMv2
-RUN cd sshsm && \
- cd SoftHSMv2 && \
- sh autogen.sh && \
- ./configure --disable-gost && \
- make && \
- make install
-
# Create the directory for mounting the shared voulme
RUN mkdir -p /tmp/files
-# Build TPM-Plugin
-RUN cd sshsm && \
- chmod 755 TPM2-Plugin/ && \
- cd TPM2-Plugin && \
- chmod 755 bootstrap && \
- sleep 2 && \
- ./bootstrap && \
- ./configure && \
- make && \
- make install && \
- ldconfig && \
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
-
-RUN cd sshsm && \
- cd tpm-util && \
- cd import && \
- make -f sampleMakefile
-
-COPY ./test.sh /
+COPY ./import.sh /
+COPY ./softhsmconfig.sh /
+COPY ./application.sh /