docker.io/gradle:8.12-jdk21 linux/amd64

docker.io/gradle:8.12-jdk21 - 国内下载镜像源 浏览次数:43
你好! 根据docker容器镜像名称docker.io/gradle,我们可以看到这是一个Gradle构建工具的镜像。

Gradle

Gradle是一个用于自动化构建、测试和发布软件项目的开源构建工具。它提供了许多特性,例如依赖管理、多模块构建、并行构建、测试运行等,使开发人员能够更容易地管理复杂的软件项目。

Gradle支持多种编程语言和框架,包括Java、Kotlin、Scala、Groovy等,并且可以与其他工具和系统集成使用,例如Maven、Ant、Jenkins等。它也是一个非常流行的构建工具之一,被广泛应用在Java生态圈中。

源镜像 docker.io/gradle:8.12-jdk21
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21
镜像ID sha256:ef85b3c34b1e988d1cfe0daba090422bc632dc56b313a6ecd99d71cd1c1f3653
镜像TAG 8.12-jdk21
大小 749.23MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD gradle
启动入口 /__cacert_entrypoint.sh
工作目录 /home/gradle
OS/平台 linux/amd64
浏览量 43 次
贡献者
镜像创建 2024-12-20T17:54:11Z
同步时间 2024-12-26 18:32
更新时间 2025-01-17 23:01
环境变量
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/opt/java/openjdk LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 JAVA_VERSION=jdk-21.0.5+11 GRADLE_HOME=/opt/gradle GRADLE_VERSION=8.12
镜像标签
ubuntu: org.opencontainers.image.ref.name 22.04: org.opencontainers.image.version
镜像安全扫描 查看Trivy扫描报告

系统OS: ubuntu 22.04 扫描引擎: Trivy 扫描时间: 2024-12-26 18:34

低危漏洞:82 中危漏洞:20 高危漏洞:0 严重漏洞:0

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21  docker.io/gradle:8.12-jdk21

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21  docker.io/gradle:8.12-jdk21

Shell快速替换命令

sed -i 's#gradle:8.12-jdk21#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21  docker.io/gradle:8.12-jdk21'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21  docker.io/gradle:8.12-jdk21'

镜像构建历史


# 2024-12-21 01:54:11  0.00B 指定运行容器时使用的用户
USER root
                        
# 2024-12-21 01:54:11  192.70KB 执行命令并创建新的镜像层
RUN |1 GRADLE_DOWNLOAD_SHA256=7a00d51fb93147819aab76024feece20b6b84e420694101f276be952e08bef03 /bin/sh -c set -o errexit -o nounset     && echo "Testing Gradle installation"     && gradle --version # buildkit
                        
# 2024-12-21 01:54:11  0.00B 指定运行容器时使用的用户
USER gradle
                        
# 2024-12-21 01:54:11  151.16MB 执行命令并创建新的镜像层
RUN |1 GRADLE_DOWNLOAD_SHA256=7a00d51fb93147819aab76024feece20b6b84e420694101f276be952e08bef03 /bin/sh -c set -o errexit -o nounset     && echo "Downloading Gradle"     && wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip"         && echo "Checking Gradle download hash"     && echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check -         && echo "Installing Gradle"     && unzip gradle.zip     && rm gradle.zip     && mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/"     && ln --symbolic "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle # buildkit
                        
# 2024-12-21 01:54:11  0.00B 定义构建参数
ARG GRADLE_DOWNLOAD_SHA256=7a00d51fb93147819aab76024feece20b6b84e420694101f276be952e08bef03
                        
# 2024-12-21 01:54:11  0.00B 设置环境变量 GRADLE_VERSION
ENV GRADLE_VERSION=8.12
                        
# 2024-12-21 01:54:11  156.37MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -o errexit -o nounset     && apt-get update     && apt-get install --yes --no-install-recommends         unzip         wget                 bzr         git         git-lfs         mercurial         openssh-client         subversion     && rm --recursive --force /var/lib/apt/lists/*         && echo "Testing VCSes"     && which bzr     && which git     && which git-lfs     && which hg     && which svn # buildkit
                        
# 2024-12-21 01:54:11  0.00B 设置工作目录为/home/gradle
WORKDIR /home/gradle
                        
# 2024-12-21 01:54:11  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/home/gradle/.gradle]
                        
