The Dataverse stack for the ODISSEI portal. provides a quick setup for the Dataverse stack used for the ODISSEI Portal.
- The Dataverse stack
- A traefik configuration
The goal of this repo is to reduce the code footprint of ODISSEI, while maximising the code (re-)usage of other solutions.
For upgrading an existing system, read the upgrading.md document.
At the present date, a number of manual steps are still required. These are listed below, and commented out in the script.
Run the following commands:
curl -sSL https://install.python-poetry.org | python3 -Add Poetry to your system path:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcVerify the installation:
poetry --version- Setup Poetry and Python
- Install docker (obviously)
- Ensure ports are open where they need to be.
cp dot_env_example .env- make changes to the .env if necessary. For instance, when running on a local machine make sure you haveROOT_URL="http://localhost:8080".- Run the setup.sh script:
./setup.sh.
The setup script does the following things for you:
- Sets the variables in the .env file as environmental variables.
- Initiates and update the submodules.
- Copies the docker-compose and .env to the Dataverse submodule.
- Creates the traefik network the containers will be using.
- Ups both the Dataverse and Traefik containers.
- Waits for Dataverse to be finished setting up.
- Runs a script that loads in the custom metadata blocks.
- Runs a script that imports the licenses and sets up the subverses.
- Runs a script that sets up the Dutch translation.
- Runs a script that copies and sets up the SOLR schema and config.
- Turns off the sign up option.
- Sets the changed version of the dataset page and restart the Dataverse container.
The following files are overwritten by copy actions in the setup.sh script. We can't ignore them via the .gitignore and also not in the respective submodules. These changes must be ignored manual, by reverting or only selecting the other changes when committing.
Copied the docker-compose:
dataverse/docker-compose.yml
Copied metadata block scripts:
utils/Custom-Metadata-Blocks/tsv_files/upload.sh
utils/Custom-Metadata-Blocks/tsv_files/upload-blocks.sh
Cleanup is automated by running the following script:
./teardown_and_cleanup_submodules.sh