Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
88
Issues
88
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
3699463e
Commit
3699463e
authored
Jan 17, 2017
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor and split the Dockerfiles, to build a base without litesql
parent
81b21bfc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
117 additions
and
125 deletions
+117
-125
docker/biboumi-test/debian/Dockerfile
docker/biboumi-test/debian/Dockerfile
+2
-61
docker/biboumi-test/debian/Dockerfile.base
docker/biboumi-test/debian/Dockerfile.base
+55
-0
docker/biboumi-test/fedora/Dockerfile
docker/biboumi-test/fedora/Dockerfile
+2
-64
docker/biboumi-test/fedora/Dockerfile.base
docker/biboumi-test/fedora/Dockerfile.base
+58
-0
No files found.
docker/biboumi-test/debian/Dockerfile
View file @
3699463e
# 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:latest
RUN
apt update
# Needed to build biboumi
RUN
apt
install
-y
g++
RUN
apt
install
-y
clang
RUN
apt
install
-y
valgrind
RUN
apt
install
-y
libudns-dev
RUN
apt
install
-y
libsqlite3-dev
RUN
apt
install
-y
libuuid1
RUN
apt
install
-y
cmake
RUN
apt
install
-y
make
RUN
apt
install
-y
libexpat1-dev
RUN
apt
install
-y
libidn11-dev
RUN
apt
install
-y
uuid-dev
RUN
apt
install
-y
libsystemd-dev
RUN
apt
install
-y
pandoc
RUN
apt
install
-y
libasan2
RUN
apt
install
-y
libubsan0
# Needed to run tests
RUN
apt
install
-y
git
RUN
apt
install
-y
python3-lxml
RUN
apt
install
-y
lcov
# Install botan
RUN
git clone https://github.com/randombit/botan.git
RUN
cd
botan
&&
./configure.py
--prefix
=
/usr
&&
make
-j8
&&
make
install
RUN
rm
-rf
/botan
FROM
docker.louiz.org/biboumi-test-debian-base
# Install litesql
RUN
git clone git://git.louiz.org/litesql
RUN
mkdir
/litesql/build
&&
cd
/litesql/build
&&
cmake ..
-DCMAKE_INSTALL_PREFIX
=
/usr
&&
make
-j8
RUN
cd
/litesql/build
&&
make
install
RUN
rm
-rf
/litesql
RUN
ldconfig
# Install slixmpp, for e2e tests
RUN
git clone https://github.com/saghul/aiodns.git
RUN
cd
aiodns
&&
python3 setup.py build
&&
python3 setup.py
install
RUN
apt
install
-y
python3-pip
RUN
git clone git://git.louiz.org/slixmpp
RUN
pip3
install
pyasn1
RUN
apt
install
-y
python3-dev
RUN
cd
slixmpp
&&
python3 setup.py build
&&
python3 setup.py
install
RUN
useradd tester
-m
# Install charybdis, for e2e tests
RUN
apt
install
-y
automake autoconf flex bison libltdl-dev openssl zlib1g-dev libssl-dev
RUN
apt
install
-y
libtool
RUN
git clone https://github.com/charybdis-ircd/charybdis.git
&&
cd
charybdis
RUN
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
RUN
chown
-R
tester:tester /home/tester/ircd
RUN
rm
-rf
/charybdis
RUN
yes
""
| openssl req
-nodes
-x509
-newkey
rsa:4096
-keyout
/home/tester/ircd/etc/ssl.key
-out
/home/tester/ircd/etc/ssl.pem
RUN
apt
install
-y
curl
ENV
LC_ALL C.UTF-8
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
WORKDIR
/home/tester
USER
tester
docker/biboumi-test/debian/Dockerfile.base
0 → 100644
View file @
3699463e
# 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:latest
ENV LC_ALL C.UTF-8
RUN apt update
# Needed to build biboumi
RUN apt install -y g++\
clang\
valgrind\
libudns-dev\
libsqlite3-dev\
libuuid1\
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
docker/biboumi-test/fedora/Dockerfile
View file @
3699463e
# 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:latest
RUN
dnf update
-y
# Needed to build biboumi
RUN
dnf
install
-y
gcc-c++
RUN
dnf
install
-y
clang
RUN
dnf
install
-y
valgrind
RUN
dnf
install
-y
udns-devel
RUN
dnf
install
-y
sqlite-devel
RUN
dnf
install
-y
libuuid-devel
RUN
dnf
install
-y
cmake
RUN
dnf
install
-y
make
RUN
dnf
install
-y
expat-devel
RUN
dnf
install
-y
libidn-devel
RUN
dnf
install
-y
uuid-devel
RUN
dnf
install
-y
systemd-devel
RUN
dnf
install
-y
pandoc
RUN
dnf
install
-y
libasan
RUN
dnf
install
-y
libubsan
# Needed to run tests
RUN
dnf
install
-y
git
RUN
dnf
install
-y
fedora-packager python3-lxml
RUN
dnf
install
-y
lcov
# To be able to create the RPM
RUN
dnf
install
-y
rpmdevtools
# Install botan
RUN
git clone https://github.com/randombit/botan.git
RUN
cd
botan
&&
./configure.py
--prefix
=
/usr
&&
make
-j8
&&
make
install
RUN
rm
-rf
/botan
FROM
docker.louiz.org/biboumi-test-fedora-base
# Install litesql
RUN
git clone git://git.louiz.org/litesql
RUN
mkdir
/litesql/build
&&
cd
/litesql/build
&&
cmake ..
-DCMAKE_INSTALL_PREFIX
=
/usr
&&
make
-j8
RUN
cd
/litesql/build
&&
make
install
RUN
rm
-rf
/litesql
RUN
ldconfig
# Install slixmpp, for e2e tests
RUN
git clone git://git.louiz.org/slixmpp
RUN
pip3
install
pyasn1
RUN
dnf
install
-y
python3-devel
RUN
cd
slixmpp
&&
python3 setup.py build
&&
python3 setup.py
install
RUN
useradd tester
# Install charybdis, for e2e tests
RUN
dnf
install
-y
automake autoconf flex flex-devel bison libtool-ltdl-devel openssl-devel
RUN
dnf
install
-y
libtool
RUN
git clone https://github.com/charybdis-ircd/charybdis.git
&&
cd
charybdis
RUN
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
--with-included-boost
&&
make
-j8
&&
make
install
RUN
chown
-R
tester:tester /home/tester/ircd
RUN
rm
-rf
/charybdis
COPY
coverity /home/tester/coverity
COPY
sonar-scanner-2.8 /home/tester/sonar-scanner
RUN
dnf
install
-y
which java-1.8.0-openjdk
RUN
yes
""
| openssl req
-nodes
-x509
-newkey
rsa:4096
-keyout
/home/tester/ircd/etc/ssl.key
-out
/home/tester/ircd/etc/ssl.pem
ENV
LC_ALL C.UTF-8
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
&&
ldconfig
&&
rm
-rf
/litesql
WORKDIR
/home/tester
USER
tester
docker/biboumi-test/fedora/Dockerfile.base
0 → 100644
View file @
3699463e
# 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:latest
ENV LC_ALL C.UTF-8
RUN dnf --refresh install -y\
gcc-c++\
clang\
valgrind\
udns-devel\
sqlite-devel\
libuuid-devel\
cmake\
make\
expat-devel\
libidn-devel\
uuid-devel\
systemd-devel\
pandoc\
libasan\
libubsan\
git\
fedora-packager\
python3-lxml\
lcov\
rpmdevtools\
python3-devel\
automake\
autoconf\
flex\
flex-devel\
bison\
libtool-ltdl-devel\
libtool\
openssl-devel\
which\
java-1.8.0-openjdk\
&& dnf clean all
# Install botan
RUN git clone https://github.com/randombit/botan.git && cd botan && ./configure.py --prefix=/usr && make -j8 && make install && ldconfig && rm -rf /botan
# 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
RUN useradd 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 --with-included-boost && 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
COPY coverity /home/tester/coverity
COPY sonar-scanner-2.8 /home/tester/sonar-scanner
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment