diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-08-29 15:27:44 -0700 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-08-29 15:30:10 -0700 |
commit | 187ab9c852616791a1582641e6ccd8ec85c8daab (patch) | |
tree | eddb456646df64017e2f15a78bad47ba27fce324 /bin/abrmdcontainer/dockerfile | |
parent | a5c07a62289e05e3fc7ee0d3baa702c8c3299356 (diff) |
Use base image for building abrmd
Use base image for building abrmd container
Removes needless compilation steps involved
Issue-ID: AAF-461
Change-Id: Ib9e1606b24223f235f5e60ff94add29e142f6bda
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'bin/abrmdcontainer/dockerfile')
-rwxr-xr-x | bin/abrmdcontainer/dockerfile | 67 |
1 files changed, 1 insertions, 66 deletions
diff --git a/bin/abrmdcontainer/dockerfile b/bin/abrmdcontainer/dockerfile index fc788b5..7826833 100755 --- a/bin/abrmdcontainer/dockerfile +++ b/bin/abrmdcontainer/dockerfile @@ -1,69 +1,4 @@ -FROM ubuntu:xenial - -RUN apt-get -y update && \ - apt-get -y install \ - autoconf \ - autoconf-archive \ - libglib2.0-dev \ - libdbus-1-dev \ - automake \ - libtool \ - autotools-dev \ - libcppunit-dev \ - p11-kit \ - libcurl4-gnutls-dev \ - libcmocka0 \ - libcmocka-dev \ - build-essential \ - git \ - pkg-config \ - gcc \ - g++ \ - m4 \ - wget \ - liburiparser-dev \ - libssl-dev \ - pandoc - -RUN apt-get -y install libgcrypt20-dev - -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 && \ - ./configure && \ - make && \ - make install - -RUN cd tpm2-abrmd && \ - git checkout 1.1.1 && \ - useradd --system --user-group tss && \ - ./bootstrap && \ - ./configure --with-dbuspolicydir=/etc/dbus-1/system.d \ - --with-udevrulesdir=/etc/udev/rules.d/ \ - --with-systemdsystemunitdir=/lib/systemd/system && \ - make && \ - make install - -RUN cd tpm2-tools && \ - git checkout 2.1.0 && \ - ./bootstrap && \ - ./configure --with-tcti-tabrmd=yes && \ - make && \ - make install - -RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/tpm2.conf && \ - ldconfig - -RUN rm -rf tpm2-tss -RUN rm -rf tpm2-abrmd -RUN rm -rf tpm2-tools +FROM nexus3.onap.org:10001/onap/aaf/aaf-base-xenial:latest COPY ./initialize_tpm.sh /abrmd/bin/ COPY ./run_abrmd.sh /abrmd/bin/ |