Hello, team. If the recipe contains a password, it...
# ingestion
b
Hello, team. If the recipe contains a password, it says below that we can define the password as a variable (e.g. 
${MSSQL_PASSWORD}
). https://datahubproject.io/docs/metadata-ingestion#handling-sensitive-information-in-recipes Where can I define this variable? I created a .env file in the same directory as the recipe yml file with reference to docker-compose, but it didn't work.
s
We do not read
.env
file. You will have to set environment variables. The exact syntax for setting environment variables differs a bit depending on the Operating system. You should be able to find out easily through a search
b
Thank you for reply. I use the docker image (datahub-ingestion). In this case, I think that we should set environment variables using ENV in Dockerfile when datahub-ingestion image is built. Is it right?
s
You don't have to do that when building the image. If you are using
docker run
to run the docker image then you can use
--env-file
to pass the name of the file as detailed here https://docs.docker.com/engine/reference/commandline/run/
b
Thank you very much. I am going to try it tomorrow!
It works. Thank you for your support.