diff options
author | Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com> | 2018-07-02 12:06:50 -0700 |
---|---|---|
committer | Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com> | 2018-07-19 08:37:58 -0700 |
commit | 2047f38adb5e6724143d53657e7c590adef23514 (patch) | |
tree | a4774d07db65e9906085ba7816d65e1429019c89 /bin/caservicecontainer/dockerfile | |
parent | 37ae03d707d87c00f49feaface32c38286013029 (diff) |
Adding the CA service container
Adding the dockerfile and required scripts
to implement CA service container functionality
Issue-ID: AAF-342
Change-Id: I8ea086008d0d8e50bfad3886c741ba21642ac974
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
Diffstat (limited to 'bin/caservicecontainer/dockerfile')
-rwxr-xr-x | bin/caservicecontainer/dockerfile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/bin/caservicecontainer/dockerfile b/bin/caservicecontainer/dockerfile new file mode 100755 index 0000000..8557181 --- /dev/null +++ b/bin/caservicecontainer/dockerfile @@ -0,0 +1,54 @@ + +# Base Image for the build +FROM rmannfv/aaf-base:xenial + +RUN apt-get update +RUN apt-get install -y softhsm2 +RUN apt-get install -y opensc + +# Files required for the Java application +RUN wget https://www.bouncycastle.org/download/bcprov-jdk15on-159.jar +RUN wget https://www.bouncycastle.org/download/bcpkix-jdk15on-159.jar +RUN wget https://www.bouncycastle.org/download/bcmail-jdk15on-159.jar +RUN wget https://www.bouncycastle.org/download/bcpg-jdk15on-159.jar +RUN wget https://www.bouncycastle.org/download/bctls-jdk15on-159.jar +RUN wget https://www.bouncycastle.org/download/bctest-jdk15on-159.jar +RUN cp ./bcpkix-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/ +RUN cp ./bcprov-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/ +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 / |