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

Allow images without entrypoint with -e #112

Merged
merged 2 commits into from
Oct 26, 2020
Merged

Allow images without entrypoint with -e #112

merged 2 commits into from
Oct 26, 2020

Conversation

DiegoPomares
Copy link
Contributor

Currently the only way around this is to create yaml file manually.

@codecov-io
Copy link

codecov-io commented Oct 23, 2020

Codecov Report

Merging #112 into master will decrease coverage by 0.17%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
- Coverage   45.31%   45.13%   -0.18%     
==========================================
  Files          15       15              
  Lines         715      720       +5     
==========================================
+ Hits          324      325       +1     
- Misses        362      366       +4     
  Partials       29       29              
Impacted Files Coverage Δ
cmd/install.go 7.04% <33.33%> (ø)
cmd/search.go 3.84% <0.00%> (-0.70%) ⬇️
packages/package.go 61.62% <0.00%> (+0.45%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d68442a...c4cb3e5. Read the comment docs.

cmd/install.go Outdated
if imageInspect.Config.Entrypoint == nil {
return fmt.Errorf("the image '%s' is not compatible with Whalebrew: it does not have an entrypoint", imageName)
if imageInspect.Config.Entrypoint == nil && customEntrypoint == "" {
return fmt.Errorf("The image '%s' does not have an entrypoint, please provide a custom entrypoint", imageName)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we inform how to do so?

Suggested change
return fmt.Errorf("The image '%s' does not have an entrypoint, please provide a custom entrypoint", imageName)
return fmt.Errorf("The image '%s' does not have an entrypoint, please provide a custom entrypoint adding '--entrypoint my-program'", imageName)

@tjamet
Copy link
Contributor

tjamet commented Oct 25, 2020

Awesome contrib! thanks!
Indeed, --entrypoint is available and it makes total sense to handle it even when there is no entrypoint in the image.
Tell me your thoughts on the suggestion and I will proceed to merging this PR

@DiegoPomares
Copy link
Contributor Author

Implemented your suggestion :)

@tjamet
Copy link
Contributor

tjamet commented Oct 26, 2020

thanks! va dentro!

@tjamet tjamet merged commit 79c1fbf into whalebrew:master Oct 26, 2020
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.

3 participants