Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

BC-7461 - upgrade mongodb to v6 on ubuntu installation #455

Merged
merged 11 commits into from
Jul 11, 2024
2 changes: 1 addition & 1 deletion .github/workflows/e2e_call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
DOCKER_ID: ${{ secrets.DOCKER_ID }}
MY_DOCKER_PASSWORD: ${{ secrets.MY_DOCKER_PASSWORD }}
run: curl "https://raw.githubusercontent.com/hpi-schul-cloud/end-to-end-tests/main/scripts/ci/fetch.github.sh" | bash -s ${{ matrix.cases }}
run: curl "https://raw.githubusercontent.com/hpi-schul-cloud/end-to-end-tests/BC-7461-mongo6/scripts/ci/fetch.github.sh" | bash -s ${{ matrix.cases }}
MartinSchuhmacher marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/upload-artifact@v3
name: upload result
if: always()
Expand Down
14 changes: 10 additions & 4 deletions scripts/ci/fetch.github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@
set -e

# install dependencies
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv B00A0BD1E2C63C11
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
mamutmk5 marked this conversation as resolved.
Show resolved Hide resolved
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl git mongodb-database-tools
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv B00A0BD1E2C63C11
#wget -qO - https://pgp.mongodb.com/server-6.0.asc | sudo apt-key add -
sudo apt-get -y install gnupg apt-transport-https ca-certificates curl git
sudo apt-get update
# install mongodb
curl -fsSL https://www.mongodb.org/static/pgp/server-6.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor
#echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update
sudo apt-get install -y mongodb-database-tools

if [[ -z "$BRANCH_NAME" ]]; then
echo "Must provide BRANCH_NAME in environment"
Expand Down
Loading