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