From fcb729ede7d23a44df27bc328591c22bacc860cb Mon Sep 17 00:00:00 2001 From: thremilien <51836065+thremilien@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:37:35 +0200 Subject: [PATCH] [docs] Update documentation and setup.py requirements (#1006) --- doc/admin_doc/install_doc/installation.rst | 40 ++++++++++++---------- setup.py | 1 + 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/doc/admin_doc/install_doc/installation.rst b/doc/admin_doc/install_doc/installation.rst index 26da7b4d6..6bcafba00 100644 --- a/doc/admin_doc/install_doc/installation.rst +++ b/doc/admin_doc/install_doc/installation.rst @@ -87,7 +87,7 @@ As previously said, INGInious needs some specific packages. Those can simply be .. code-block:: bash - sudo apt install git gcc tidy python3-pip python3-dev python3-venv libzmq3-dev apt-transport-https + sudo apt install git gcc tidy python3-pip python3-dev python3-venv libzmq3-dev apt-transport-https ca-certificates curl software-properties-common wget gnupg lsb-release For Docker and MongoDB, some specific steps are needed: @@ -95,23 +95,21 @@ First, Docker: .. code-block:: bash - sudo apt install curl gnupg lsb-release curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update sudo apt install docker-ce docker-ce-cli + docker info Then, Mongo: .. code-block:: bash - wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add - - 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-org-6.0.list + curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor + echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list sudo apt update - wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb - sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb - sudo apt install -y mongodb-org - + sudo apt install mongodb-org + mongosh --eval 'db.runCommand({ connectionStatus: 1 })' .. NOTE:: Libssl installation is a temporary fix that is not required for all versions. @@ -120,14 +118,13 @@ Then, Mongo: You may also add ``libxmlsec1-dev libltdl-dev`` for the SAML2 auth plugin. You can now start and enable the ``mongod`` and ``docker`` services: -:: - # systemctl daemon-reload - # systemctl start mongod - # systemctl enable mongod - # systemctl start docker - # systemctl enable docker +.. code-block:: bash + systemctl daemon-reload + systemctl enable --now docker + systemctl enable --now mongod + macOS @@ -153,7 +150,8 @@ The next step is to install `Docker for Mac