-
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve addresses in ARGs passed to COPY (#20989)
This MR will resolve addresses passed to COPY through an ARG. This MR also add inference of bare files. The existing Docker integration allows copying `package` targets into the docker container, but requires specifying the anticipated output path. This is confusing. This MR also add inference of bare files. For example, the following now works: ```Dockerfile FROM python:3.9 ARG PEX_BIN="testprojects/src/python/hello/main:main" ARG PEX_BIN_DOTTED_PATH="testprojects.src.python.native/main.pex" COPY ${PEX_BIN} /app/pex_bin COPY $PEX_BIN_DOTTED_PATH /app/pex_var COPY testprojects.src.python.native/main.pex /app/pex_bin_dotted_path ``` This MR also add inference of bare files. I thought that the docs were broken but I just missed that you needed a manual link but I already implemented it so why not push. ```Dockerfile FROM python:3.9 COPY testprojects/src/docker/file.txt /app/ ``` closes #20718
- Loading branch information
Showing
12 changed files
with
329 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.