docker.io/gradle:9-jdk17-corretto linux/amd64

docker.io/gradle:9-jdk17-corretto - 国内下载镜像源 浏览次数:14

这是一个包含 Gradle 构建系统的 Docker 镜像。Gradle 是一款流行的构建自动化工具,用于构建各种类型的项目,特别是 Java 项目。这个镜像提供了一个预配置的环境,方便开发者构建和运行 Gradle 项目,而无需在本地安装 Gradle。

源镜像 docker.io/gradle:9-jdk17-corretto
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:9-jdk17-corretto
镜像ID sha256:a61375e5b4868bceb1c9778f971a0972eae789fb43a946d4a7193372afac4d6a
镜像TAG 9-jdk17-corretto
大小 869.04MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD gradle
启动入口
工作目录 /home/gradle
OS/平台 linux/amd64
浏览量 14 次
贡献者
镜像创建 2025-07-31T17:27:11Z
同步时间 2025-08-30 19:54
更新时间 2025-08-31 06:35
目录挂载
/home/gradle/.gradle
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=C.UTF-8 JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto GRADLE_HOME=/opt/gradle GRADLE_VERSION=9.0.0

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:9-jdk17-corretto
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:9-jdk17-corretto  docker.io/gradle:9-jdk17-corretto

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:9-jdk17-corretto
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:9-jdk17-corretto  docker.io/gradle:9-jdk17-corretto

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2025-08-01 01:27:11  0.00B 指定运行容器时使用的用户
USER root
                        
# 2025-08-01 01:27:11  192.70KB 执行命令并创建新的镜像层
RUN |1 GRADLE_DOWNLOAD_SHA256=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b /bin/sh -c set -o errexit -o nounset     && echo "Testing Gradle installation"     && gradle --version # buildkit
                        
# 2025-08-01 01:27:11  0.00B 指定运行容器时使用的用户
USER gradle
                        
# 2025-08-01 01:27:11  149.18MB 执行命令并创建新的镜像层
RUN |1 GRADLE_DOWNLOAD_SHA256=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b /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
                        
# 2025-08-01 01:27:11  0.00B 定义构建参数
ARG GRADLE_DOWNLOAD_SHA256=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b
                        
# 2025-08-01 01:27:11  0.00B 设置环境变量 GRADLE_VERSION
ENV GRADLE_VERSION=9.0.0
                        
# 2025-08-01 01:27:11  0.00B 设置工作目录为/home/gradle
WORKDIR /home/gradle
                        
# 2025-08-01 01:27:11  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/home/gradle/.gradle]
                        
# 2025-08-01 01:27:11  4.88KB 执行命令并创建新的镜像层
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         && echo "Symlinking root Gradle cache to gradle Gradle cache"     && ln --symbolic /home/gradle/.gradle /root/.gradle # buildkit
                        
# 2025-08-01 01:27:11  262.05MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -o errexit -o nounset     && dnf install -y         make         tar                 unzip         wget         which                 findutils                 git         git-lfs         mercurial         subversion     && dnf clean all     && rm -rf /var/cache/yum         && echo "Testing common utilities"     && which awk     && which curl     && which cut     && which grep     && which gunzip     && which sha256sum     && which sed     && which tar     && which tr     && which unzip     && which wget         && echo "Testing VCSes"     && which git     && which git-lfs     && which hg     && which svn # buildkit
                        
# 2025-08-01 01:27:11  0.00B 设置环境变量 GRADLE_HOME
ENV GRADLE_HOME=/opt/gradle
                        
# 2025-08-01 01:27:11  0.00B 设置默认要执行的命令
CMD ["gradle"]
                        
# 2025-07-19 03:06:54  0.00B 设置环境变量 JAVA_HOME
ENV JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto
                        
# 2025-07-19 03:06:54  0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
                        
