Skip to content
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

feat(docker): Avoid rebuilding images available #160

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

caviri
Copy link
Contributor

@caviri caviri commented Jun 24, 2024

If a component image is already built, then the workflow will create a new container based on that image.

I modified iinstance_name to container_name to follow docker's naming.

@caviri caviri requested a review from sabinem June 24, 2024 14:32
Copy link
Contributor

@sabinem sabinem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caviri Please correct to self.container_names. I am just wondering whether the code would run correctly as you used one time self.container_names and the other times self.container_name. I did not test this PR by itself.

odtp/workflow.py Outdated Show resolved Hide resolved
odtp/workflow.py Outdated Show resolved Hide resolved
@caviri caviri requested a review from sabinem June 26, 2024 18:58
@caviri
Copy link
Contributor Author

caviri commented Jun 26, 2024

Hello @sabinem, you are right. I applied the modification and solved a conflict.


self.image_names.append(image_name)
self.repo_urls.append(repo_link)
self.commits.append(commit_hash)
self.instance_names.append(image_name)
self.container_names.append(step_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix: I think here it should be image_name:

self.container_names.append(image_name)

odtp/workflow.py Show resolved Hide resolved
Copy link
Contributor

@sabinem sabinem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caviri looks good to me: approved

Copy link
Contributor

@sabinem sabinem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caviri This looks correct now.

@caviri caviri merged commit 17b368c into develop Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants