Define process environment variables in the .yml file (e.g. QAT.yml) tokenizer links Azure Vault to .yml
Dockerfile runs a shell script CMD [ “./docker-node-env.sh” ] which scapes through the process environment variables (handed over from k8) and builds *.env file for node with all the "REACTAPP#" environment variables listed.
Goal:
CMD [ “./docker-node-env.sh” ]
which scapes through the process environment variables (handed over from k8) and builds *.env file for node with all the "REACTAPP#" environment variables listed.Generating shell script https://medium.com/@vietgoeswest/passing-env-variables-from-the-server-to-your-create-react-app-c87578a45358
Example k8 file https://github.com/NewOrbit/Experian.ExVerifier.Microservices/blob/develop/Services/Api/Deployment/EBC/QAT/QAT.yaml
also helpful https://github.com/facebook/create-react-app/issues/982
setting up env with CRA https://medium.com/@tacomanator/environments-with-create-react-app-7b645312c09d
Dockerizing a Node.js web app https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
Passing environment variables from Docker to Node https://medium.com/@felipedutratine/pass-environment-variables-from-docker-to-my-nodejs-or-golang-app-a1f2ddec31f5