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

Dockerfile path can no longer be an HTTP(S) address #803

Closed
willcro opened this issue Oct 4, 2019 · 1 comment · Fixed by #804
Closed

Dockerfile path can no longer be an HTTP(S) address #803

willcro opened this issue Oct 4, 2019 · 1 comment · Fixed by #804
Labels
area/cli bugs related to kaniko CLI kind/bug Something isn't working priority/p2 High impact feature/bug. Will get a lot of users happy

Comments

@willcro
Copy link

willcro commented Oct 4, 2019

Actual behavior
Kaniko attempts to resolve any URL as a relative path. This causes an error since the directory doesn't exist.

Expected behavior
If a URL is passed as the --dockerfile argument, it should make a GET request to fetch the Dockerfile. The downloaded Dockerfile should then be used for the build.

To Reproduce
Steps to reproduce the behavior:

  1. kaniko --context . --dockerfile https://example.com/dockerfile --no-push
  2. error building image: reading dockerfile at path /https:/example.com/dockerfile: open /https:/example.com/dockerfile: no such file or directory

Additional Information

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
@tejal29 tejal29 added area/documentation For all bugs related to documentation meta/internal area/cli bugs related to kaniko CLI kind/enhancement New feature or request priority/p3 agreed that this would be good to have, but no one is available at the moment. kind/bug Something isn't working priority/p2 High impact feature/bug. Will get a lot of users happy and removed area/documentation For all bugs related to documentation meta/internal kind/enhancement New feature or request priority/p3 agreed that this would be good to have, but no one is available at the moment. labels Oct 4, 2019
@tejal29
Copy link
Member

tejal29 commented Oct 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli bugs related to kaniko CLI kind/bug Something isn't working priority/p2 High impact feature/bug. Will get a lot of users happy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants