Skip to content

Commit 130a981

Browse files
authored
Merge pull request #14 from pct-org/ubuntu_server_script_improvement
Added build-essential install and mongodb public key
2 parents 2aa5b9c + c83d68d commit 130a981

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: install-scripts/ubuntu-server.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ sudo apt-get install -y \
66
git \
77
curl
88

9-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
9+
sudo apt install build-essential
10+
11+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
1012
export NVM_DIR="$HOME/.nvm"
1113

14+
CODENAME=$(lsb_release -c -s)
15+
1216
# Install mongo db version 4.2
13-
sudo apt-get purge mongodb mongodb-server mongodb-server-core mongodb-clients
14-
sudo apt-get purge mongodb-org
15-
sudo apt-get autoremove
16-
sudo apt-get update
17+
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
18+
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $CODENAME/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
1719

18-
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
19-
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
2020
sudo apt-get update
2121
sudo apt-get install mongodb-org
2222
sudo systemctl daemon-reload

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"affected:libs": "nx affected:libs",
1717
"affected:lint": "nx affected:lint",
1818
"affected:test": "nx affected:test",
19+
"build": "yarn build:api && yarn build:scraper",
1920
"build:api": "nx build --with-deps",
2021
"build:rest-api": "nx build rest-api --with-deps",
2122
"build:scraper": "nx build scraper --with-deps",

0 commit comments

Comments
 (0)