-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile_alpine_build_server
64 lines (40 loc) · 1.47 KB
/
Containerfile_alpine_build_server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM p/alpine/tiny_ssh
RUN apk add build-base autoconf automake openssl-dev openssl curl-dev \
supervisor git; \
rm -rf /var/cache;
ENV USERHOME=/home/pissnet
ENV TZ=America/Sao_Paulo
ARG BRANCH=piss60
ARG REPO=https://gitea.pissnet.ltd/pissnet/pissircd
WORKDIR $USERHOME
RUN chown -R pissnet:users .; \
cd unrealircd && \
rm -rf bin cache doc lib modules source tmp unrealircd || \
true;
USER pissnet
COPY git_sync.sh /usr/local/bin
RUN /usr/local/bin/git_sync.sh
WORKDIR $USERHOME/pissircd
# RUN ./Config
# if for some reason don't want to call Config (both seem to work)
RUN \
./autogen.sh && \
./configure --with-showlistmodes --enable-ssl --enable-libcurl \
--with-nick-history=2000 --with-permissions=0600 --enable-dynamic-linking \
--disable-asan
# one of the certificates fail to create if it doesn't receive any input
# hence this line is necessary even if you run Config
RUN echo -e 'make pem\n\n\n\n\n\n' | bash -
RUN mkdir -p $USERHOME/unrealircd/tmp $USERHOME/unrealircd/conf/tls; \
cp server.cert.pem server.key.pem server.req.pem $HOME/unrealircd/conf/tls
RUN make -j4; \
make install;
RUN make clean;
WORKDIR $USERHOME/unrealircd
ADD --chown=pissnet:pissnet conf conf
ADD --chown=pissnet:pissnet data data
EXPOSE 22 6667 6697 6900
ENV ASAN_OPTIONS="abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1:log_path=/home/pissnet/unrealircd/tmp/unrealircd_asan:detect_leaks=0"
ADD 30-unrealircd.conf /etc/supervisord.d/
USER root
#REM tbc