2 # Base Image for the build
3 FROM rmannfv/aaf-base:xenial
5 # Files required for the Java application
6 RUN wget https://www.bouncycastle.org/download/bcprov-jdk15on-159.jar
7 RUN wget https://www.bouncycastle.org/download/bcpkix-jdk15on-159.jar
8 RUN wget https://www.bouncycastle.org/download/bcmail-jdk15on-159.jar
9 RUN wget https://www.bouncycastle.org/download/bcpg-jdk15on-159.jar
10 RUN wget https://www.bouncycastle.org/download/bctls-jdk15on-159.jar
11 RUN cp ./bcpkix-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/
12 RUN cp ./bcprov-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/
13 RUN cp ./bcmail-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/
14 RUN cp ./bcpg-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/
15 RUN cp ./bctls-jdk15on-159.jar /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext
17 # Clone the sshsm repo
18 RUN git clone https://gerrit.onap.org/r/aaf/sshsm
24 ./configure --disable-gost && \
28 # Create the directory for mounting the shared voulme
29 RUN mkdir -p /tmp/files
33 chmod 755 TPM2-Plugin/ && \
35 chmod 755 bootstrap && \
42 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
47 make -f sampleMakefile