Update the docker images and the gitlab-ci script to use sqlite3
This commit is contained in:
@@ -1,10 +1,60 @@
|
||||
# This Dockerfile creates a docker image suitable to run biboumi’s build and
|
||||
# tests. For example, it can be used on with gitlab-ci.
|
||||
|
||||
FROM docker.louiz.org/biboumi-test-debian-base
|
||||
FROM docker.io/debian:latest
|
||||
|
||||
# Install litesql
|
||||
RUN git clone git://git.louiz.org/litesql && mkdir /litesql/build && cd /litesql/build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr && make -j8 && cd /litesql/build && make install && rm -rf /litesql && ldconfig
|
||||
ENV LC_ALL C.UTF-8
|
||||
|
||||
RUN apt update
|
||||
|
||||
# Needed to build biboumi
|
||||
RUN apt install -y g++\
|
||||
clang\
|
||||
valgrind\
|
||||
libudns-dev\
|
||||
libc-ares-dev\
|
||||
libsqlite3-dev\
|
||||
libuuid1\
|
||||
libgcrypt20-dev\
|
||||
cmake\
|
||||
make\
|
||||
libexpat1-dev\
|
||||
libidn11-dev\
|
||||
uuid-dev\
|
||||
libsystemd-dev\
|
||||
pandoc\
|
||||
libasan1\
|
||||
libubsan0\
|
||||
git\
|
||||
python3-lxml\
|
||||
lcov\
|
||||
libtool\
|
||||
python3-pip\
|
||||
python3-dev\
|
||||
automake\
|
||||
autoconf\
|
||||
flex\
|
||||
bison\
|
||||
libltdl-dev\
|
||||
openssl\
|
||||
zlib1g-dev\
|
||||
libssl-dev\
|
||||
curl
|
||||
|
||||
# Install botan
|
||||
RUN git clone https://github.com/randombit/botan.git && cd botan && ./configure.py --prefix=/usr && make -j8 && make install && rm -rf /botan
|
||||
|
||||
# Install slixmpp, for e2e tests
|
||||
RUN git clone https://github.com/saghul/aiodns.git && cd aiodns && git checkout 7ee13f9bea25784322~ && python3 setup.py build && python3 setup.py install && git clone git://git.louiz.org/slixmpp && pip3 install pyasn1 && cd slixmpp && python3 setup.py build && python3 setup.py install
|
||||
|
||||
RUN useradd tester -m
|
||||
|
||||
# Install charybdis, for e2e tests
|
||||
RUN git clone https://github.com/charybdis-ircd/charybdis.git && cd charybdis && cd /charybdis && git checkout 4f2b9a4 && sed s/113/1113/ -i /charybdis/authd/providers/ident.c && ./autogen.sh && ./configure --prefix=/home/tester/ircd --bindir=/usr/bin && make -j8 && make install && rm -rf /charybdis
|
||||
|
||||
RUN chown -R tester:tester /home/tester/ircd
|
||||
|
||||
RUN yes "" | openssl req -nodes -x509 -newkey rsa:4096 -keyout /home/tester/ircd/etc/ssl.key -out /home/tester/ircd/etc/ssl.pem
|
||||
|
||||
WORKDIR /home/tester
|
||||
USER tester
|
||||
|
||||
Reference in New Issue
Block a user