summaryrefslogtreecommitdiffstats
path: root/bin/caservicecontainer/dockerfile
blob: 89f7fef79b106190a4e71242743c9e190935f530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Base Image for the build
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
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 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

# Create the directory for running things in this container
RUN mkdir -p /testca/bin
RUN mkdir -p /testca/tests/multithread

COPY import.sh /testca/bin
COPY softhsmconfig.sh /testca/bin
COPY application.sh /testca/bin
COPY CaSign.java /testca/bin
COPY test.csr /testca/bin

# Files for Stress testing operations
COPY multithreadapplication.sh /testca/tests/multithread
COPY softhsmconfig.sh /testca/tests/multithread
COPY CaSignMultiThread.java /testca/tests/multithread
COPY multithreadapplication.sh /testca/tests/multithread
COPY multithreadimport.sh /testca/tests/multithread
COPY gencsr.sh /testca/tests/multithread