# 2024-12-21 01:54:11  333.72KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -o errexit -o nounset     && echo "Adding gradle user and group"     && groupadd --system --gid 1000 gradle     && useradd --system --gid gradle --uid 1000 --shell /bin/bash --create-home gradle     && mkdir /home/gradle/.gradle     && chown --recursive gradle:gradle /home/gradle     && chmod --recursive o+rwx /home/gradle         && echo "Symlinking root Gradle cache to gradle Gradle cache"     && ln --symbolic /home/gradle/.gradle /root/.gradle # buildkit
                        
# 2024-12-21 01:54:11  0.00B 设置环境变量 GRADLE_HOME
ENV GRADLE_HOME=/opt/gradle
                        
# 2024-12-21 01:54:11  0.00B 设置默认要执行的命令
CMD ["gradle"]
                        
# 2024-10-23 23:41:32  0.00B 设置默认要执行的命令
CMD ["jshell"]
                        
# 2024-10-23 23:41:32  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/__cacert_entrypoint.sh"]
                        
# 2024-10-23 23:41:32  5.31KB 复制新文件或目录到容器中
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh # buildkit
                        
# 2024-10-23 23:41:32  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     echo "Verifying install ...";     fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java;     echo "javac --version"; javac --version;     echo "java --version"; java --version;     echo "Complete." # buildkit
                        
# 2024-10-23 23:41:32  306.52MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     ARCH="$(dpkg --print-architecture)";     case "${ARCH}" in        amd64)          ESUM='3c654d98404c073b8a7e66bffb27f4ae3e7ede47d13284c132d40a83144bfd8c';          BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz';          ;;        arm64)          ESUM='6482639ed9fd22aa2e704cc366848b1b3e1586d2bf1213869c43e80bca58fe5c';          BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.5_11.tar.gz';          ;;        ppc64el)          ESUM='3c6f4c358facfb6c19d90faf02bfe0fc7512d6b0e80ac18146bbd7e0d01deeef';          BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.5_11.tar.gz';          ;;        s390x)          ESUM='51a7ca42cc2e8cb5f3e7a326c28912ee84ff0791a1ca66650a8c53af07510a7c';          BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_s390x_linux_hotspot_21.0.5_11.tar.gz';          ;;        *)          echo "Unsupported arch: ${ARCH}";          exit 1;          ;;     esac;     wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL};     wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig;     export GNUPGHOME="$(mktemp -d)";     gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B;     gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz;     rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig;     echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -;     mkdir -p "$JAVA_HOME";     tar --extract         --file /tmp/openjdk.tar.gz         --directory "$JAVA_HOME"         --strip-components 1         --no-same-owner     ;     rm -f /tmp/openjdk.tar.gz ${JAVA_HOME}/lib/src.zip;     find "$JAVA_HOME/lib" -name '*.so' -exec dirname '{}' ';' | sort -u > /etc/ld.so.conf.d/docker-openjdk.conf;     ldconfig;     java -Xshare:dump; # buildkit
                        
# 2024-10-23 23:41:32  0.00B 设置环境变量 JAVA_VERSION
ENV JAVA_VERSION=jdk-21.0.5+11
                        
# 2024-10-23 23:41:32  56.79MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     apt-get update;     DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         curl         wget         gnupg         fontconfig         ca-certificates p11-kit         binutils         tzdata         locales     ;     echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen;     locale-gen en_US.UTF-8;     rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-10-23 23:41:32  0.00B 设置环境变量 LANG LANGUAGE LC_ALL
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
                        
# 2024-10-23 23:41:32  0.00B 设置环境变量 PATH
ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-10-23 23:41:32  0.00B 设置环境变量 JAVA_HOME
ENV JAVA_HOME=/opt/java/openjdk
                        
