File: Dockerfile.djgpp

package info (click to toggle)
flashprog 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,104 kB
  • sloc: ansic: 61,779; makefile: 919; sh: 310
file content (40 lines) | stat: -rw-r--r-- 1,207 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
FROM anibali/djgpp:6.1.0

USER root
RUN \
	userdel appuser && \
	useradd -p locked -m mani && \
	zypper -q install -y tar make git ccache

RUN mkdir -p -m 1777 /ccache

ENV GIT_SSL_NO_VERIFY=1
USER mani

ARG ORIGIN=https://review.sourcearcade.org/flashprog.git
RUN cd && \
	mkdir .ccache && chown mani:users .ccache && \
	git clone ${ORIGIN} flashprog && \
	git clone https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git && \
	cd pciutils && \
		git checkout v3.5.6 && \
		curl --insecure https://flashprog.org/images/6/6a/Pciutils-3.5.6.patch.gz | zcat | git apply && \
		make ZLIB=no DNS=no HOST=i386-djgpp-djgpp \
			CROSS_COMPILE=i586-pc-msdosdjgpp- \
			PREFIX=/ DESTDIR=$PWD/../ \
			STRIP="--strip-program=i586-pc-msdosdjgpp-strip -s" \
			install install-lib && \
		cd ../ && \
	curl --insecure https://flashprog.org/images/3/3d/Libgetopt.tar.gz | zcat | tar x && \
	cd libgetopt && \
		make && cp libgetopt.a ../lib/ && cp getopt.h ../include/

ARG IDENT=mani
ARG CCACHE_MAX=32M
RUN \
	ccache --set-config cache_dir=/ccache/${IDENT} && \
	ccache --set-config max_size=${CCACHE_MAX}

ENV DEVSHELL /bin/bash
COPY mani-wrapper.sh /home/mani/
ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]