From f43d804767bebf7bdcfb2798d6222e15f095643f Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 4 May 2025 13:49:15 +0200 Subject: [PATCH] first test --- Dockerfile | 28 ++++++++++++++++++++++++++++ config.settings | 23 +++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 Dockerfile create mode 100644 config.settings diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c2819ba --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +ARG PKG="build-essential pkg-config gdb libssl-dev libpcre2-dev libargon2-0-dev libsodium-dev libc-ares-dev libcurl4-openssl-dev" +ARG VER="6.1.10" +ARG UID=10000 + +FROM debian:bookworm +ARG PKG +ARG VER +ARG UID + +COPY ./config.settings /tmp/config.settings + +WORKDIR /usr/src/ircd +RUN set -x \ + && apt-get install ${PKG} + && wget -O /tmp/unrealircd https://www.unrealircd.org/downloads/unrealircd-${VER}.tar.gz \ + && tar xvfz /tmp/unrealircd \ + && cd ./unrealircd-${VER}/ \ + && cp /tmp/config.settings /usr/src/ircd/unrealircd-${VER}/config.settings \ + && ./Config -quick \ + && make -j$(nproc) && make install \ + && rm -rf /usr/src/ircd \ + && addgroup -S unreal && adduser -u ${UID} -S unreal -G unreal + +WORKDIR /ircd +RUN set -x \ + && chown -R unreal:unreal /ircd /app +USER unreal +CMD ["/bin/sh" ] \ No newline at end of file diff --git a/config.settings b/config.settings new file mode 100644 index 0000000..9af92ce --- /dev/null +++ b/config.settings @@ -0,0 +1,23 @@ +BASEPATH="/app/unrealircd" +BINDIR="/app/unrealircd/bin" +DATADIR="/app/unrealircd/data" +CONFDIR="/ircd" +MODULESDIR="/app/unrealircd/modules" +LOGDIR="/logs" +CACHEDIR="/app/unrealircd/cache" +DOCDIR="/app/unrealircd/doc" +TMPDIR="/app/unrealircd/tmp" +PRIVATELIBDIR="/app/unrealircd/lib" +PREFIXAQ="1" +MAXCONNECTIONS_REQUEST="auto" +NICKNAMEHISTORYLENGTH="20000" +DEFPERM="0600" +SSLDIR="" +REMOTEINC="1" +CURLDIR="/tmp/curl" +SHOWLISTMODES="1" +NOOPEROVERRIDE="" +OPEROVERRIDEVERIFY="" +GENCERTIFICATE="1" +EXTRAPARA="--enable-libcurl=/usr" +ADVANCED="" \ No newline at end of file