3 RUN apt-get -y update && \
32 RUN apt-get -y install libgcrypt20-dev
34 RUN git clone https://github.com/tpm2-software/tpm2-tss.git
35 RUN git clone https://github.com/tpm2-software/tpm2-abrmd.git
36 RUN git clone https://github.com/tpm2-software/tpm2-tools.git
39 git checkout 1.2.0 && \
46 RUN cd tpm2-abrmd && \
47 git checkout 1.1.1 && \
48 useradd --system --user-group tss && \
50 ./configure --with-dbuspolicydir=/etc/dbus-1/system.d \
51 --with-udevrulesdir=/etc/udev/rules.d/ \
52 --with-systemdsystemunitdir=/lib/systemd/system && \
57 RUN cd tpm2-tools && \
58 git checkout 2.1.0 && \
65 RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/tpm2.conf && \
68 RUN wget https://www.openssl.org/source/openssl-1.1.0.tar.gz
69 RUN gzip -d openssl-1.1.0.tar.gz
70 RUN tar -xvf openssl-1.1.0.tar
71 RUN cd openssl-1.1.0 && \
75 RUN rm -rf openssl-1.1.0
76 RUN rm -rf openssl-1.1.0.tar
77 RUN rm -rf openssl-1.1.0.tar.gz
79 RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/openssl.conf && \
81 RUN openssl version -v