# 2025-07-19 03:06:54  309.04MB 执行命令并创建新的镜像层
RUN |2 version=17.0.16.8-1 package_version=1 /bin/sh -c set -eux     && rpm --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2023     && echo "localpkg_gpgcheck=1" >> /etc/dnf/dnf.conf     && CORRETO_TEMP=$(mktemp -d)     && pushd ${CORRETO_TEMP}     && RPM_LIST=("java-17-amazon-corretto-headless-$version.amzn2023.${package_version}.$(uname -m).rpm" "java-17-amazon-corretto-$version.amzn2023.${package_version}.$(uname -m).rpm" "java-17-amazon-corretto-devel-$version.amzn2023.${package_version}.$(uname -m).rpm" "java-17-amazon-corretto-jmods-$version.amzn2023.${package_version}.$(uname -m).rpm")     && for rpm in ${RPM_LIST[@]}; do     curl --fail -O https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/${rpm}     && rpm -K "${CORRETO_TEMP}/${rpm}" | grep -F "${CORRETO_TEMP}/${rpm}: digests signatures OK" || exit 1;     done     && dnf install -y ${CORRETO_TEMP}/*.rpm     && popd     && rm -rf /usr/lib/jvm/java-17-amazon-corretto.$(uname -m)/lib/src.zip     && rm -rf ${CORRETO_TEMP}     && dnf clean all     && sed -i '/localpkg_gpgcheck=1/d' /etc/dnf/dnf.conf # buildkit
                        
# 2025-07-19 03:06:54  0.00B 定义构建参数
ARG package_version=1
                        
# 2025-07-19 03:06:54  0.00B 定义构建参数
ARG version=17.0.16.8-1
                        
# 2025-07-19 03:06:54  0.00B 设置默认要执行的命令
CMD ["/bin/bash"]
                        
# 2025-07-19 03:06:54  148.58MB 复制新文件或目录到容器中
COPY /rootfs/ / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:a61375e5b4868bceb1c9778f971a0972eae789fb43a946d4a7193372afac4d6a",
    "RepoTags": [
        "gradle:9-jdk17-corretto",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle:9-jdk17-corretto"
    ],
    "RepoDigests": [
        "gradle@sha256:ade8dd96ed02df0c76fbe97fde98a40cdae15138a3d1e446619dd04dfd5ce4ef",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/gradle@sha256:9a3435fba35eaac3320cc2147cd00ca06e5218d3006f9dd4d24f1a851867a77b"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-07-31T17:27: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=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "LANG=C.UTF-8",
            "JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto",
            "GRADLE_HOME=/opt/gradle",
            "GRADLE_VERSION=9.0.0"
        ],
        "Cmd": [
            "gradle"
        ],
        "Image": "",
        "Volumes": {
            "/home/gradle/.gradle": {}
        },
        "WorkingDir": "/home/gradle",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 869043663,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/1395010a8a20494cf317d563de9db319dfbd1258560c3512acac7ec6ab474b7a/diff:/var/lib/docker/overlay2/e4ba5223c96c5a10dad0f502adea3be87f81bf9e918a9e07f1baeb6d33b531ec/diff:/var/lib/docker/overlay2/5d5218a77c82a800c78875fc2ae9154fd8ecb795688dc219763eab568d93980b/diff:/var/lib/docker/overlay2/72984f84a70ed698e6492b48a284f2a3b17673e3c1a9623c763f189a3559d44e/diff:/var/lib/docker/overlay2/f9a0d4b3bb759204f32a59dabd4a786e43670680c9d9bd2adbfafa4a0c3d951f/diff:/var/lib/docker/overlay2/871f0a8c0870a9b2965841be73e4311e93bf28598adeea423462814e3570f058/diff",
            "MergedDir": "/var/lib/docker/overlay2/2d5e4e23f21d4b166bb766b800ae114edc6b0336c6fa8d4dd87cab163974d6cb/merged",
            "UpperDir": "/var/lib/docker/overlay2/2d5e4e23f21d4b166bb766b800ae114edc6b0336c6fa8d4dd87cab163974d6cb/diff",
            "WorkDir": "/var/lib/docker/overlay2/2d5e4e23f21d4b166bb766b800ae114edc6b0336c6fa8d4dd87cab163974d6cb/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:3ad05f16deb4834f12b2e9194e45fda60e7583caf0ab3f512d773e1962d3ab83",
            "sha256:8673e1dcd0d891b9ac2ccdf26f9193976410ea1b44efe105eef428b96406af4a",
            "sha256:f50a3d6cf779675909237f45252e4bd617ab1721642e902bd0d72997474220aa",
            "sha256:3aeedf71bf6dd2a03aa69f0e0aad75502b4707128f398d5ca705ab4c0f4c62a0",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:79e6b8968a4135ce4fcaf946bf5cd8adda46df54e183baccfead26b8ff84712d",
            "sha256:20e380e95f87f0446aeea3ec6b4020972944000219e4b45f9a0e5438f14d9312"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-08-30T19:52:54.597141412+08:00"
    }
}

更多版本

docker.io/gradle:8.8-jdk21

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

docker.io/gradle:8.5-jdk21

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

docker.io/gradle:7.2.0-jdk17

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

docker.io/gradle:8.10.2-jdk21

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

docker.io/gradle:8.12-jdk21

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

docker.io/gradle:7.2.0-jdk8

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

docker.io/gradle:8.13-jdk21

linux/amd64 docker.io792.36MB2025-04-15 11:02
305

docker.io/gradle:7.6.4-jdk17

linux/amd64 docker.io749.06MB2025-05-12 16:46
133

docker.io/gradle:8.14-jdk21

linux/amd64 docker.io792.92MB2025-05-20 16:01
147

docker.io/gradle:8.14.3-jdk21

linux/amd64 docker.io793.24MB2025-07-28 17:02
90

docker.io/gradle:9-jdk17-corretto

linux/amd64 docker.io869.04MB2025-08-30 19:54
13