gruckion / learning

Learning stuff
0 stars 0 forks source link

Figuring out how to get Azure Key vault values into node as environment variables using K8s and docker #6

Closed gruckion closed 5 years ago

gruckion commented 6 years ago

Goal:

  1. Azure Vault stores API_KEY
  2. Define process environment variables in the .yml file (e.g. QAT.yml) tokenizer links Azure Vault to .yml
  3. 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.
gruckion commented 5 years ago

Conclusion

Docker appears to be automatically parsing it's process variables to the thing it runs via CMD.