Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hifis-net/rsd-spotlight-migration
Migrate Spotlights from hifis.net to helmholtz.software
https://github.com/hifis-net/rsd-spotlight-migration
Last synced: about 1 month ago
JSON representation
Migrate Spotlights from hifis.net to helmholtz.software
- Host: GitHub
- URL: https://github.com/hifis-net/rsd-spotlight-migration
- Owner: hifis-net
- License: other
- Created: 2022-07-20T09:50:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T09:08:20.000Z (4 months ago)
- Last Synced: 2024-09-09T10:52:43.057Z (4 months ago)
- Language: Python
- Size: 457 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Software Spotlight Migration for RSD
This repository provides a docker image to use in the RSD project to
migrate the spotlights from hifis.net or any other local source into
the RSD database structure.## Run locally
If you have a RSD instance running locally you can start the migration with the
following commands:### Install dependencies
```bash
# install dependencies (only needs to be run once)
poetry install
```### Getting help
The tool supports some command line arguments:
```shell
$ poetry run ./main.py -h
usage: main.py [OPTION] PATHMigrate Software spotlights from a local file path to the RSD.
positional arguments:
PATH The file path where to find the spotlights.options:
-h, --help show this help message and exit
-d, --delete_all Delete all spotlights and overwrite with current versions.
-i, --update_imprint Update imprint if it already exists.
-v, --verbose Increase verbosity.
```### Run migration
Define the required environment variables as specified in your RSD `frontend/.env.local`
```bash
# define POSTGREST API endpoint and JWT secret
export POSTGREST_URL=https://localhost/api/v1
export PGRST_JWT_SECRET=abcdef# add spotlights to RSD database via PostgREST:
poetry run ./main.py
```or import them directly from your `.env.local`:
```bash
set -a
source ~/path/to/RSD-as-a-service/frontend/.env.local
poetry run ./main.py
```