-
Notifications
You must be signed in to change notification settings - Fork 19
/
fedora-32.ppc64le.docker.m4
89 lines (81 loc) · 1.99 KB
/
fedora-32.ppc64le.docker.m4
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
FROM ppc64le/fedora:32
LABEL org.opencontainers.image.source https://github.com/tpm2-software/tpm2-software-container
# can return 100 if packages need update
RUN dnf check-update; \
rc=$?; \
if [ $rc -ne 100 ] && [ $rc -ne 0 ]; then \
echo "dnf check-update failed: $rc"; \
exit $rc; \
fi
RUN dnf -y install \
libcmocka \
libcmocka-devel \
net-tools \
git \
pkg-config \
gcc \
m4 \
libtool \
automake \
libgcrypt-devel \
openssl-devel \
gnulib \
glib2-devel \
wget \
doxygen \
dbus-libs \
dbus-devel \
clang \
clang-analyzer \
clang-tools-extra \
pandoc \
lcov \
libcurl-devel \
dbus-x11 \
vim \
python3-pip \
libsq3-devel \
iproute \
procps \
libasan \
libubsan \
perl-Digest-SHA \
libtasn1-devel \
socat \
libseccomp-devel \
expect \
gawk \
json-c-devel \
libyaml-devel \
nss-tools \
expect \
opensc \
java-latest-openjdk-1:13.0.2.8-1.rolling.fc32 \
java-latest-openjdk-devel-1:13.0.2.8-1.rolling.fc32 \
gnutls-utils \
libuuid-devel \
python3-devel \
openssl-pkcs11 \
autoconf-archive \
acl \
json-glib-devel \
libusb-devel \
libftdi-devel
# The last python cryptography version that allows no rust
# per https://github.com/pyca/cryptography/blob/75be92de8e3bce9adcec42ef3967bed0d4500902/CHANGELOG.rst#3500---2021-09-29
ARG PYCRYPTO_VERSION="3.4.8"
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
# bcrypt now needs rust to, avoid it
# https://pypi.org/project/bcrypt/4.0.1/
ARG PYBCRYPT_VERSION="3.2.2"
include(`pip3.m4')
include(`ibmtpm1637.m4')
ENV LIBTPMS_AUTOGEN_EXTRA="--libdir=/usr/lib64"
include(`swtpm.m4')
include(`uthash.m4')
include(`junit.m4')
# make install goes into /usr/local/lib/pkgconfig which is non-standard
# Set this so ./configure can find things and we don't have to worry about prefix changes
# to build instructions
ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
WORKDIR /