Skip to content

Commit

Permalink
ircd: Upload the actual small copy of the image
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOaks committed Mar 28, 2019
1 parent 58ddf1d commit 33ab5ea
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions ircd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,46 +59,3 @@ COPY ircd.motd /ircd-bin/etc/ircd.motd
# launch
WORKDIR /ircd-bin
ENTRYPOINT ["/ircd-bin/sbin/ircd", "-t"]









FROM alpine:3.9

RUN apk update
RUN apk upgrade

WORKDIR /tmp
RUN wget http://www.irc.org/ftp/irc/server/irc2.11.2p3.tgz
RUN tar -xzf irc2.11.2p3.tgz

RUN apk add --no-cache build-base git

WORKDIR /tmp/irc2.11.2p3
RUN ./configure --prefix=/ircd-bin
# # IPv6 results in "No working P-line in ircd.conf" so we don't do it ¯\_(ツ)_/¯
# RUN ./configure --enable-ipv6 --prefix=/ircd-bin

WORKDIR /tmp/irc2.11.2p3/ircd/
COPY ircd-alpine.patch /tmp/ircd-alpine.patch
RUN patch < /tmp/ircd-alpine.patch

# we use git here because the default patch is horrific
WORKDIR /tmp/irc2.11.2p3/x86_64-unknown-linux-gnu
COPY ircd-kline.patch /tmp/ircd-kline.patch
RUN cp config.h config.h.old
RUN git apply /tmp/ircd-kline.patch

RUN make all
RUN make install

COPY ircd.conf /ircd-bin/etc/ircd.conf
COPY ircd.motd /ircd-bin/etc/ircd.motd

WORKDIR /ircd-bin
CMD /ircd-bin/sbin/ircd -t

0 comments on commit 33ab5ea

Please sign in to comment.