1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/docker/djgpp/Dockerfile

106 lines
3.1 KiB
Docker
Raw Normal View History

2022-07-10 13:28:04 -04:00
#
# [ djgpp ] elinks docker development environment v0.1c
#
# [*] base system
# get latest fedora
FROM fedora:39
2022-07-10 13:28:04 -04:00
# prepare system
RUN dnf -y update && dnf -y install bash wget \
rsync vim screen git make automake meson unzip cmake patch upx gcc p7zip
2022-07-10 13:28:04 -04:00
RUN cd /root; wget http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-12.2.0/djcross-gcc-12.2.0-1ap.x86_64.rpm ; \
wget http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-12.2.0/djcross-gcc-c++-12.2.0-1ap.x86_64.rpm ; \
wget http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-12.2.0/djcross-gcc-tools-12.2.0-1ap.x86_64.rpm ; \
wget http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/rpms/djcross-binutils-2.34-1ap.x86_64.rpm ; \
wget http://www.mirrorservice.org/sites/ftp.delorie.com/pub/djgpp/rpms/djcrx-2.05-5.x86_64.rpm ; \
2022-07-10 13:28:04 -04:00
rpm -Uhv *.rpm
2023-11-15 12:05:20 -05:00
# create user
RUN useradd -m elinks -s /bin/bash
2022-07-10 13:28:04 -04:00
# djgpp libraries
2023-11-15 12:05:20 -05:00
RUN dnf -y install perl-FindBin pkgconf-pkg-config gettext
ADD unpack_zips.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/unpack_zips.sh
2022-07-10 13:28:04 -04:00
2023-11-15 12:05:20 -05:00
# libidn2
ADD getprogname.diff /home/elinks/getprogname.diff
ADD build_libidn2.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_libidn2.sh
2022-07-10 13:28:04 -04:00
# openssl
##ADD build_openssl.sh /home/elinks/
##RUN runuser -u elinks bash /home/elinks/build_openssl.sh
2022-07-10 13:28:04 -04:00
# brotli
ADD cc.py /usr/local/bin/cc.py
2023-11-15 12:05:20 -05:00
ADD brotli.diff /home/elinks/brotli.diff
ADD build_brotli.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_brotli.sh
2022-07-10 13:28:04 -04:00
# quickjs
2023-11-15 12:05:20 -05:00
RUN dnf -y install xz
ADD quickjs-dos.diff /home/elinks/
ADD build_quickjs.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_quickjs.sh
2022-07-10 13:28:04 -04:00
2023-11-15 12:05:20 -05:00
# netsurf_buildsystem
ADD build_netsurf.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_netsurf.sh
2023-11-15 12:05:20 -05:00
# parserutils
ADD build_parserutils.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_parserutils.sh
# libwapcaplet
ADD build_wapcaplet.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_wapcaplet.sh
# libhubbub
RUN dnf -y install gperf
2023-11-15 12:05:20 -05:00
ADD build_hubbub.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_hubbub.sh
# libcss
ADD build_libcss.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_libcss.sh
# libdom
ADD build_libdom.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_libdom.sh
2023-10-29 13:10:17 -04:00
# libcurl
##ADD build_curl.sh /home/elinks/
##RUN runuser -u elinks bash /home/elinks/build_curl.sh
2023-10-29 13:10:17 -04:00
# mujs
2023-11-15 12:05:20 -05:00
ADD mujs.diff /home/elinks/
ADD build_mujs.sh /home/elinks/
RUN runuser -u elinks bash /home/elinks/build_mujs.sh
2023-11-15 12:05:20 -05:00
# dosemu
## RUN dnf install -y 'dnf-command(copr)'
## RUN dnf copr -y enable stsp/dosemu2
## RUN dnf install -y dosemu2
2022-07-10 13:28:04 -04:00
# get elinks source
2023-11-15 12:05:20 -05:00
RUN runuser -u elinks git clone https://github.com/rkd77/elinks /home/elinks/elinks
# additional perl packages
## RUN dnf install -y perl-autouse
2023-11-15 12:05:20 -05:00
# dosemu libs
## RUN echo /usr/lib64/fdpp > /etc/ld.so.conf.d/dosemu.conf
## RUN ldconfig
2023-11-15 12:05:20 -05:00
# nojs
ADD mes_djgpp.sh /home/elinks/elinks/
RUN runuser -u elinks bash /home/elinks/elinks/mes_djgpp.sh
# js
ADD mes_djgpp_js.sh /home/elinks/elinks/mes_djgpp_js.sh
RUN runuser -u elinks bash /home/elinks/elinks/mes_djgpp_js.sh