diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-08-17 23:02:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-17 23:02:48 +0000 |
commit | 4455ce1788d419483b6561de5c83508b146aaa51 (patch) | |
tree | af927d02c73bae93fd3b928375cbb7b1453e4de2 /bin/base/openssldockerfile | |
parent | 56cf7f2d9f54bdc9c3e52bfd153073aa0da638c1 (diff) | |
parent | 7cdc066cfc45670ae2c0bcd088d54a9e45d60095 (diff) |
Merge "Base images build and dockerfiles"
Diffstat (limited to 'bin/base/openssldockerfile')
-rw-r--r-- | bin/base/openssldockerfile | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/bin/base/openssldockerfile b/bin/base/openssldockerfile new file mode 100644 index 0000000..2607473 --- /dev/null +++ b/bin/base/openssldockerfile @@ -0,0 +1,69 @@ +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 \ + vim \ + gcc \ + g++ \ + m4 \ + curl \ + wget \ + liburiparser-dev \ + libssl-dev \ + pandoc \ + opensc \ + default-jdk + +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-tools.git + +RUN cd tpm2-tss && \ + git checkout 1.2.0 && \ + ./bootstrap && \ + ./configure && \ + make && \ + make install +RUN rm -rf tpm2-tss + +RUN cd tpm2-tools && \ + git checkout 2.1.0 && \ + ./bootstrap && \ + ./configure && \ + make && \ + make install +RUN rm -rf tpm2-tools + +RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/tpm2.conf && \ + ldconfig + +RUN wget https://www.openssl.org/source/openssl-1.1.0.tar.gz +RUN gzip -d openssl-1.1.0.tar.gz +RUN tar -xvf openssl-1.1.0.tar +RUN cd openssl-1.1.0 && \ + ./config && \ + make && \ + make install +RUN rm -rf openssl-1.1.0 +RUN rm -rf openssl-1.1.0.tar +RUN rm -rf openssl-1.1.0.tar.gz + +RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/openssl.conf && \ + ldconfig +RUN openssl version -v |