Skip to content

Commit

Permalink
[Docs] Add venv workaround for Ubuntu 24.04
Browse files Browse the repository at this point in the history
Ubuntu 24.04 has a bug that prevents running GSC out-of-the-box, see
https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2065348

Until this bug is fixed, users must prepare venv for GSC.

Signed-off-by: Adarsh Anand <[email protected]>
  • Loading branch information
adarshan-intel authored and dimakuv committed Sep 4, 2024
1 parent 7620ef0 commit 3168b08
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,26 @@ pip. GSC requires Python 3.6 or later.
sudo apt-get install docker.io python3 python3-pip
pip3 install docker jinja2 tomli tomli-w pyyaml
Python venv workaround for Ubuntu 24.04
---------------------------------------

Unfortunately, Ubuntu 24.04 (noble) has a `bug that prevents out-of-the-box
execution of
GSC <https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2065348>`__.

Until this bug is fixed, GSC must be run on Ubuntu 24.04 via Python virtual
environment (venv). Please perform the following steps to install and activate
venv for GSC:

.. code-block:: sh
sudo apt-get install python3-venv
python3 -m venv my_venv && source my_venv/bin/activate
pip3 install 'docker>=6.1.0' jinja2 tomli tomli-w pyyaml
Now you can execute GSC commands (`gsc build`, `gsc sign`, etc.) as usual,
within the virtual environment confines.

SGX software stack
------------------

Expand Down

0 comments on commit 3168b08

Please sign in to comment.