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 support for specific Docker tag in spawn_data_pipeline.py #553
Add support for specific Docker tag in spawn_data_pipeline.py #553
Conversation
I have fixed the |
Example output with data-pipeline:
|
Could we restrict the change of the tag to images starting with Maybe we should go for the JSON-e solution in the future, so that things are more clearly defined and nothing unexpected can happen. |
Let's file an issue about this so we don't forget. |
Yes we could, I will update this PR
If I remember correctly we cannot as it is already a JSON-E template given to the hook definition |
Right :( |
msg = ( | ||
"Don't update image {} for task {} as it already has a tag" | ||
) | ||
print(msg.format(base_image, task_internal_id)) |
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.
Nit: you could use a f-string here...
|
||
new_image = "{}:{}".format(tagless_image, docker_tag) | ||
msg = "Updating image for task {} to {}" | ||
print(msg.format(task_internal_id, new_image)) |
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.
...and here.
Reverts #499