Skip to content

Docker updates

backups requested to merge VIVO-3786-3822-docker-updates into main

Created by: ghost

This is a follow-on PR to https://github.com/vivo-project/VIVO/pull/3839 and can be handled two ways; review this PR in place of https://github.com/vivo-project/VIVO/pull/3839 or maintain commits of branched PR by not squash merging.

VIVO GitHub issue: https://github.com/vivo-project/VIVO/issues/3822 and https://github.com/vivo-project/VIVO/issues/3786

Also related to https://github.com/vivo-project/VIVO/issues/3698 as the docker deployment supports specifying the Tomcat webapp context path.

What does this pull request do?

  • Improves docker image
    • not running tomcat as root
    • affords specifying webapp context path
    • supports loading sample data on reset of home
    • provides a subset of runtime properties to be defined on startup via environment variables
  • Affords substitution of context.xml variables
    • vitro/rootUserAddress
    • vitro/defaultNamespace

What's new?

Updates to the Dockerfile, docker-compose.yml, and start.sh script among other deployment related configuration files.

How should this be tested?

See README.md

Interested parties

@chenejac

Merge request reports