Installing RAPID2 is by far the easiest with Docker. This document was written and tested using Docker Community Edition which is available for free and can be installed on a wide variety of operating systems. To install it, follow the instructions in the link provided above.
Note that the experienced users may find more up-to-date installation instructions in Dockerfile.
Downloading RAPID2 with Docker can be done using:
docker pull chdavid/rapid2
The beauty of Docker is that there is no need to install anymore packages. RAPID2 is ready to go! To run it, just use:
docker run --rm -it chdavid/rapid2
This document was written and tested on a machine with a clean image of Debian 12.7.0 ARM64 installed, i.e. no update was performed, and no upgrade either. Similar steps may be applicable for Ubuntu.
Note that the experienced users may find more up-to-date installation instructions in CI.yml.
First, make sure that git
is installed:
sudo apt-get install -y --no-install-recommends git
Then download RAPID2:
git clone https://github.com/c-h-david/rapid2
Finally, enter the RAPID2 directory:
cd rapid2/
Software packages for the Advanced Packaging Tool (APT) are summarized in
requirements.apt
and can be installed with apt-get
. All packages can be installed at once using:
sudo apt-get install -y --no-install-recommends $(grep -v -E '(^#|^$)' requirements.apt)
Alternatively, one may install the APT packages listed in requirements.apt one by one, for example:
sudo apt-get install -y --no-install-recommends python3.11
Also make sure that python3
points to python3.11
:
sudo rm -f /usr/bin/python3
sudo ln -s /usr/bin/python3.11 /usr/bin/python3
Python packages from the Python Package Index (PyPI) are summarized in
requirements.pip
and can be installed with pip
. But first, let's make sure to create a
virtual environment
python3 -m venv $HOME/venv
export PATH=$HOME/venv/bin:$PATH
Consider including this last
export
statement in your run command file, like~/.bash_aliases
on Debian.
All packages can be installed at once using:
pip3 install --no-cache-dir -r requirements.pip
Alternatively, one may install the PyPI packages listed in requirements.pip one by one, for example:
pip3 install flake8==7.1.1