summaryrefslogtreecommitdiff
path: root/docker/biboumi-test/alpine/Dockerfile
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-06-13 11:51:10 +0200
committerlouiz’ <louiz@louiz.org>2017-06-14 00:19:15 +0200
commit41c23aab37905a97007d095c3997a0d0a9dfddda (patch)
tree8521d60e46b87aa5ab34d82f99a319ba903bfd6f /docker/biboumi-test/alpine/Dockerfile
parent369ccb037619871403b14c959bbb359332133810 (diff)
downloadbiboumi-41c23aab37905a97007d095c3997a0d0a9dfddda.tar.gz
biboumi-41c23aab37905a97007d095c3997a0d0a9dfddda.tar.bz2
biboumi-41c23aab37905a97007d095c3997a0d0a9dfddda.tar.xz
biboumi-41c23aab37905a97007d095c3997a0d0a9dfddda.zip
Update the docker images and the gitlab-ci script to use sqlite3
Diffstat (limited to 'docker/biboumi-test/alpine/Dockerfile')
-rw-r--r--docker/biboumi-test/alpine/Dockerfile50
1 files changed, 47 insertions, 3 deletions
diff --git a/docker/biboumi-test/alpine/Dockerfile b/docker/biboumi-test/alpine/Dockerfile
index ab288b6..1938a8b 100644
--- a/docker/biboumi-test/alpine/Dockerfile
+++ b/docker/biboumi-test/alpine/Dockerfile
@@ -1,10 +1,54 @@
# 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-alpine-base
+FROM docker.io/alpine: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 || true
+ENV LC_ALL C.UTF-8
+
+# Needed to build biboumi
+RUN apk add --no-cache g++\
+ clang\
+ valgrind\
+ udns-dev\
+ c-ares-dev\
+ sqlite-dev\
+ libuuid\
+ util-linux-dev\
+ libgcrypt-dev\
+ cmake\
+ make\
+ expat-dev\
+ libidn-dev\
+ git\
+ py3-lxml\
+ libtool\
+ py3-pip\
+ python2\
+ python3-dev\
+ automake\
+ autoconf\
+ flex\
+ bison\
+ libltdl\
+ openssl\
+ libressl-dev\
+ zlib-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 adduser tester -D -h /home/tester
+
+# 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