| Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 1 | FROM docker.io/fedora:37@sha256:3487c98481d1bba7e769cf7bcecd6343c2d383fdd6bed34ec541b6b23ef07664 | 
| Hendrik Hofstadt | 0d7c91e | 2019-10-23 21:44:47 +0200 | [diff] [blame] | 2 |  | 
 | 3 | RUN dnf -y upgrade && \ | 
| Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 4 | 	dnf -y install --setopt=tsflags=nodocs \ | 
| Leopold Schabel | 9a6cc56 | 2022-05-25 13:13:40 +0200 | [diff] [blame] | 5 | 	java-11-openjdk-headless \ | 
| Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 6 | 	dotnet-runtime-6.0 \ | 
| Leopold | ea0a2c8 | 2022-06-30 19:49:18 +0200 | [diff] [blame] | 7 | 	jq \ | 
| Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 8 | 	tini \ | 
 | 9 |     golang && \ | 
 | 10 |     dnf clean all | 
| Leopold Schabel | d32d1ea | 2021-11-02 00:06:07 +0100 | [diff] [blame] | 11 |  | 
| Leopold Schabel | 9a6cc56 | 2022-05-25 13:13:40 +0200 | [diff] [blame] | 12 | # (java-11-openjdk-headless and tini are required for the Jenkins CI agent) | 
| Leopold | ea0a2c8 | 2022-06-30 19:49:18 +0200 | [diff] [blame] | 13 | # (dotnet-runtime-5.0 and jq are required for the GitHub Actions runner) | 
| Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 14 | # (golang is required for us to build bazelisk - see below) | 
| Serge Bazanski | 5aa494f | 2021-05-18 18:57:10 +0200 | [diff] [blame] | 15 |  | 
| Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 16 | # Create CI build user. It is used by CI infrastructure to run build agents as. | 
| Serge Bazanski | 5aa494f | 2021-05-18 18:57:10 +0200 | [diff] [blame] | 17 | # The newly created user will have a UID of 500, and a corresponding CI group | 
 | 18 | # of GID 500 will be created as well. This UID:GID pair's numeric values are | 
 | 19 | # relied on by the CI infrastructure and must not change without coordination. | 
 | 20 | RUN set -e -x ;\ | 
 | 21 | 	useradd -u 500 -U -m -d /home/ci ci | 
| Hendrik Hofstadt | 0d7c91e | 2019-10-23 21:44:47 +0200 | [diff] [blame] | 22 |  | 
| Hendrik Hofstadt | 0d7c91e | 2019-10-23 21:44:47 +0200 | [diff] [blame] | 23 | # Use a shared Go module cache for gazelle | 
 | 24 | # https://github.com/bazelbuild/bazel-gazelle/pull/535 | 
 | 25 | ENV GO_REPOSITORY_USE_HOST_CACHE=1 | 
 | 26 |  | 
| Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 27 | USER ci | 
| Serge Bazanski | e7bb94c | 2021-07-02 17:11:58 +0200 | [diff] [blame] | 28 |  | 
| Leopold | 2aa8b18 | 2023-01-14 23:31:43 +0100 | [diff] [blame] | 29 | # Install Bazelisk. We do not have to pin a checksum since Go automatically | 
 | 30 | # relies on its built-in transparency log for pinning. | 
 | 31 | RUN go install github.com/bazelbuild/bazelisk@v1.15.0 | 
 | 32 | ENV PATH="/home/ci/go/bin:${PATH}" | 
| Hendrik Hofstadt | 0d7c91e | 2019-10-23 21:44:47 +0200 | [diff] [blame] | 33 |  | 
 | 34 | WORKDIR /work |