Skip to content

Migration to DSpace7.2.1.

MajoBerger edited this page Apr 28, 2023 · 7 revisions

Overview

This tutorial assumes using docker containers for deployment of dspace. Docker-compose files contain everything needed to start and run docker, including database, solr, matomo and backend. Docker-compose files referenced in command below can be found in repository: https://github.com/dataquest-dev/dspace-angular later on, they will be migrated to this one: https://github.com/ufal/dspace-angular

Dspace was originally deployed on linux server with nginx and some simple configuration of nginx is necessary.

Currently dspace is run using docker-compose as follows:

docker-compose --env-file .env -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/matomo-w-db.yml pull
docker-compose --env-file .env -p dq-d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/matomo-w-db.yml up -d --no-build

To successfully run the commands, docker-compose files must be downloaded from repository above and .env file must be created.

Such file should contain the following:

DSPACE_UI_IMAGE=dataquest/dspace-angular:dspace-7_x
DSPACE_REST_IMAGE=dataquest/dspace:dspace-7_x
DOCKER_OWNER=dataquest

DSPACE_REST_HOST=exapmple.com
REST_URL=http://anotherexample:12345/server
UI_URL=http://example.com

To add administrator and other users, use following commands, docker compose files and .env exactly the same as above.

docker-compose --env-file .env -p dq-d7 -f docker/cli.yml run --rm dspace-cli create-administrator -e [email protected] -f firstname -l lastname -p password -c en -o organization
docker-compose --env-file .env -p dq-d7 -f docker/cli.yml run --rm dspace-cli user --add -m [email protected] -g givenname -s surname -l en -p user -o organization

Obviously, it is possible to change parameters like -e for email, -m for email, -f for first name, -g for given name, -s for surname, -l for last name, -p for password, -o for organization. Only use the arguments for command as specified above. Just modify values if needed.

Changes to configurations must be made, all of which are described on this page.

Versions:

Dspace was run with following versions:

  • Linux Ubuntu 20.04.5 LTS
  • Docker version 20.10.23, build 7155243
  • docker-compose version 1.25.0

necessary configuration

further possible configuration

Nginx

  • GÉANT Data Protection Code of Conduct redirection
  • Content negotiation

Submission extensions

Dissemination extensions

PIDs

Licensing Framework

Refbox (citations, featured services)

AAI Shibboleth

Common

  • Set up the OAI-PMH reindex CRON Job
  • Define the help desk email and phone number in the clarin-dspace.cfg
Clone this wiki locally