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: use podman for building custom images if executable is found #1101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Soumil-07
Copy link
Contributor

No description provided.

@github-actions
Copy link

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@github-actions github-actions bot added the feat label Oct 26, 2023
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 14.90%. Comparing base (14357a9) to head (9ee0a17).

Files Patch % Lines
common/utils.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1101      +/-   ##
==========================================
- Coverage   14.91%   14.90%   -0.01%     
==========================================
  Files          90       90              
  Lines        8380     8384       +4     
==========================================
  Hits         1250     1250              
- Misses       6805     6809       +4     
  Partials      325      325              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if err == nil {
return "podman"
}
return "docker"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also log a message at level info here that "Couldn't find Podman executable in the directories named by the PATH environment variable. Using Docker as the container runtime.

// GetDefaultContainerRuntime returns the preferred container runtime of the host
func GetDefaultContainerRuntime() string {
_, err := exec.LookPath("podman")
if err == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we log a message at level info here that "Podman executable found in the directories named by the PATH environment variable. Using Podman as the container runtime.

@Soumil-07 Soumil-07 marked this pull request as ready for review December 13, 2023 10:17
@HarikrishnanBalagopal HarikrishnanBalagopal added the lfx-project https://lfx.linuxfoundation.org/tools/mentorship/ label Dec 13, 2023
@shashank381
Copy link
Contributor

Raised a new PR for this feat. #1157

Work done in this PR:

cc: @Akash-Nayak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat lfx-project https://lfx.linuxfoundation.org/tools/mentorship/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use libpod instead of requiring external podman binary Implement Podman support for move2kube
4 participants