-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add template interpretation in config #3782
Conversation
b568c29
to
719ee36
Compare
@@ -199,7 +199,7 @@ def post(self, command, output_dir, vars_): | |||
""" | |||
|
|||
if os.name == 'posix': | |||
for file_ in ("docker-run", "docker-compose-run"): | |||
for file_ in ("docker-run", "docker-compose-run", "bin/eval-templates"): | |||
dest = os.path.join(output_dir, "CONST_create_template", file_) | |||
subprocess.check_call(["chmod", "+x", dest]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smells like déjà vu. Please refactor into a function.
find / -name *.tmpl -print | while read file | ||
do | ||
envsubst < ${file} > ${file%.tmpl} | ||
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arn't you missing the exec "$@"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To do what? I don't have anything to exec ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not used as an entrypoint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but in the config container, than he hasn't any other "entry point"...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By not putting an exec in there, you make the life of the dev wanting to debug this image harder... anyway, not a big deal...
#!/bin/bash | ||
set -e | ||
|
||
find / -name *.tmpl -print | while read file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that a bit slow to search at the root of the fs?
eb9539c
to
5248df5
Compare
No description provided.