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

fix(staged-dockerfile): correction for ENV and ARG instructions handling #5195

Merged
merged 2 commits into from Jan 20, 2023

Conversation

distorhead
Copy link
Member

  1. ARG should affect all RUN instruction digests which defined after ARG.
  2. ARG could be used in the ENV instruction expansion.
  3. ARG should not be expanded in the RUN instruction statically, instead expand it in runtime.

Internally args should be passed as env vars when running RUN instructions.

Signed-off-by: Timofey Kirillov timofey.kirillov@flant.com

@distorhead distorhead marked this pull request as draft December 28, 2022 16:22
@distorhead distorhead force-pushed the staged-dockerfile-bug branch 6 times, most recently from 30c0300 to 99f329d Compare January 19, 2023 19:36
1. ARG should affect all RUN instruction digests which defined after ARG.
2. ARG could be used in the ENV instruction expansion.
3. ARG should not be expanded in the RUN instruction statically, instead expand it in runtime.

Internally args should be passed as env vars when running RUN instructions.

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
… for unit test

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
@distorhead distorhead marked this pull request as ready for review January 20, 2023 06:41
@distorhead distorhead merged commit b329536 into main Jan 20, 2023
@distorhead distorhead deleted the staged-dockerfile-bug branch January 20, 2023 06:41
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.

None yet

1 participant