jf rt docker-push
and jf rt podman-push
create circular dependency chains
#1345
Labels
bug
Something isn't working
Describe the bug
Using JF CLI to push a container image that defines the ENTRYPOINT or MAINTAINERS in the last layer assumes that every layer of the image is a dependency of the JFrog Build.
Current behavior
3 CASES
ENTRYPOINT or MAINTAINERS First
With this Dockerfile:
The JFrog Build in Artifactory will list
This feels correct. This is what should happen all the time.
ENTRYPOINT or MAINTAINERS Last
With this Dockerfile:
The JFrog Build in Artifactory will list
That results in the layers of the image built (the JFrog Build's artifacts) being dependencies of themselves.
No ENTRYPOINT or MAINTAINERS defined
With this Dockerfile:
The JFrog Build in Artifactory will list
That results in lack of dependency tracking.
Reproduction steps
With the following commands:
Compare the layers listed as artifacts versus the layers listed as dependencies in the JFrog Build for each of 3 Dockerfiles (ENTRYPOINT last, ENTRYPOINT first, no ENTRYPOINT).
Expected behavior
JF CLI should accurately track layers of the base image as dependencies of the JFrog Build regardless of where/if ENTRYPOINT or MAINTAINERS is defined.
JFrog CLI-Core version
v2.57.7
JFrog CLI version (if applicable)
jf version 2.73.2
Operating system type and version
Fedora-flavored Linux (RHEL and AlmaLinux) version 9, and Windows Server 2019
JFrog Artifactory version
7.98.14
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered: