summaryrefslogtreecommitdiff
path: root/docker/test
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-05-06 23:55:57 +0200
committerlouiz’ <louiz@louiz.org>2020-05-06 23:55:57 +0200
commit71efad0f659163934889855b8097f3445d3e3c92 (patch)
treea8743a7ed8ec8f0a8ac43de6ad01585fce5403b5 /docker/test
parent32d25e7e516c96820e9f2467d2fd3fd5c93c93ad (diff)
downloadbiboumi-71efad0f659163934889855b8097f3445d3e3c92.tar.gz
biboumi-71efad0f659163934889855b8097f3445d3e3c92.tar.bz2
biboumi-71efad0f659163934889855b8097f3445d3e3c92.tar.xz
biboumi-71efad0f659163934889855b8097f3445d3e3c92.zip
Update the test docker images to contain oragono instead of charybdis
Diffstat (limited to 'docker/test')
-rw-r--r--docker/test/alpine/Dockerfile35
-rw-r--r--docker/test/debian/Dockerfile38
-rw-r--r--docker/test/fedora/Dockerfile40
3 files changed, 113 insertions, 0 deletions
diff --git a/docker/test/alpine/Dockerfile b/docker/test/alpine/Dockerfile
new file mode 100644
index 0000000..8ba7ddf
--- /dev/null
+++ b/docker/test/alpine/Dockerfile
@@ -0,0 +1,35 @@
+# 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.io/alpine:latest
+
+ENV LC_ALL C.UTF-8
+
+# Needed to build biboumi
+RUN apk add --no-cache \
+git \
+make \
+cmake \
+g++ \
+libuuid \
+udns-dev \
+expat-dev \
+libidn-dev \
+sqlite-dev \
+botan-dev \
+util-linux-dev \
+libgcrypt-dev \
+postgresql-dev \
+valgrind \
+py3-pip \
+py3-lxml \
+python3-dev \
+libffi-dev \
+go \
+wget
+
+# Install oragono, for e2e tests
+RUN wget "https://github.com/oragono/oragono/archive/v2.0.0.tar.gz" && tar xvf "v2.0.0.tar.gz" && cd "oragono-2.0.0" && make && cp ~/go/bin/oragono /usr/local/bin
+
+# 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
diff --git a/docker/test/debian/Dockerfile b/docker/test/debian/Dockerfile
new file mode 100644
index 0000000..35578b9
--- /dev/null
+++ b/docker/test/debian/Dockerfile
@@ -0,0 +1,38 @@
+# 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.io/debian:buster
+
+ENV LC_ALL C.UTF-8
+
+RUN apt update
+
+# Needed to build biboumi
+RUN apt install -y --no-install-recommends \
+git \
+make \
+cmake \
+g++ \
+libuuid1 \
+libudns-dev \
+libexpat1-dev \
+libidn11-dev \
+libsqlite3-dev \
+libbotan-2-dev \
+libsystemd-dev \
+uuid-dev \
+libgcrypt20-dev \
+libpq-dev \
+valgrind \
+libasan5 \
+libubsan0 \
+python3-pip \
+python3-lxml \
+python3-dev \
+wget
+
+RUN wget "https://github.com/oragono/oragono/releases/download/v2.0.0/oragono-2.0.0-linux-x64.tar.gz" && tar xvf oragono-2.0.0-linux-x64.tar.gz && cp oragono-2.0.0-linux-x64/oragono /usr/local/bin
+
+# 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
+
diff --git a/docker/test/fedora/Dockerfile b/docker/test/fedora/Dockerfile
new file mode 100644
index 0000000..7b8d7bf
--- /dev/null
+++ b/docker/test/fedora/Dockerfile
@@ -0,0 +1,40 @@
+# 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.io/fedora:32
+
+ENV LC_ALL C.UTF-8
+
+RUN dnf --refresh install -y \
+git \
+make \
+cmake \
+gcc-c++ \
+uuid-devel \
+udns-devel \
+expat-devel \
+libidn-devel \
+sqlite-devel \
+botan2-devel \
+systemd-devel \
+libuuid-devel \
+libgcrypt-devel \
+postgresql-devel \
+lcov \
+libasan \
+libubsan \
+valgrind \
+python3-pip \
+python3-lxml \
+python3-devel \
+python3-sphinx \
+wget \
+fedora-packager \
+rpmdevtools \
+&& dnf clean all
+
+# Install slixmpp, for e2e tests
+RUN git clone git://git.louiz.org/slixmpp && pip3 install pyasn1 && cd slixmpp && python3 setup.py build && python3 setup.py install
+
+# Install oragono, for e2e tests
+RUN wget "https://github.com/oragono/oragono/releases/download/v2.0.0/oragono-2.0.0-linux-x64.tar.gz" && tar xvf oragono-2.0.0-linux-x64.tar.gz && cp oragono-2.0.0-linux-x64/oragono /usr/local/bin