.gitbay/Containerfile.ci
23 lines · 1254 bytes
1# The image orgo's CI jobs run in. gitbay's runner never pulls, so the
2# operator builds it on the runner host and .gitbay/ci.yml names it by tag.
3# The file is staged in the runner user's home first: a login shell under su
4# cannot read root's stdin, and root's session does not share /tmp with it.
5#
6# scp -P 2222 .gitbay/Containerfile.ci root@gitbay.org:/var/lib/gitbay-runner/orgo-ci.Containerfile
7# ssh -p 2222 root@gitbay.org 'chown ci-runner /var/lib/gitbay-runner/orgo-ci.Containerfile \
8# && su - ci-runner -s /bin/sh -c "podman build -t localhost/orgo-ci:1 -f orgo-ci.Containerfile ." \
9# && rm /var/lib/gitbay-runner/orgo-ci.Containerfile'
10#
11# Tagged, not :latest, so a change here is a deliberate bump in ci.yml.
12FROM docker.io/library/rust:1-trixie
13
14# The rust image installs the minimal profile: clippy for the test job, the
15# musl target and its linker for release.sh's second tarball, openssh-client
16# for the pushes. git and ca-certificates are already present.
17RUN rustup component add clippy \
18 && rustup target add x86_64-unknown-linux-musl \
19 && apt-get update \
20 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
21 musl-tools \
22 openssh-client \
23 && rm -rf /var/lib/apt/lists/*