GOB Export contains the logic to export GOB data in various formats.
The primary goal of this component is to preserve the existing DIVA products. This will allow for a migration to GOB that minimizes the impact for the existing users of DIVA output.
A running GOB infrastructure and GOB API is required to run this component.
In order to access secure data over the GOB API you need to define environment variables:
OIDC_TOKEN_ENDPOINTOIDC_CLIENT_ID_GOBOIDC_CLIENT_SECRET_GOB
- docker compose >= 1.25
- Docker CE >= 18.09
docker compose build
docker compose up &docker compose -f src/.jenkins/test/docker-compose.yml build
docker compose -f src/.jenkins/test/docker-compose.yml run --rm test- Python >= 3.9
Create a virtual environment:
python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txtOr activate the previously created virtual environment:
source venv/bin/activateOptional: Set environment if GOB-Export should connect to Objectstore:
export $(cat .env | xargs) # Copy from .env.example if missingStart the service:
cd src
python -m gobexportRun the tests:
cd src
sh test.shExports are triggered by the GOB-Workflow module. See the GOB-Workflow README for more details.
The exports are highly data driven. The configurations are stored in gobexport/exporter/config/.
The output files are placed on the configured objectstore under {CONTAINER_BASE}/{catalog}/{file}.
The CONTAINER_BASE default value is distributie.
It is recommended to change this value in development to development in the .env file.