Project

General

Profile

Builder-CI Installation on Ubuntu 2004 » History » Version 8

Olivier Bitsch, 06/29/2021 10:20 AM

1 1 Olivier Bitsch
# Builder-CI Installation on Ubuntu 2004
2
3
> This page is not finished
4 2 Olivier Bitsch
5
## Enable universe repository
6
7
    sudo add-apt-repository universe
8 3 Olivier Bitsch
9
## Install Docker
10
11
~~~ bash
12
sudo apt-get install \
13
    apt-transport-https \
14
    ca-certificates \
15
    curl \
16
    gnupg \
17
    lsb-release
18
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
19
echo \
20
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
21
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
22 5 Olivier Bitsch
sudo apt update && sudo apt install docker-ce
23 3 Olivier Bitsch
~~~
24 6 Olivier Bitsch
25
## Install Mongo
26
27
~~~
28 8 Olivier Bitsch
## Install Mongo Repository
29 6 Olivier Bitsch
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
30
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
31 8 Olivier Bitsch
32
## Install Mongo Package
33 6 Olivier Bitsch
sudo apt-get update && sudo apt-get install mongodb-org
34 8 Olivier Bitsch
35
## Enable replicaset feature into config
36
echo -e "replication:\n   replSetName: \"rs0\"" >> /etc/mongod.conf
37
38
## Start Mongo
39 7 Olivier Bitsch
sudo systemctl enable --now mongod
40 6 Olivier Bitsch
~~~