Hi Ram,
that is interesting, I never experienced such an issue. That said,
- what do you mean by replace? DB_HOST should not have a pre-defined value.
- How do you access those values, and where?
Keep in mind: If you enter
${my.env.var}
in the
server.xml
file, it looks for environment variables with the following names:
-
my.env.var
-
my_env_var
-
MY_ENV_VAR
You only need the ${env.} prefix for 19.0.0.3 and earlier.
HTH,
Ben
------------------------------
------------------------------
Benjamin Marwell
System Engineer // IBM Champion // Apache Shiro PMC
Finanz Informatik
------------------------------
------------------------------
Original Message:
Sent: Tue June 14, 2022 02:18 PM
From: ram mohan
Subject: Datasource credentials in IBM Liberty Docker container
We are migrating to IBM Liberty from IBM ND, created an image based on "22.0.0.5-full-java11-openj9
", unable to replace ENV variables while creating the container(docker run -e DB_HOST=xxx), any recommendation?
------------------------------
ram mohan
------------------------------