# 2024-09-12 00:25:18  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2024-09-12 00:25:17  77.86MB 
/bin/sh -c #(nop) ADD file:ebe009f86035c175ba244badd298a2582914415cf62783d510eab3a311a5d4e1 in / 
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=22.04
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:ef85b3c34b1e988d1cfe0daba090422bc632dc56b313a6ecd99d71cd1c1f3653",
    "RepoTags": [
        "gradle:8.12-jdk21",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:8.12-jdk21"
    ],
    "RepoDigests": [
        "gradle@sha256:74da5b70f4799823c01971487627fd9ad1d3f9146f0f9871e34af2bd86c76b43",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle@sha256:d6d456c4454e19115373dfc34dccaf637801a9265faa8bef34177c40f1581fc8"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-20T17:54:11Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "root",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/opt/java/openjdk",
            "LANG=en_US.UTF-8",
            "LANGUAGE=en_US:en",
            "LC_ALL=en_US.UTF-8",
            "JAVA_VERSION=jdk-21.0.5+11",
            "GRADLE_HOME=/opt/gradle",
            "GRADLE_VERSION=8.12"
        ],
        "Cmd": [
            "gradle"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/home/gradle/.gradle": {}
        },
        "WorkingDir": "/home/gradle",
        "Entrypoint": [
            "/__cacert_entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.ref.name": "ubuntu",
            "org.opencontainers.image.version": "22.04"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 749234533,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/a35b341e2b8c386ac941f4515b8df6c3e47036946ae19a663a208b14b381b373/diff:/var/lib/docker/overlay2/b1b0305caa1c675e013d0f3d9d46a2a68a8a6801e1421e5b894bcf788a069e65/diff:/var/lib/docker/overlay2/96176e405a89fe44992ada522b94d7c6e0366af2b0c5d83796a544f68bb4a883/diff:/var/lib/docker/overlay2/b27e39ddad236f13366a646c932308c891e158955f3f8c7a4f52af71cca8bbf4/diff:/var/lib/docker/overlay2/456e94f3d39d68821ea8b3fd5869c3a3c2b01255c0efdcab598891f518bcd0b2/diff:/var/lib/docker/overlay2/dfea95f174edf0483eae78fe2c56dbc3910a7d175455009982a976194f677232/diff:/var/lib/docker/overlay2/c4880a626f4a3749000ee70c56061a6435a23aca00a2ba665558f39c3e08071e/diff:/var/lib/docker/overlay2/ac67d10f428ce20be1ebd294f94baff7ad9f133b3e664ffd6be441b85eb7d670/diff:/var/lib/docker/overlay2/4cfb2ff6eb670d08d805fcc326973c76acabc424b2f6ce5f1903149f34750452/diff",
            "MergedDir": "/var/lib/docker/overlay2/e26c95ba053410775a5ff3fa5991120bef5b11f31d6aba75ad1fe48fcdfb4ffe/merged",
            "UpperDir": "/var/lib/docker/overlay2/e26c95ba053410775a5ff3fa5991120bef5b11f31d6aba75ad1fe48fcdfb4ffe/diff",
            "WorkDir": "/var/lib/docker/overlay2/e26c95ba053410775a5ff3fa5991120bef5b11f31d6aba75ad1fe48fcdfb4ffe/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:2573e0d8158209ed54ab25c87bcdcb00bd3d2539246960a3d592a1c599d70465",
            "sha256:641fc42a7a383facde08a3ad07f01eb06bc9db404735078cc75f1f430fe60c47",
            "sha256:a32ada6cf479e8b25bc7d47af8aa2fd564f2ddec91eb159a55b53a9dbaa9a7fe",
            "sha256:50823ab0acf5ee804b7118b6e672f168df4af6fe4b0472b9789812f195f0c549",
            "sha256:2cf9642226b8f25a6908d093138ca8a45cb3c467a9af9063bd94343d64772197",
            "sha256:bad734abaa6c0a07f996c712136718d22ce2a8639b95fe9d875663cab06194ab",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:75676720280218483c4a2bcf54ff3ff84dd4a9941b76fefb198997c70030f50d",
            "sha256:87a4e7ef9adb434748859eaf966796f1b8627bd750003a000f6e987f09f816c0",
            "sha256:3866f84effb049a50184f5ac5c95136eb9c4875b022edf06e102bc7699165ee9"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-26T18:31:59.778396328+08:00"
    }
}

更多版本

docker.io/gradle:8.8-jdk21

linux/amd64 docker.io747.16MB2024-08-30 10:47
216

docker.io/gradle:8.5-jdk21

linux/amd64 docker.io741.49MB2024-08-30 10:50
127

docker.io/gradle:7.2.0-jdk17

linux/amd64 docker.io778.54MB2024-10-30 21:54
113

docker.io/gradle:8.10.2-jdk21

linux/amd64 docker.io749.75MB2024-11-06 15:33
83

docker.io/gradle:8.12-jdk21

linux/amd64 docker.io749.23MB2024-12-26 18:32
42

docker.io/gradle:7.2.0-jdk8

linux/amd64 docker.io639.90MB2025-01-17 09:22
13