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
34 # Directory for the scripts
35 RUN mkdir -p /abrmd/bin
38 git checkout 1.2.0 && \
44 RUN cd tpm2-abrmd && \
45 git checkout 1.1.1 && \
46 useradd --system --user-group tss && \
48 ./configure --with-dbuspolicydir=/etc/dbus-1/system.d \
49 --with-udevrulesdir=/etc/udev/rules.d/ \
50 --with-systemdsystemunitdir=/lib/systemd/system && \
54 RUN cd tpm2-tools && \
55 git checkout 2.1.0 && \
57 ./configure --with-tcti-tabrmd=yes && \
61 RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/tpm2.conf && \
68 COPY ./initialize_tpm.sh /abrmd/bin/
69 COPY ./run_abrmd.sh /abrmd/bin/
70 COPY ./init.sh /abrmd/bin/
72 RUN chmod -R +x /abrmd/bin