Project

General

Profile

Builder-CI Installation » History » Version 3

Olivier Bitsch, 07/06/2021 11:38 AM

1 3 Olivier Bitsch
Builder-CI should work on any GNU/Linux based system however it was developed on Debian Buster with limited testing on other distributions. Please let us know if you run it on another distribution with issues and off course if you have problems.
2 1 Olivier Bitsch
3 3 Olivier Bitsch
The following server specification is known to be able to build all packages tested as of today, but Builder-CI itself can run on much lower specification hardware with limitations due to performance.
4
5 1 Olivier Bitsch
* 4 vCPU
6
* 4Gb of RAM
7
* 50Gb hard drive space
8
9 3 Olivier Bitsch
The rest of this guide is done on a terminal with root access (sudo su).
10 1 Olivier Bitsch
11
## Installing Mongo
12
13 3 Olivier Bitsch
Builder-CI uses the Listener feature of Mongo replicaset. Mongo can be installed on the same server or deployed on another server/cluster. Deployment on the same server is the simplest option.
14 1 Olivier Bitsch
15
~~~ bash
16
## Install Mongo Repository
17
curl -s https://www.mongodb.org/static/pgp/server-${VERSION}.asc | apt-key add -
18
echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" \
19
    > /etc/apt/sources.list.d/mongo.list
20
21
## Install Mongo Package
22
apt update && apt install mongodb-server
23
24 3 Olivier Bitsch
## Enable the replicaset feature
25 1 Olivier Bitsch
echo -e "replication:\n   replSetName: \"rs0\"" >> /etc/mongod.conf
26
27 3 Olivier Bitsch
## Start Mongo and enable the service
28 1 Olivier Bitsch
systemctl enable --now mongod
29
30
## Enter into Mongo console and add this host to replicaset.
31
mongo
32
rs.initiate({
33
   _id: "rs0",
34
   members:[
35
      {
36
         _id: 0,
37
         host: "localhost:27017"
38
      }
39
   ]
40
})
41
~~~
42
43
## Installing Docker
44
45 3 Olivier Bitsch
Docker is not mandatory if you only want to build Debian Package, but most build processes will require that you install Docker to provide clean build environments.
46 1 Olivier Bitsch
47
~~~ bash
48
curl -s https://download.docker.com/linux/debian/gpg | apt-key add -
49
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian buster stable" \
50
    > /etc/apt/sources.list.d/docker.list
51
apt update && apt install docker-ce
52
~~~
53
54 3 Olivier Bitsch
Builder-CI will automatically build all the required docker images during the installation phase.
55 1 Olivier Bitsch
56
## Installing Builder-CI
57 3 Olivier Bitsch
The installation of Builder-CI includes the installation of the Builder-ci process and the building of various base Docker images used during the build processes. This step will take several minutes depending on your internet speed and server performance.
58 1 Olivier Bitsch
59
~~~ bash
60 2 Olivier Bitsch
echo "deb [trusted=yes] https://projects.iabsis.com/repository/builder-ci/debian buster main" \
61 1 Olivier Bitsch
    > /etc/apt/sources.list.d/iabsis.list
62
apt update && apt install builder-ci
63
~~~
64
65 3 Olivier Bitsch
The next step is to check your server sanity before doing your first build [[Server-sanity-checks]]