Project

General

Profile

Builder-CI Installation » History » Version 1

Olivier Bitsch, 06/25/2021 10:57 AM

1 1 Olivier Bitsch
Despite Builder-CI should work on almost any GNU/Linux based system, it's recommended to deploy it on Debian Buster. The following server specification is known to be able to build any kind of package, but Builder-CI itself can run on much lower specifications.
2
3
* 4 vCPU
4
* 4Gb of RAM
5
* 50Gb hard drive space
6
7
We assume the rest of this guide is done on a terminal with root access.
8
9
## Installing Mongo
10
11
Builder-CI uses Listener feature of Mongo replicaset. Mongo can be installed on same server or deployed on another server/cluster. Deployment on same server is straight forward.
12
13
~~~ bash
14
## Install Mongo Repository
15
curl -s https://www.mongodb.org/static/pgp/server-${VERSION}.asc | apt-key add -
16
echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" \
17
    > /etc/apt/sources.list.d/mongo.list
18
19
## Install Mongo Package
20
apt update && apt install mongodb-server
21
22
## Enable replicaset feature into config
23
echo -e "replication:\n   replSetName: \"rs0\"" >> /etc/mongod.conf
24
25
## Start Mongo
26
systemctl enable --now mongod
27
28
## Enter into Mongo console and add this host to replicaset.
29
mongo
30
rs.initiate({
31
   _id: "rs0",
32
   members:[
33
      {
34
         _id: 0,
35
         host: "localhost:27017"
36
      }
37
   ]
38
})
39
~~~
40
41
## Installing Docker
42
43
Builder-CI may rely on Docker to make builds. Docker is not mandatory if you only want build Debian Package, but most of build requires that you install Docker.
44
45
~~~ bash
46
curl -s https://download.docker.com/linux/debian/gpg | apt-key add -
47
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian buster stable" \
48
    > /etc/apt/sources.list.d/docker.list
49
apt update && apt install docker-ce
50
~~~
51
52
Builder-CI will build for you all images automatically during installation phase.
53
54
## Installing Builder-CI
55
56
The most easy part is installing ready packages for Builder-CI. Despite this is only few command lines, the process may take several minutes depending of your internet speed and server. During this stage, few Docker base images will be fetched (Debian, Centos, ...).
57
58
~~~ bash
59
echo "deb [trusted=yes] https://projects.iabsis.com/repository/api-auto-builder/debian buster main" \
60
    > /etc/apt/sources.list.d/iabsis.list
61
apt update && apt install builder-ci
62
~~~
63
64
Next step is to check your server sanity before doing your first build.