Zenodo Invenio RDM instance.
Development
To get started you need to have
invenio-cli
installed (we
recommend using pipx
to do so).
# Install dependencies
pipenv sync --dev
pipenv run pip install -r requirements-devel.txt
# Build assets
invenio-cli update --install-js
# Start services (DB, ES, etc.). Use the "--force" option to recreate
invenio-cli services
# Run the development server
pipenv shell
export FLASK_ENV=development
invenio run --cert ./docker/nginx/test.crt --key ./docker/nginx/test.key
# In a separate terminal run the Webpack build server
invenio webpack run start
# For using local repositories (e.g. invenio-communities):
# Activate the virtualenv
pipenv shell
# Go to your local repo
cd ~/src/invenio-communities
# Uninstall the dependency
pip uninstall -y invenio-communities
# Install the local source
pip install -e .
Docker images
The repository is setup via GitHub actions to automatically build Docker images:
zenodo-rdm:${VERSION}
when tags in the formatv${VERSION}
are pushedzenodo-rdm:latest
when themaster
branch is updated
To manually build the latest
image, e.g. in case you update a development
dependency, you can trigger a repository
dispatch
in the following way:
# First, you need a GitHub personal access token with no scopes from
# https://github.com/settings/tokens/new.
read -s GH_TOKEN
curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token $GH_TOKEN" \
--request POST \
--data '{"event_type": "publish-latest"}' \
https://api.github.com/repos/zenodo/zenodo-rdm/dispatches