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

chore: print the docker-bake targets for linux #530

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

lemeurherve
Copy link
Member

@lemeurherve lemeurherve commented Oct 18, 2023

Similar what has been added to the Windows logs with #461, this PR shows the output of docker buildx -f docker-bake.hcl --print linux before building or publishing Linux images (but not before testing, should already been shown previously), listing all their info.

Example of output:
{
   "group": {
     "default": {
       "targets": [
         "linux"
       ]
     },
     "linux": {
       "targets": [
         "alpine_jdk11",
         "alpine_jdk17",
         "alpine_jdk21",
         "archlinux_jdk11",
         "debian_jdk11",
         "debian_jdk17",
         "debian_jdk21"
       ]
     }
   },
   "target": {
     "alpine_jdk11": {
       "context": ".",
       "dockerfile": "alpine/Dockerfile",
       "args": {
         "ALPINE_TAG": "3.18.4",
         "JAVA_VERSION": "11.0.20.1_1",
         "VERSION": "3160.vd76b_9ddd10cc"
       },
       "tags": [
         "docker.io/jenkins/agent:alpine-jdk11",
         "docker.io/jenkins/agent:alpine3.18-jdk11",
         "docker.io/jenkins/agent:latest-alpine-jdk11",
         "docker.io/jenkins/agent:latest-alpine3.18-jdk11"
       ],
       "platforms": [
         "linux/amd64"
       ],
       "output": [
         "type=docker"
       ]
     },
     "alpine_jdk17": {
       "context": ".",
       "dockerfile": "alpine/Dockerfile",
       "args": {
         "ALPINE_TAG": "3.18.4",
         "JAVA_VERSION": "17.0.8.1_1",
         "VERSION": "3160.vd76b_9ddd10cc"
       },
       "tags": [
         "docker.io/jenkins/agent:alpine",
         "docker.io/jenkins/agent:alpine3.18",
         "docker.io/jenkins/agent:alpine-jdk17",
         "docker.io/jenkins/agent:alpine3.18-jdk17",
         "docker.io/jenkins/agent:latest-alpine",
         "docker.io/jenkins/agent:latest-alpine3.18",
         "docker.io/jenkins/agent:latest-alpine-jdk17",
         "docker.io/jenkins/agent:latest-alpine3.18-jdk17"
       ],
       "platforms": [
         "linux/amd64"
       ],
       "output": [
         "type=docker"
       ]
     },
     "alpine_jdk21": {
       "context": ".",
       "dockerfile": "alpine/21/Dockerfile",
       "args": {
         "ALPINE_TAG": "3.18.4",
         "JAVA_VERSION": "21+35",
         "VERSION": "3160.vd76b_9ddd10cc"
       },
       "tags": [
         "docker.io/jenkins/agent:alpine-jdk21-preview",
         "docker.io/jenkins/agent:alpine3.18-jdk21-preview",
         "docker.io/jenkins/agent:latest-alpine-jdk21-preview",
         "docker.io/jenkins/agent:latest-alpine3.18-jdk21-preview"
       ],
       "platforms": [
         "linux/amd64",
         "linux/arm64"
       ],
       "output": [
         "type=docker"
       ]
     },
     "archlinux_jdk11": {
       "context": ".",
       "dockerfile": "archlinux/Dockerfile",
       "args": {
         "JAVA_VERSION": "11.0.20.1_1",
         "VERSION": "3160.vd76b_9ddd10cc"
       },
       "tags": [
         "docker.io/jenkins/agent:archlinux",
         "docker.io/jenkins/agent:latest-archlinux",
         "docker.io/jenkins/agent:archlinux-jdk11",
         "docker.io/jenkins/agent:latest-archlinux-jdk11"
       ],
       "platforms": [
         "linux/amd64"
       ],
       "output": [
         "type=docker"
       ]
     },
     "debian_jdk11": {
       "context": ".",
       "dockerfile": "debian/Dockerfile",
       "args": {
         "DEBIAN_RELEASE": "bookworm-20230904",
         "JAVA_VERSION": "11.0.20.1_1",
         "VERSION": "3160.vd76b_9ddd10cc"
       },
       "tags": [
         "docker.io/jenkins/agent:bookworm-jdk11",
         "docker.io/jenkins/agent:jdk11",
         "docker.io/jenkins/agent:latest-bookworm-jdk11",
         "docker.io/jenkins/agent:latest-jdk11"
       ],
       "platforms": [
         "linux/amd64",
         "linux/arm64",
         "linux/arm/v7",
         "linux/s390x",
         "linux/ppc64le"
       ],
       "output": [
         "type=docker"
       ]
     },
     "debian_jdk17": {
       "context": ".",
       "dockerfile": "debian/Dockerfile",
       "args": {
         "DEBIAN_RELEASE": "bookworm-20230904",
         "JAVA_VERSION": "17.0.8.1_1",
         "VERSION": "3160.vd76b_9ddd10cc"
       },
       "tags": [
         "docker.io/jenkins/agent:bookworm-jdk17",
         "docker.io/jenkins/agent:jdk17",
         "docker.io/jenkins/agent:latest",
         "docker.io/jenkins/agent:latest-bookworm",
         "docker.io/jenkins/agent:latest-bookworm-jdk17",
         "docker.io/jenkins/agent:latest-jdk17"
       ],
       "platforms": [
         "linux/amd64",
         "linux/arm64",
         "linux/arm/v7",
         "linux/ppc64le"
       ],
       "output": [
         "type=docker"
       ]
     },
     "debian_jdk21": {
       "context": ".",
       "dockerfile": "debian/21/Dockerfile",
       "args": {
         "DEBIAN_RELEASE": "bookworm-20230904",
         "JAVA_VERSION": "21+35",
         "VERSION": "3160.vd76b_9ddd10cc"
       },
       "tags": [
         "docker.io/jenkins/agent:bookworm-jdk21-preview",
         "docker.io/jenkins/agent:jdk21-preview",
         "docker.io/jenkins/agent:latest-bookworm-jdk21-preview",
         "docker.io/jenkins/agent:latest-jdk21-preview"
       ],
       "platforms": [
         "linux/amd64",
         "linux/arm64",
         "linux/ppc64le",
         "linux/s390x",
         "linux/arm/v7"
       ],
       "output": [
         "type=docker"
       ]
     }
   }
 }

Testing done

https://ci.jenkins.io/job/Packaging/job/docker-agent/job/PR-530/5/

Submitter checklist

@lemeurherve lemeurherve changed the title chore: add a step to print the docker-bake target for linux chore: print the docker-bake target for linux Oct 18, 2023
@lemeurherve lemeurherve changed the title chore: print the docker-bake target for linux chore: print the docker-bake targets for linux Oct 18, 2023
@lemeurherve lemeurherve marked this pull request as ready for review October 18, 2023 10:25
@lemeurherve lemeurherve requested a review from a team as a code owner October 18, 2023 10:25
@dduportal dduportal merged commit 229a675 into jenkinsci:master Oct 19, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants