forked from joholl/tpm2-tss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (32 loc) · 788 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM tpm2software/tpm2-tss AS base
COPY . /tmp/tpm2-tss/
WORKDIR /tmp/tpm2-tss
ENV LD_LIBRARY_PATH /usr/local/lib
# Install libjson-c
RUN apt-get update && apt-get install -y --no-install-recommends \
libjson-c-dev \
&& rm -rf /var/lib/apt/lists/*
# Fuzzing
FROM base AS fuzzing
ENV GEN_FUZZ 1
RUN ./bootstrap \
&& ./configure \
CC=clang \
CXX=clang++ \
--enable-debug \
--with-fuzzing=libfuzzer \
--enable-tcti-fuzzing \
--enable-tcti-device=no \
--enable-tcti-mssim=no \
--with-maxloglevel=none \
--disable-shared \
&& make -j $(nproc) check
RUN cat test-suite.log
# TPM2-TSS
FROM base
RUN ./bootstrap \
&& ./configure --enable-unit \
&& make -j$(nproc) check \
&& make install \
&& ldconfig
RUN cat test-suite.log