Hi mentors and students,
I have a couple of questions with regards to the use of nginx.jsonnet.
1. In my understanding, jsonnet is used to generate yaml files in kapitan, such as in all the examples from https://github.com/ademariag/kapitan-examples
(thanks to Pranav for mentioning): as for all other files such as .md and .sh, we use jinja2 templates because they are not well-formed JSON or YAML.
Since nginx.conf is definitely not JSON or YAML, I'm thinking we should use jinja2 templates. But in that case, what is the use of components/nginx/nginx.jsonnet which is given in the task description?
2. Also, should we generate both nginx.conf or default.conf or both?
Another point is on docker: when I ran
docker run -t --rm -v $(pwd):/src:delegated deepmind/kapitan compile
as recommended in the README.md, which runs just fine and compiles, the compiled folder generated within the container and mapped back to the host machine is owned by root and not the user who ran docker, so every time I need to chown/chmod to see the contents of compiled. Are we expected to create our own container on top of deepmind/kapitan image that creates non-root user in the container prior to running compile, or am I doing something wrong?
I referred to this issue and other sources on this docker problem.
Thank you so much for helping out!