Builder-CI Installation » History » Revision 3
Revision 2 (Olivier Bitsch, 06/25/2021 07:44 PM) → Revision 3/5 (Olivier Bitsch, 07/06/2021 11:38 AM)
Despite Builder-CI should work on almost any GNU/Linux based system however system, it's recommended to deploy 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. Buster. The following server specification is known to be able to build all packages tested as any kind of today, package, but Builder-CI itself can run on much lower specification hardware with limitations due to performance. specifications. * 4 vCPU * 4Gb of RAM * 50Gb hard drive space The We assume the rest of this guide is done on a terminal with root access (sudo su). access. ## Installing Mongo 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. straight forward. ~~~ bash ## Install Mongo Repository curl -s https://www.mongodb.org/static/pgp/server-${VERSION}.asc | apt-key add - echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" \ > /etc/apt/sources.list.d/mongo.list ## Install Mongo Package apt update && apt install mongodb-server ## Enable the replicaset feature into config echo -e "replication:\n replSetName: \"rs0\"" >> /etc/mongod.conf ## Start Mongo and enable the service systemctl enable --now mongod ## Enter into Mongo console and add this host to replicaset. mongo rs.initiate({ _id: "rs0", members:[ { _id: 0, host: "localhost:27017" } ] }) ~~~ ## Installing Docker Builder-CI may rely on Docker to make builds. Docker is not mandatory if you only want to build Debian Package, but most of build processes will require requires that you install Docker to provide clean build environments. Docker. ~~~ bash curl -s https://download.docker.com/linux/debian/gpg | apt-key add - echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian buster stable" \ > /etc/apt/sources.list.d/docker.list apt update && apt install docker-ce ~~~ Builder-CI will automatically build for you all the required docker images automatically during the installation phase. ## Installing Builder-CI The installation of Builder-CI includes most easy part is installing ready packages for Builder-CI. Despite this is only few command lines, the installation of the Builder-ci process and the building of various base Docker images used during the build processes. This step will may take several minutes depending on of your internet speed and server performance. server. During this stage, few Docker base images will be fetched (Debian, Centos, ...). ~~~ bash echo "deb [trusted=yes] https://projects.iabsis.com/repository/builder-ci/debian buster main" \ > /etc/apt/sources.list.d/iabsis.list apt update && apt install builder-ci ~~~ The next Next step is to check your server sanity before doing your first build [[Server-sanity-checks]] build.