3 RUN apt-get -y update && \
28 RUN apt-get -y install libgcrypt20-dev
30 RUN git clone https://github.com/tpm2-software/tpm2-tss.git
31 RUN git clone https://github.com/tpm2-software/tpm2-abrmd.git
32 RUN git clone https://github.com/tpm2-software/tpm2-tools.git
35 git checkout 1.2.0 && \
41 RUN cd tpm2-abrmd && \
42 git checkout 1.1.1 && \
43 useradd --system --user-group tss && \
45 ./configure --with-dbuspolicydir=/etc/dbus-1/system.d \
46 --with-udevrulesdir=/etc/udev/rules.d/ \
47 --with-systemdsystemunitdir=/lib/systemd/system && \
51 RUN cd tpm2-tools && \
52 git checkout 2.1.0 && \
54 ./configure --with-tcti-tabrmd=yes && \
58 RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/tpm2.conf && \
61 ADD entrypoint.sh /entrypoint.sh
62 ENTRYPOINT ["/entrypoint.sh"]