Skip to content

Conversation

vivekchavan14
Copy link

  • Added URL detection logic to identify HTTP/HTTPS URLs
  • Implemented file download functionality to fetch Dockerfiles from URLs to temporary files
  • Updated the dockerfile builder to handle temporary files correctly
  • Added comprehensive unit tests

Changes

  • internal/command/deploy/deploy_build.go: Added isURL(), downloadFile() functions and updated resolveDockerfilePath() to handle URLs
  • internal/build/imgsrc/dockerfile_builder.go: Added isDockerfileURL() helper and updated file existence checks
  • internal/command/deploy/dockerfile_url_test.go: Added comprehensive unit tests

Fixes #4464

Change Summary

What and Why:

How:

Related to:


Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

- Add support for downloading Dockerfiles from URLs (http/https)
- Fix issue where URLs were treated as local paths and concatenated with working directory
- Add URL detection and download functionality in resolveDockerfilePath
- Update dockerfile_builder to handle temporary files from downloaded URLs
- Add comprehensive unit tests for URL handling and download functionality

Fixes superfly#4464
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.

flyctl v0.3.149 misinterprets Dockerfile URL in [build] as a local path

1 participant