A docker image for automatic deployment of dataverse previewers.
10K+
This GitHub project provides a Docker image which helps to automatically deploy Dataverse previewers to a working Dataverse installlation.
The functionality is implemented by a Python CLI supporting 4 different commands
(venv) > python3 dataverse-cli.py --help
Usage: dataverse-cli.py [OPTIONS] COMMAND [ARGS]...
Main entry point for the CLI tool.
Options:
--help Show this message and exit.
Commands:
deploy Deploys specific or all supported previewers on the...
list List all the previewers currently installed on the...
previewers Shows all the previewers which can be installed.
remove Removes all the previewers currently installed on the...
There is a docker image which can be used to easily run it.
docker run trivadis/dataverse-deploy-previewers:latest previewers
docker run -e DATAVERSE_URL=http://192.168.1.115:28394 trivadis/dataverse-previewers:latest list
The following command can be used to deploy some of/all supported previewers of the instance represented by the DATAVERSE_URL. The container will first check and wait for the instance to be available (important if used during bootstrapping).
docker run -ti -e DATAVERSE_URL=http://192.168.1.115:28394 -e PREVIEWERS_PROVIDER_URL=http://192.168.1.115:28395 -e REMOVE_EXISTING=true -e INCLUDE_PREVIEWERS="text,html" trivadis/dataverse-deploy-previewers:latest deploy
The following environment variables are supported
DATAVERSE_URL - the url of the Dataverse instancePREVIEWERS_PROVIDER_URL - the url of the Dataverse PreviewerINCLUDE_PREVIEWERS - a comma-separted list of previewers to install. if left empty or not defined, then all previewers will be installed.EXCLUDE_PREVIEWERS - a comma-spearted list of previewers to include from the install. Only applicable, if INCLUDE_PREVIEWERS is empty or not defined.REMOVE_EXISTING -The following command can be used to remove all the previewers of the instance represented by the DATAVERSE_URL. The container will first check and wait for the instance to be available (important if used during bootstrapping).
docker run -ti -e DATAVERSE_URL=http://192.168.1.115:28394 trivadis/dataverse-deploy-previewers:latest remove
Content type
Image
Digest
sha256:27a005baa…
Size
59.9 MB
Last updated
almost 2 years ago
docker pull trivadis/dataverse-deploy-previewers