blob: ccce0105d7daec119055de044759d4e82cfe8bdf [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
Nico Huberc3b02dc2023-08-12 01:13:45 +020015ARG ORIGIN=https://review.sourcearcade.org/flashprog.git
Nico Huberc0b52db2022-12-15 12:42:32 +000016RUN \
17 cd && \
18 mkdir .ccache && chown mani:mani .ccache && \
Nico Huberc3b02dc2023-08-12 01:13:45 +020019 git clone ${ORIGIN} flashprog
Nico Huberc0b52db2022-12-15 12:42:32 +000020
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"]