Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use geonetwork.dir environment variable over custom data_dir #41

Open
pvgenuchten opened this issue Jan 31, 2020 · 0 comments
Open

use geonetwork.dir environment variable over custom data_dir #41

pvgenuchten opened this issue Jan 31, 2020 · 0 comments

Comments

@pvgenuchten
Copy link

pvgenuchten commented Jan 31, 2020

Current image has a docker-only param DATA_DIR which sets geonetwork.dir as a java environment parameter in a deploy script

export CATALINA_OPTS="$CATALINA_OPTS -Dgeonetwork.dir=$DATA_DIR"

In stead would be better to use the mechanism available in geonetwork to set the data directory with environment variable by using

docker run -e genoetwork.dir=/mnt/gn

Java environment variable takes preference over system environment variable, so you can not override data_dir by geonetwork.dir (data_dir takes default value if not set)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant