bbs-io / synchronet-docker

Containerized Synchronet BBS
ISC License
52 stars 4 forks source link

DOSEMU Support #15

Open tracker1 opened 1 year ago

tracker1 commented 1 year ago

Look into extending support to include DOSEMU.

Thanks to this Reddit comment

reference...

FROM bbsio/synchronet:latest

ARG DOSEMU_DEB_URL=http://ftp.us.debian.org/debian/pool/contrib/d/dosemu/dosemu_1.4.0.7+20130105+b028d3f-2+b1_amd64.deb
ARG DOSEMU_DEB=dosemu_1.4.0.7+20130105+b028d3f-2+b1_amd64.deb

RUN apt-get update \
        && apt-get install -y rsh-redone-client locales locales-all \
                mtools dosfstools dos2unix ser2net socat

ENV USER=root LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8

# HACK: Install dosemu from .deb URL and allow for initial failure of install before dependencies
RUN wget -nc $DOSEMU_DEB_URL \
        && /usr/bin/dpkg -i $DOSEMU_DEB \
        || /usr/bin/apt-get -f install -y \
        && /usr/bin/dpkg -i $DOSEMU_DEB \
        && rm $DOSEMU_DEB
RUN mkdir -p /media/CDROM

ARG SBBS_SRC=./sbbs
COPY $SBBS_SRC/install/terminfo $SBBS_SRC/install/termcap ./
RUN /usr/bin/tic terminfo \
        && cat termcap >> /etc/termcap \
        && rm terminfo termcap

RUN apt-get install -y tmux

COPY ./start.sh ./
CMD ["./start.sh"]