Key distribution center container
[aaf/sshsm.git] / bin / distcenter / Dockerfile
1 FROM rmannfv/aaf-base:openssl_1.1.0
2
3 RUN git clone https://gerrit.onap.org/r/aaf/sshsm
4 RUN cd sshsm && \
5   cd tpm-util && \
6   cd duplicate && \
7   make -f sampleMakefile
8
9 RUN mkdir /createca
10 COPY ./create_ca.sh /createca/
11 RUN mkdir /dup
12 RUN mkdir /dup/database
13 RUN mkdir /dup/database/host_sample
14 RUN mkdir /dup/bin
15
16 RUN cp sshsm/tpm-util/duplicate/ossl_tpm_duplicate /dup/bin
17 RUN cp sshsm/test/integration/samplecaservicecontainer/inittoolfiles/out_parent_public /dup/database/host_sample
18
19 ADD entrypoint.sh /entrypoint.sh
20 ENTRYPOINT [ "/entrypoint.sh" ]