From 1438546f4839640845b208b1404552d349d610d0 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Thu, 28 May 2026 15:32:25 +0700 Subject: [PATCH] feat(oraclejdk): rename image to oraclejdk and expand OCI image-spec labels Convention B (Docker-Hub-style :) mirrors the just-shipped couchbase rename. Workflow images/tags/subject-name flip from oraclejdk-8 to oraclejdk; 8 major-line alias added. Both metadata-action labels: block and Dockerfile LABEL lines carry the same 5 OCI image-spec keys so manual and CI builds match. License: LicenseRef-Oracle-BCL (Oracle Binary Code License covered 8u201 binaries; SPDX has no exact identifier, custom ref is the compliant escape hatch). --- .github/workflows/publish-oraclejdk-8.yml | 13 ++++++++++--- README.md | 2 +- oraclejdk-8/Dockerfile | 5 +++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-oraclejdk-8.yml b/.github/workflows/publish-oraclejdk-8.yml index 339f1a5..1f5d25e 100644 --- a/.github/workflows/publish-oraclejdk-8.yml +++ b/.github/workflows/publish-oraclejdk-8.yml @@ -40,11 +40,18 @@ jobs: uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: | - ${{ secrets.DOCKER_USERNAME }}/oraclejdk-8 - ghcr.io/${{ github.actor }}/oraclejdk-8 + ${{ secrets.DOCKER_USERNAME }}/oraclejdk + ghcr.io/${{ github.actor }}/oraclejdk tags: | type=raw,value=latest + type=raw,value=8 type=raw,value=8u201 + labels: | + org.opencontainers.image.title=Oracle JDK 8 + org.opencontainers.image.description=Legacy Oracle JDK 8u201 (archived Oracle build, no upstream OCI image) + org.opencontainers.image.version=8u201 + org.opencontainers.image.source=https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html + org.opencontainers.image.licenses=LicenseRef-Oracle-BCL - name: Build and push Docker images id: push @@ -58,6 +65,6 @@ jobs: - name: Generate artifact attestation uses: actions/attest-build-provenance@v3 with: - subject-name: ghcr.io/${{ github.actor }}/oraclejdk-8 + subject-name: ghcr.io/${{ github.actor }}/oraclejdk subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true diff --git a/README.md b/README.md index b44fb04..cd61241 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Custom Docker images of legacy/discontinued software — built and published to |-------|-----|-------------|-------| | Couchbase 2.5 | `2.5.2` | [couchbase](https://github.com/tiennm99/docker-images/pkgs/container/couchbase) | Legacy NoSQL; no official image exists | | Gradle 8 | latest | — | JDK 8 + Corretto base | -| Oracle JDK 8 | `8u201` | — | Archived Oracle JDK build | +| Oracle JDK 8 | `8u201` | [oraclejdk](https://github.com/tiennm99/docker-images/pkgs/container/oraclejdk) | Archived Oracle JDK build | | Scribe 2.2 | `2.2` | [scribe](https://github.com/tiennm99/docker-images/pkgs/container/scribe) | Facebook's legacy log aggregation daemon | ## Naming convention diff --git a/oraclejdk-8/Dockerfile b/oraclejdk-8/Dockerfile index 9548bba..ffc6d82 100644 --- a/oraclejdk-8/Dockerfile +++ b/oraclejdk-8/Dockerfile @@ -1,6 +1,11 @@ FROM centos:7 LABEL maintainer="miti99 " +LABEL org.opencontainers.image.title="Oracle JDK 8" +LABEL org.opencontainers.image.description="Legacy Oracle JDK 8u201 (archived Oracle build, no upstream OCI image)" +LABEL org.opencontainers.image.version="8u201" +LABEL org.opencontainers.image.source="https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html" +LABEL org.opencontainers.image.licenses="LicenseRef-Oracle-BCL" ENV LANG=en_US.UTF-8 ENV JAVA_HOME=/usr/java/jdk-8