blob: 37d59cd6b22a410b2b24092a5cddedcf8df0b063 [file] [log] [blame]
Hendrik Hofstadt0d7c91e2019-10-23 21:44:47 +02001FROM fedora:30
2
3RUN dnf -y upgrade && \
4 dnf -y install \
5 "@Development Tools" \
6 g++ \
7 libuuid-devel \
8 python3 \
9 nasm \
10 acpica-tools \
11 gettext-devel \
12 autoconf \
13 bison \
14 libtool \
15 automake \
16 flex \
17 glibc-static \
18 elfutils-libelf-devel \
19 libblkid-devel \
20 lz4 \
21 bc \
22 hostname \
23 which \
24 swtpm-tools \
25 rsync \
26 qemu-system-x86-core
27
28# Workaround for a binutils bugs in F30, which generates invalid ELF binaries
29# when linking statically with musl.
30RUN dnf -y install fedora-repos-rawhide && \
31 dnf -y --disablerepo=* --enablerepo=rawhide --releasever=32 upgrade binutils
32
33# Install Bazel binary
34RUN curl -o /usr/local/bin/bazel \
35 https://releases.bazel.build/1.1.0/release/bazel-1.1.0-linux-x86_64 && \
36 echo 'f54ab5f31b8d7c6a0ce9dee387af45b1d6577ff9625ef6c535896b59cdf8828a /usr/local/bin/bazel' | sha256sum --check && \
37 chmod +x /usr/local/bin/bazel
38
39# Use a shared Go module cache for gazelle
40# https://github.com/bazelbuild/bazel-gazelle/pull/535
41ENV GO_REPOSITORY_USE_HOST_CACHE=1
42
43# --userns=keep-id uses the workdir as $HOME otherwise
44RUN mkdir /user
45ENV HOME=/user
46
47WORKDIR /work