-
Notifications
You must be signed in to change notification settings - Fork 544
Feat pull images before teardown containers on up command #1298
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
base: main
Are you sure you want to change the base?
Conversation
86de1ab to
276a781
Compare
Signed-off-by: Songmin Li <lisongmin@protonmail.com>
When both image and build section exist, and the image starts with "localhost/", podman-compose tries to pull the image, which is not expected. Signed-off-by: Songmin Li <lisongmin@protonmail.com>
|
Seems good. Why this is not yet merged? |
| log.error("Build command failed") | ||
| if not args.dry_run: | ||
| return build_exit_code | ||
| return build_exit_code |
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.
Rather large commit just to fix pylint warnings
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.
I got the following warning from pylint:
podman_compose.py:3215:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
podman_compose.py:3220:12: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
podman_compose.py:3283:0: R0911: Too many return statements (7/6) (too-many-return-statements)
And since build image and pull image are both prepare images before running, I split it out to the prepare_images.
Any idea to fix the warning with less changes?
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.
Hi, p12tic,
I just split the last commit into two commits, but i don't know if this is what you want.
Please check it.
Signed-off-by: Songmin Li <lisongmin@protonmail.com>
Signed-off-by: Songmin Li <lisongmin@protonmail.com>
276a781 to
3a42866
Compare
This PR reduces services downtime by pulling images before teardown containers on up command.