🖱️Installing BAD Workflows

Dependencies:

See below for more a detailed walk-through of the installation process.

Installing System Dependencies

Update packages list and install software-properties-common:

sudo apt update
sudo apt install software-properties-common

Add deadsnakes PPA which contains Python 3.10 for Ubuntu 20.04; press Enter when prompted:

sudo add-apt-repository ppa:deadsnakes/ppa

Install Python 3.10:

sudo apt install python3.10 python3.10-dev

Install pip:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.10 get-pip.py

Install virtualenv:

pip install --upgrade virtualenv

Install Docker Engine:

Creating a Python Virtual Environment

It is highly recommended to create a Python virtual environment before installing the Observatory Platform and BAD workflows. To create a new virtual environment, execute the following command:

python3.8 -m venv MY_VENV_NAME # Change MY_VENV_NAME to whatever you please

To activate/deactivate the environment:

source MY_VENV_NAME/bin/activate # Activate
deactivate # Deactivate

While active, all changes to Python packages will be contained to the environment. Similarly, any Python run commands will be done in the context of the active environment. It is recommended that the following packages are installed to an active virtual environment, although there is no reason that the BAD Workflows could not be run without one.

The Observatory Platform

Make sure that you have followed the above instructions before installing the observatory-platform.

Clone the Observatory Platform repository:

git clone https://github.com/The-Academic-Observatory/observatory-platform

Install the observatory-api package:

pip install observatory-platform/observatory-api --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-no-providers-3.10.txt

Install the observatory-platform package:

pip install observatory-platform/observatory-platform --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-no-providers-3.10.txt

BAD Workflows

Clone the BAD workflows repository (oaebu-workflows)

git clone https://github.com/The-Academic-Observatory/oaebu-workflows.git

Install the workflows to the active python environment

pip install oaebu-workflows

Last updated