blob: 82a1e21cb2c293a235c454187d76c4032126b513 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001FROM manibase
2
3RUN \
4 useradd -p locked -m mani && \
Nico Huber9b243b72023-03-02 23:13:38 +00005 dnf install -q -y ca-certificates git gcc ccache make systemd-devel meson \
Nico Huberc5077dd2023-03-02 23:12:51 +00006 pciutils-devel libusbx-devel libftdi-devel libjaylink-devel && \
Steve Markgraf61899472023-01-09 23:06:52 +01007 { dnf install -q -y libgpiod-devel || true; } && \
Nico Huberc0b52db2022-12-15 12:42:32 +00008 dnf clean -q -y all
9
Nico Huberfb433ba2023-03-04 19:09:47 +000010RUN mkdir -p -m 1777 /ccache
11
Nico Huberc0b52db2022-12-15 12:42:32 +000012ENV GIT_SSL_NO_VERIFY=1
13USER mani
14
15ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
16RUN \
17 cd && \
18 mkdir .ccache && chown mani:mani .ccache && \
19 git clone ${ORIGIN} flashrom
20
Nico Huberfb433ba2023-03-04 19:09:47 +000021ARG IDENT=mani
22ARG CCACHE_MAX=32M
23RUN \
24 ccache --set-config cache_dir=/ccache/${IDENT} && \
25 ccache --set-config max_size=${CCACHE_MAX}
26
Nico Huberc0b52db2022-12-15 12:42:32 +000027ENV DEVSHELL /bin/bash
28COPY mani-wrapper.sh /home/mani/
29ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]