blob: cbd171233c20d579fb9b6d62dc163a54016b1789 [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 \
Hendrik Hofstadt3e6018f2019-10-28 21:29:42 +010026 qemu-system-x86-core \
27 postgresql
Hendrik Hofstadt0d7c91e2019-10-23 21:44:47 +020028
29# Workaround for a binutils bugs in F30, which generates invalid ELF binaries
30# when linking statically with musl.
31RUN dnf -y install fedora-repos-rawhide && \
32 dnf -y --disablerepo=* --enablerepo=rawhide --releasever=32 upgrade binutils
33
34# Install Bazel binary
35RUN curl -o /usr/local/bin/bazel \
36 https://releases.bazel.build/1.1.0/release/bazel-1.1.0-linux-x86_64 && \
37 echo 'f54ab5f31b8d7c6a0ce9dee387af45b1d6577ff9625ef6c535896b59cdf8828a /usr/local/bin/bazel' | sha256sum --check && \
38 chmod +x /usr/local/bin/bazel
39
40# Use a shared Go module cache for gazelle
41# https://github.com/bazelbuild/bazel-gazelle/pull/535
42ENV GO_REPOSITORY_USE_HOST_CACHE=1
43
44# --userns=keep-id uses the workdir as $HOME otherwise
45RUN mkdir /user
46ENV HOME=/user
47
48WORKDIR /work