Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 1 | FROM manibase |
| 2 | |
Nico Huber | 9b2f052 | 2023-02-26 15:17:03 +0000 | [diff] [blame] | 3 | COPY isrgrootx1.pem /etc/ssl/cert.pem |
| 4 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 5 | RUN \ |
| 6 | adduser -D mani mani && \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 7 | apk update && \ |
Nico Huber | 9b2f052 | 2023-02-26 15:17:03 +0000 | [diff] [blame] | 8 | apk add build-base linux-headers git ccache \ |
Nico Huber | 582267f | 2023-02-26 15:22:37 +0000 | [diff] [blame^] | 9 | pciutils-dev libusb-dev libftdi1-dev && \ |
Nico Huber | 9b2f052 | 2023-02-26 15:17:03 +0000 | [diff] [blame] | 10 | if [ ! -h /etc/ssl/cert.pem ]; then \ |
| 11 | rm -f /etc/ssl/certs/*; \ |
| 12 | ln -sf /etc/ssl/cert.pem /etc/ssl/certs/ca-certificates.crt; \ |
| 13 | fi |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 14 | |
Steve Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 15 | RUN apk add libgpiod-dev || true |
| 16 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 17 | # fix weird permissions in armhf-v3.11 |
| 18 | RUN [ -d /usr/share/git-core/templates ] && \ |
| 19 | chmod -R a+r /usr/share/git-core/templates |
| 20 | |
| 21 | ENV GIT_SSL_NO_VERIFY=1 |
| 22 | USER mani |
| 23 | |
| 24 | ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git |
| 25 | RUN \ |
| 26 | cd && \ |
| 27 | mkdir .ccache && chown mani:mani .ccache && \ |
| 28 | git clone ${ORIGIN} flashrom |
| 29 | |
| 30 | ENV DEVSHELL /bin/sh |
| 31 | COPY mani-wrapper.sh /home/mani/ |
| 32 | ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"] |