This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
fidohub/Dockerfile

117 lines
5.4 KiB
Docker

# NAME leenooks/fidohub
# VERSION latest
FROM debian:buster-slim
# Set the default timezone for the container
RUN ln -sf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
RUN apt-get update \
&& apt-get install -yyq curl ifcico crashmail jamnntpd xinetd nginx supervisor cron procps less logrotate \
zip unzip arc arj unrar-free lhasa p7zip vim libtimedate-perl \
&& mkdir /etc/jamnntpd && mv /etc/jamnntpd.* /etc/jamnntpd/ && mv /etc/jamnntpd /etc/jamnntpd.orig \
&& apt-get -y purge exim4-base \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add in Leenooks' apt repository
RUN curl -sL http://apt.leenooks.net/setup.sh | DISTRO=buster bash
# Add ZeroTier
RUN echo "deb [trusted=yes] http://download.zerotier.com/debian/stretch stretch main" > /etc/apt/sources.list.d/zerotier.list
# Leenooks Utils
RUN apt-get update \
&& apt-get install -y binkd=1.1a-111 makenl goldedplus qico zerotier-one \
&& mv /etc/binkd /etc/binkd.orig \
&& mv /etc/qico /etc/qico.orig \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update \
&& apt-get install -yqq git make gcc zlib1g-dev libperl-dev libbz2-dev ncurses-dev automake flex bison \
&& cd /tmp && git clone https://github.com/huskyproject/huskybse.git \
&& cd huskybse \
&& sed -e 's#CFGDIR=$(PREFIX)/etc/fido#CFGDIR=/etc/ftn#' -i huskymak.cfg \
&& sed -e 's#PERL=0#PERL=1#' -i huskymak.cfg \
&& sed -e 's#USE_HPTZIP=0#USE_HPTZIP=1#' -i huskymak.cfg \
&& git clone https://github.com/huskyproject/huskylib.git \
&& cd huskylib && make install && cd .. \
&& git clone https://github.com/huskyproject/smapi.git \
&& cd smapi && make install && cd .. \
&& git clone https://github.com/huskyproject/fidoconf.git \
&& cd fidoconf && make && make install && cd .. \
&& git clone https://github.com/huskyproject/areafix.git \
&& cd areafix && make install && cd .. \
&& git clone https://github.com/huskyproject/hptzip.git \
&& cd hptzip && make install && cd .. \
&& git clone https://github.com/huskyproject/hpt.git \
&& cd hpt && make install && cd .. \
&& cp -Ra hpt/misc /usr/local/include/hpt \
&& git clone https://github.com/huskyproject/htick.git \
&& cd htick && make install && cd .. \
&& cp -Ra htick/misc /usr/local/include/htick \
&& git clone https://github.com/huskyproject/nltools.git \
&& cd nltools && make install && cd .. \
&& git clone https://github.com/huskyproject/hptkill.git \
&& cd hptkill && make install && cd .. \
&& git clone https://github.com/huskyproject/areastat.git \
&& cd areastat && echo 'ZGlmZiAtLWdpdCBhL01ha2VmaWxlIGIvTWFrZWZpbGUKaW5kZXggZjRmZTgxYi4uODgzZmRkYSAx\
MDA2NDQKLS0tIGEvTWFrZWZpbGUKKysrIGIvTWFrZWZpbGUKQEAgLTI2LDcgKzI2LDcgQEAgZW5k\
aWYKIGlmZXEgKCQoU0hPUlROQU1FKSwgMSkKICAgTElCUyAgPSAtTCQoTElCRElSKSAtbGZpZG9j\
b25mIC1sc21hcGkKIGVsc2UKLSAgTElCUyAgPSAtTCQoTElCRElSKSAtbGZpZG9jb25maWcgLWxz\
bWFwaQorICBMSUJTICA9IC1MJChMSUJESVIpIC1sZmlkb2NvbmZpZyAtbHNtYXBpIC1saHVza3kK\
IGVuZGlmCiAKIENERUZTPS1EJChPU1RZUEUpIC1EVU5BTUU9XCIkKFVOQU1FKVwiICQoQUREQ0RF\
RlMpCkBAIC04MSw3ICs4MSw4IEBAIGlmZGVmIEhUTUxESVIKIGVuZGlmCiBpZmRlZiBNQU5ESVIK\
IAktJChNS0RJUikgJChNS0RJUk9QVCkgJChNQU5ESVIpJChESVJTRVApbWFuMQotCWZvciBtIGlu\
ICQoTUFOUyk7IGRvICQoSU5TVEFMTCkgJChJTU9QVCkgJCRtLmd6ICQoTUFORElSKSQoRElSU0VQ\
KW1hbmBlY2hvICQkbSB8IHNlZCBzLy4qXFwuLy9gLzsgZG9uZQorCS0kKE1LRElSKSAkKE1LRElS\
T1BUKSAkKE1BTkRJUikkKERJUlNFUCltYW41CisJZm9yIG0gaW4gJChNQU5TKTsgZG8gJChJTlNU\
QUxMKSAkKElNT1BUKSAkJG0uZ3ogJChNQU5ESVIpJChESVJTRVApbWFuYGVjaG8gJCRtIHwgc2Vk\
IHMvLipcXFxcLi8vYC87IGRvbmUKIGVuZGlmCiAKIHVuaW5zdGFsbDoK '|base64 -d|git apply \
&& make install && cd .. \
&& git clone https://github.com/huskyproject/hptutil.git \
&& cd hptutil && make install && cd .. \
&& git clone https://github.com/huskyproject/fidostat.git \
&& cd fidostat && make && make install && cd .. \
&& cd /tmp && rm -rf /tmp/huskybse \
&& apt-get -y purge git make gcc zlib1g-dev libperl-dev libbz2-dev ncurses-dev automake flex bison \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# && git clone https://github.com/huskyproject/msged.git \
# && git clone https://github.com/huskyproject/cfroute.git \ ?
# && git clone https://github.com/huskyproject/lxtrack.git \ ?
# && git clone https://github.com/huskyproject/bsopack.git \ ?
# && git clone https://github.com/huskyproject/emailpkt.git \ ?
# && git clone https://github.com/huskyproject/mpost.git \ ?
# && git clone https://github.com/huskyproject/fidoroute.git \
# && git clone https://github.com/huskyproject/hptzip.git \
# Other tools
#RUN apt-get update \
# && apt-get install -yqq libtimedate-perl \
# && apt-get -y autoremove \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY nginx/binkps.conf /etc/nginx/modules-enabled/
COPY nginx/binkps.crt nginx/binkps.key /etc/nginx/conf.d/ssl/
COPY xinetd.d /etc/xinetd.d/
COPY logrotate.d /etc/logrotate.d/
COPY supervisord.d /etc/supervisor/conf.d/
COPY jamnntpd.orig/config /etc/jamnntpd.orig/
COPY ftn.orig /etc/ftn.orig/
COPY init /sbin/init
COPY golded /usr/local/bin
COPY goldkeys.cfg /etc
EXPOSE 119 24553 24554 60177 60179
VOLUME [ "/var/lib/zerotier-one" ]
VOLUME [ "/etc/binkd","/etc/ifmail","/etc/ftn","/etc/jamnntpd","/etc/qico","/fido" ]
VOLUME [ "/etc/cron.hourly","/etc/cron.daily","/etc/cron.weekly","/etc/cron.monthly" ]
ENTRYPOINT [ "/sbin/init" ]
CMD [ "/usr/bin/supervisord","-c","/etc/supervisor/supervisord.conf","-n" ]