GitHub user PierreLoren edited a discussion: How to pass environment variables 
to Hop Server instead of using env.json?

I am running Hop Server in a Docker container to execute workflows and 
pipelines through the REST API.
Currently, I provide environment variable configuration by mounting a parameter 
file project-docker-env.json.

I would like to configure these variables directly through system environment 
variables instead.

I tried setting the HOP_RUN_PARAMETERS parameter like this:
HOP_RUN_PARAMETERS=PG_in1_hostname=host.docker.internal,PG_in1_port=5432,PG_in1_username=postgres
Unfortunately, when I start a process on Hop Server, the declared variables are 
not recognized, and I get errors such as
src_tab.0 - Unable to parse URL 
jdbc:postgresql://${PG_in1_hostname}:${PG_in1_port}/${PG_in1_database}
How can I correctly pass such settings to Hop Server?

volumes:
    - ./logs:/files/logs
    - 
./docker-env.json:/files/config/projects/HOPTranslation/project-docker-env.json
environment:
    - HOP_ENVIRONMENT_NAME=HT_Prod
    - 
HOP_ENVIRONMENT_CONFIG_FILE_NAME_PATHS=/files/config/projects/HOPTranslation/project-docker-env.json

GitHub link: https://github.com/apache/hop/discussions/5684

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@hop.apache.org

Reply via email to