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

Always pull images in local runner #279

Merged
merged 4 commits into from
Jul 6, 2023
Merged

Conversation

RobbeSneyders
Copy link
Member

@RobbeSneyders RobbeSneyders commented Jul 6, 2023

Fixes #259

This PR:

  • Instructs the local runner to always pull images. This makes sure that moving tags like dev or latest are up to date before running the pipeline. As far as I can tell from my testing, this doesn't cause a noticeable delay when the image was not updated.
  • Adds the pipeline name to the docker compose yaml and removes orphan containers. Containers are namespaced by the pipeline name, which defaults to the cwd if not specified. So I set the name explicitly so we don't accidentally remove containers from another pipeline.

@RobbeSneyders RobbeSneyders changed the title Feature/pull always Always pull images in local runner Jul 6, 2023
Copy link
Contributor

@PhilippeMoussalli PhilippeMoussalli left a comment

Choose a reason for hiding this comment

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

Thanks Robbe! Seems like there are still some issues related to some tests that have failed

@RobbeSneyders
Copy link
Member Author

Yeah, I forgot to remove a change I made to make sure the tests fail in the right scenario 😛

@RobbeSneyders RobbeSneyders merged commit c180686 into main Jul 6, 2023
@RobbeSneyders RobbeSneyders deleted the feature/pull-always branch July 6, 2023 12:48
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
Fixes #259 

This PR:
- Instructs the local runner to always pull images. This makes sure that
moving tags like `dev` or `latest` are up to date before running the
pipeline. As far as I can tell from my testing, this doesn't cause a
noticeable delay when the image was not updated.
- Adds the pipeline name to the docker compose yaml and removes orphan
containers. Containers are namespaced by the pipeline name, which
defaults to the cwd if not specified. So I set the name explicitly so we
don't accidentally remove containers from another pipeline.
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.

Direct the runners to always pull images
2 participants