-
Notifications
You must be signed in to change notification settings - Fork 0
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
#111 Pass tool version to dockerfile #112
Conversation
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
…n-to-dockerfile # Conflicts: # Dockerfile
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
@kkazmierczyk is there a reason why you used CMD (to run the analyzer) before using RUN to build and configure the image? |
@tjanasiewicz are you asking why I used CMD and RUN instead of different ones or rather why in that order? I agree that ENTRYPOINT is better than CMD. I have corrected it already in 0c6dc8f Order of the commands: More about the recommendations: |
… to pip. Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
After further reading of https://docs.docker.com/build/building/best-practices/#entrypoint and https://www.docker.com/blog/docker-best-practices-choosing-between-run-cmd-and-entrypoint/ I believe that CMD is more applicable than ENTRYPOINT. Setting back line 17 to CMD. |
I am asking because from what I understand and what I found in the shared documentation those commands (RUN, CMD) are for different purposes [1]: b) CMD [2]: Also, the example you referred [3] shows the same order. It means first build using RUN (add all references), and after that execute using CMD. [1] https://docs.docker.com/reference/dockerfile/#run |
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
The first two links are references to CMD and RUN instructions. I didn't find any information about order. The 3rd one is pretty interesting. It mentions: IMO, the profit from placing I rolled it back. |
Signed-off-by: Krzysztof Kaźmierczyk <[email protected]>
Fixes #111.
See Contributing.md how to test it.
The patch is built on top of #110 .