Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 1 | FROM manibase |
| 2 | |
| 3 | RUN \ |
| 4 | useradd -p locked -m mani && \ |
Nico Huber | 9b243b7 | 2023-03-02 23:13:38 +0000 | [diff] [blame] | 5 | dnf install -q -y ca-certificates git gcc ccache make systemd-devel meson \ |
Nico Huber | c5077dd | 2023-03-02 23:12:51 +0000 | [diff] [blame] | 6 | pciutils-devel libusbx-devel libftdi-devel libjaylink-devel && \ |
Steve Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 7 | { dnf install -q -y libgpiod-devel || true; } && \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 8 | dnf clean -q -y all |
| 9 | |
Nico Huber | fb433ba | 2023-03-04 19:09:47 +0000 | [diff] [blame] | 10 | RUN mkdir -p -m 1777 /ccache |
| 11 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 12 | ENV GIT_SSL_NO_VERIFY=1 |
| 13 | USER mani |
| 14 | |
| 15 | ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git |
| 16 | RUN \ |
| 17 | cd && \ |
| 18 | mkdir .ccache && chown mani:mani .ccache && \ |
| 19 | git clone ${ORIGIN} flashrom |
| 20 | |
Nico Huber | fb433ba | 2023-03-04 19:09:47 +0000 | [diff] [blame] | 21 | ARG IDENT=mani |
| 22 | ARG CCACHE_MAX=32M |
| 23 | RUN \ |
| 24 | ccache --set-config cache_dir=/ccache/${IDENT} && \ |
| 25 | ccache --set-config max_size=${CCACHE_MAX} |
| 26 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 27 | ENV DEVSHELL /bin/bash |
| 28 | COPY mani-wrapper.sh /home/mani/ |
| 29 | ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"] |