aboutsummaryrefslogtreecommitdiffstats
path: root/bin/abrmdcontainer/dockerfile
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-08-23 18:02:57 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-23 18:02:57 +0000
commit7c6ce03e30552e4acc7a065cc05547b08fba82d3 (patch)
tree38e2d2532faae2546c867db62f13d74219dbef7b /bin/abrmdcontainer/dockerfile
parent572150672972e58d3e2b2f21e5dfd3004bce6b68 (diff)
parent51449dab404b457264e1a36206773b9764241167 (diff)
Merge "Containerize TPM Initialization tool"
Diffstat (limited to 'bin/abrmdcontainer/dockerfile')
-rwxr-xr-x[-rw-r--r--]bin/abrmdcontainer/dockerfile14
1 files changed, 12 insertions, 2 deletions
diff --git a/bin/abrmdcontainer/dockerfile b/bin/abrmdcontainer/dockerfile
index d1c9480..fc788b5 100644..100755
--- a/bin/abrmdcontainer/dockerfile
+++ b/bin/abrmdcontainer/dockerfile
@@ -31,6 +31,9 @@ RUN git clone https://github.com/tpm2-software/tpm2-tss.git
RUN git clone https://github.com/tpm2-software/tpm2-abrmd.git
RUN git clone https://github.com/tpm2-software/tpm2-tools.git
+# Directory for the scripts
+RUN mkdir -p /abrmd/bin
+
RUN cd tpm2-tss && \
git checkout 1.2.0 && \
./bootstrap && \
@@ -58,5 +61,12 @@ RUN cd tpm2-tools && \
RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/tpm2.conf && \
ldconfig
-ADD entrypoint.sh /entrypoint.sh
-ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file
+RUN rm -rf tpm2-tss
+RUN rm -rf tpm2-abrmd
+RUN rm -rf tpm2-tools
+
+COPY ./initialize_tpm.sh /abrmd/bin/
+COPY ./run_abrmd.sh /abrmd/bin/
+COPY ./init.sh /abrmd/bin/
+
+RUN chmod -R +x /abrmd/bin