Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
/ GOB-Upload Public archive

GOB Upload data from import client to GOB

License

Notifications You must be signed in to change notification settings

Amsterdam/GOB-Upload

GOB-Upload

Upload data to GOB.

Uploading data consists of a comparing and storing the new data.

Infrastructure

A running GOB infrastructure is required to run this component.

Docker

Requirements

  • docker compose >= 1.25
  • Docker CE >= 18.09

Run

docker compose build

export GOBOPTIONS=migrate
echo "Migrate database to latest version..."
docker compose up
export GOBOPTIONS=

docker compose up &

Tests

docker compose -f src/.jenkins/test/docker-compose.yml build
docker compose -f src/.jenkins/test/docker-compose.yml run --rm test

Local

Requirements

  • Python >= 3.9

Initialisation

Create a virtual environment:

python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txt

Or activate the previously created virtual environment:

source venv/bin/activate

Run

Start the service:

cd src
python -m gobupload migrate
python -m gobupload

Tests

Run the tests:

cd src
sh test.sh

About

GOB Upload data from import client to GOB

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages