GIScience / openrouteservice

🌍 The open source route planner api with plenty of features.
https://openrouteservice.org
GNU General Public License v3.0
1.33k stars 379 forks source link

Migration info printed even if using yaml #1768

Open joewragg opened 3 months ago

joewragg commented 3 months ago

Is there an existing issue for this?

Problem description

It seems that the migration info is printed each time I start the application even though I can see it is picking up my yaml config

Proposed solution

Don't print this if config filepath ends in yml or yaml

Additional context

No response

Forum Topic Link

No response

joewragg commented 3 months ago

#################
--
# Container ENV #
#################
✓ CONTAINER_LOG_LEVEL: INFO. Set CONTAINER_LOG_LEVEL=DEBUG for more details.
ⓘ Any config file settings can be overwritten by environment variables.
ⓘ Use 'CONTAINER_LOG_LEVEL=DEBUG' to see the full list of active environment variables for this container.
###########################
# Container sanity checks #
###########################
ⓘ Running container as user ors with id 1000 and group 1000
✓ ORS_HOME: /home/ors exists and is writable.
✓ Update the file /home/ors/config/example-ors-config.env with /example-ors-config.env
✓ Update the file /home/ors/config/example-ors-config.yml with /example-ors-config.yml
✓ Using the existing ors-config.yml from: /home/ors/config/ors-config.yml
ⓘ Default to graphs folder: /home/ors/graphs
ⓘ Any ENV variables will have precedence over configuration variables from config files.
✓ All checks passed. For details set CONTAINER_LOG_LEVEL=DEBUG.
#####################################
# Container file system preparation #
#####################################
chown: /home/ors/graphs: Operation not permitted
chown: /home/ors/graphs: Operation not permitted
chown: /home/ors/files: Operation not permitted
chown: /home/ors/files: Operation not permitted
chown: /home/ors/logs: Operation not permitted
chown: /home/ors/logs: Operation not permitted
chown: /home/ors/elevation_cache: Operation not permitted
chown: /home/ors/elevation_cache: Operation not permitted
✓ Update the file /home/ors/files/example-heidelberg.osm.gz with /heidelberg.osm.gz
✓ Container file system preparation complete. For details set CONTAINER_LOG_LEVEL=DEBUG.
#######################################
# Prepare CATALINA_OPTS and JAVA_OPTS #
#######################################
✓ CATALINA_OPTS and JAVA_OPTS ready. For details set CONTAINER_LOG_LEVEL=DEBUG.
ⓘ ##########################################
ⓘ # Config options and migration information #
ⓘ ##########################################
ⓘ >>> Migration information <<<
⚠ Configuring ors with a .json config is deprecated and will be removed in the future.
ⓘ You can use the ors-config-migration tool to migrate your .json config to .yml: https://github.com/GIScience/ors-config-migration#usage
ⓘ >>> Config options <<<
ⓘ You have the following options to configure ORS:
ⓘ Method 1 yml config:
ⓘ > docker cp ors-container-name:/home/ors/config/example-ors-config.yml ./ors-config.yml
ⓘ > docker run --name example-ors-instance-conf-file -e ORS_CONFIG_LOCATION=/home/ors/config/ors-config.yml -v $(pwd)/ors-config.yml:/home/ors/config/ors-config.yml openrouteservice/openrouteservice:latest
ⓘ Method 2 environment variables:
ⓘ > docker cp ors-container-name:/home/ors/config/example-ors-config.env ./ors-config.env
ⓘ > docker run --name example-ors-instance-env-file --env-file ors-config.env openrouteservice/openrouteservice:latest
ⓘ >>> End of migration information <<<
`