Server:pisswaterfall.duckdns.org

From pisswiki
Revision as of 06:51, 26 October 2021 by Rber (talk | contribs)
pisswaterfall.duckdns.org
Name pisswaterfall.duckdns.org
Location Rio de Janeiro, Rio de Janeiro, Brasil
Owner rber
SID 157
Type Leaf
Status Active

not sure what should I put here for now :3 piss

// rber
// Location: Rio de Janeiro, Rio de Janeiro, Brasil
// SID: 157
link pisswaterfall.duckdns.org {
    incoming {
        mask *;
    }
outgoing {
hostname pisswaterfall.duckdns.org;
port 6900;
options { tls; }
    } password "iWukkmm62QzoTydx1N3CBAeHCMQDWuI33lCwt86xehE=" { spkifp; } class servers; }
File:NQPxWuWW.png
seemingly piss in a piss collector container over a counter with other drinking vessels
# author rber
# [[reminder to insert GPLv3 here later]]

FROM registry.opensuse.org/opensuse/tumbleweed:latest

RUN zypper in -y -t pattern devel_basis devel_C_C++ network_admin console

RUN zypper in -y git python3 libopenssl-devel libsodium-devel pcre2-devel libcurl-devel argon2-devel c-ares-devel libcares2 mt

RUN useradd pissnet; \
chown -R pissnet:users /home/pissnet

ENV WORKDIR=/home/pissnet/pissircd
ENV HOME=/home/pissnet

USER pissnet

RUN git clone --single-branch https://github.com/rbertoche/pissircd $WORKDIR

WORKDIR $WORKDIR

RUN ./Config

# if for some reason don't want to call Config (both seem to work)
# ./autogen.sh && \
#       ./configure --with-showlistmodes --enable-ssl --enable-libcurl \
#               --with-nick-history=2000 --with-permissions=0600 --enable-dynamic-linking &&
# make pem

RUN mkdir -p $HOME/unrealircd/tmp

RUN make -j4; \
        make install;

VOLUME /home/pissnet/unrealircd

RUN make clean;

USER root

RUN rm -rf /var/cache/zypp/packages

#REM tbc

And build it and run it with:

podman build -f pissnet-dockerfile pissnet
podman run -dt -p [::]:6900:6900 -p [::]:6667:6667 -p [::]:6697:6697 -u pissnet --name pissnet pissnet bash -c "/home/pissnet/unrealircd/unrealircd start; sleep infinity"

It builds certificates but they might be in the wrong directory, I don't remember. Ofc you need to edit the config file in there if you want it to link to pissnet.

Also ofc, these port mappings are for IPv6 only, which is my case.

Kill it with killall -15 unrealircd since it won't have a shell attached (or run it without the bash -c and following argument, that will spawn a shell you can attach to it start it yourself there)