summaryrefslogtreecommitdiff
path: root/Containerfile.ci
blob: eab8e5fa004e2c54be5762db65cace1cdc205955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM docker.io/archlinux:base-devel

LABEL org.opencontainers.image.title="bookie CI image"

ADD locale.gen.ci /etc/locale.gen

RUN pacman-key --init \
  && echo 'NoExtract  = !usr/share/locale/* !usr/share/i18n/*' >> /etc/pacman.conf \
  && pacman -Syu --noconfirm --noprogressbar \
  'glibc' \
  && pacman -Syu --noconfirm --noprogressbar --needed \
  'catch2>=3.6' \
  'cmake>=3.29' \
  'gcc>=14.1.0' \
  'git' \
  'gtkmm-4.0>=4.14' \
  'libadwaita>=1.5' \
  'lcov' \
  'ninja>=1.11' \
  'pkgconf' \
  'weston' \
  && locale-gen \
  && yes | pacman -Sccdd \
  && useradd -m builduser \
  && echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers

ENV XDG_RUNTIME_DIR=/tmp \
  WAYLAND_DISPLAY=wl-test-env

USER builduser