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

Parsing ARG varibales #580

Merged
merged 1 commit into from Mar 17, 2020
Merged

Conversation

ForgetMe17
Copy link
Contributor

Replace the arg varibles in the dockerfile if known.

Work towards #508.

Signed-off-by: WangJL hazard15020@gmail.com

@nishakm
Copy link
Contributor

nishakm commented Mar 13, 2020

@ForgetMe17 could you update your commit message?

Parsing ARG varibales --> variables

Replace the arg varibles --> variables in the dockerfile if known.

Work towards #508.

tern/analyze/docker/dockerfile.py Outdated Show resolved Hide resolved
@ForgetMe17
Copy link
Contributor Author

Thanks for your review. Sorry for the misspelling, i will be more careful.

@nishakm nishakm requested a review from rnjudge March 16, 2020 12:51
@nishakm
Copy link
Contributor

nishakm commented Mar 16, 2020

@ForgetMe17 no worries! You're doing great! One request I would like to make is to add more description about what you did to resolve the issue in the commit message. It's a significant change and a lot of work :)

Replace the arg variables in the dockerfile if known.

In tern/analyze/docker/dockerfile.py, add function expand_arg
which finds the defination of ARG variables and replace them
using function replace_env.

Add test dockerfile tests/dockerfiles/buildpack_deps_jessie_arg.

Add a testcase in tests/dockerfiles/buildpack_deps_jessie_arg.:

Work towards tern-tools#508.

Signed-off-by: WangJL <hazard15020@gmail.com>
@nishakm
Copy link
Contributor

nishakm commented Mar 17, 2020

@rnjudge OK to merge?

@rnjudge
Copy link
Contributor

rnjudge commented Mar 17, 2020

@rnjudge OK to merge?

LGTM!

@nishakm nishakm merged commit 69f1b45 into tern-tools:master Mar 17, 2020
@ForgetMe17 ForgetMe17 deleted the pin_arg_command branch April 18, 2020 05:53
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

3 participants