docker.io/kubespheredev/builder-maven:v3.2.0jdk11 linux/amd64

docker.io/kubespheredev/builder-maven:v3.2.0jdk11 - 国内下载镜像源 浏览次数:23 安全受验证的发布者-Kubesphere
```html

该镜像 docker.io/kubespheredev/builder-maven 是一个用于构建Maven项目的Docker镜像。它预装了Maven以及构建Java应用所需的相关工具和依赖,方便开发者在容器化环境中进行项目的编译、打包和测试。

```
源镜像 docker.io/kubespheredev/builder-maven:v3.2.0jdk11
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11
镜像ID sha256:e5558d99f04642a21ba0d9f6776f96f51088bd142d8da2fdc42f33cb8b0a8f93
镜像TAG v3.2.0jdk11
大小 1.63GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mvn -version
启动入口
工作目录 /home/jenkins
OS/平台 linux/amd64
浏览量 23 次
贡献者
镜像创建 2021-10-29T10:46:15.634803365Z
同步时间 2025-03-31 18:05
更新时间 2025-04-03 20:59
环境变量
PATH=/opt/apache-maven-3.5.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/sonar-scanner-3.3.0.1492-linux/bin:JAVA_HOME/bin:/opt/ant/bin LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 SONAR_SCANNER_VERSION=3.3.0.1492 JAVA_VERSIOIN=11 MAVEN_VERSION=3.5.3 M2_HOME=/opt/apache-maven-3.5.3 JAVA_HOME=/usr/lib/jvm/java-11-openjdk maven.home=/opt/apache-maven-3.5.3 M2=/opt/apache-maven-3.5.3/bin ANT_VERSION=1.10.7 ANT_HOME=/opt/ant
镜像标签
20201113: org.label-schema.build-date GPLv2: org.label-schema.license CentOS Base Image: org.label-schema.name 1.0: org.label-schema.schema-version CentOS: org.label-schema.vendor 2021-10-29T10:44:12.062Z: org.opencontainers.image.created Agents for Kubesphere DevOps: org.opencontainers.image.description Apache-2.0: org.opencontainers.image.licenses 8a7f116b9660872d7a9183445db4f0ff47e393fd: org.opencontainers.image.revision https://github.com/kubesphere/devops-agent: org.opencontainers.image.source devops-agent: org.opencontainers.image.title https://github.com/kubesphere/devops-agent: org.opencontainers.image.url CentOS: org.opencontainers.image.vendor v3.2.0jdk11: org.opencontainers.image.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11  docker.io/kubespheredev/builder-maven:v3.2.0jdk11

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11  docker.io/kubespheredev/builder-maven:v3.2.0jdk11

Shell快速替换命令

sed -i 's#kubespheredev/builder-maven:v3.2.0jdk11#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11  docker.io/kubespheredev/builder-maven:v3.2.0jdk11'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11  docker.io/kubespheredev/builder-maven:v3.2.0jdk11'

镜像构建历史


# 2021-10-29 18:46:15  0.00B 设置默认要执行的命令
CMD ["mvn" "-version"]
                        
# 2021-10-29 18:46:15  18.63KB 执行命令并创建新的镜像层
RUN |2 JDK_VERSION=11 1.8.0= /bin/sh -c $M2/set_java && rm $M2/set_java # buildkit
                        
# 2021-10-29 18:46:15  520.00B 复制新文件或目录到容器中
COPY set_java /opt/apache-maven-3.5.3/bin # buildkit
                        
# 2021-10-29 18:46:15  0.00B 设置环境变量 PATH
ENV PATH=/opt/apache-maven-3.5.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/sonar-scanner-3.3.0.1492-linux/bin:JAVA_HOME/bin:/opt/ant/bin
                        
# 2021-10-29 18:46:15  0.00B 设置环境变量 ANT_HOME
ENV ANT_HOME=/opt/ant
                        
# 2021-10-29 18:46:15  41.87MB 执行命令并创建新的镜像层
RUN |2 JDK_VERSION=11 1.8.0= /bin/sh -c cd &&     wget -q https://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz &&     tar -xzf apache-ant-${ANT_VERSION}-bin.tar.gz &&     mv apache-ant-${ANT_VERSION} /opt/ant &&     rm apache-ant-${ANT_VERSION}-bin.tar.gz # buildkit
                        
# 2021-10-29 18:46:13  0.00B 设置环境变量 ANT_VERSION
ENV ANT_VERSION=1.10.7
                        
# 2021-10-29 18:46:13  0.00B 设置环境变量 PATH
ENV PATH=/opt/apache-maven-3.5.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/sonar-scanner-3.3.0.1492-linux/bin:JAVA_HOME/bin
                        
# 2021-10-29 18:46:13  0.00B 设置环境变量 M2
ENV M2=/opt/apache-maven-3.5.3/bin
                        
# 2021-10-29 18:46:13  0.00B 设置环境变量 maven.home
ENV maven.home=/opt/apache-maven-3.5.3
                        
# 2021-10-29 18:46:13  0.00B 设置环境变量 JAVA_HOME
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
                        
# 2021-10-29 18:46:13  0.00B 设置环境变量 M2_HOME
ENV M2_HOME=/opt/apache-maven-3.5.3
                        
# 2021-10-29 18:46:13  10.69MB 执行命令并创建新的镜像层
RUN |2 JDK_VERSION=11 1.8.0= /bin/sh -c curl -f -L https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar -C /opt -xzv # buildkit
                        
# 2021-10-29 18:46:12  0.00B 设置环境变量 MAVEN_VERSION
ENV MAVEN_VERSION=3.5.3
                        
# 2021-10-29 18:46:12  670.61MB 执行命令并创建新的镜像层
RUN |2 JDK_VERSION=11 1.8.0= /bin/sh -c yum install -y java-${JAVA_VERSIOIN}-openjdk-devel     java-${JAVA_VERSIOIN}-openjdk-devel.i686 # buildkit
                        
# 2021-10-29 18:46:12  0.00B 设置环境变量 JAVA_VERSIOIN
ENV JAVA_VERSIOIN=11
                        
# 2021-10-29 18:46:12  0.00B 定义构建参数
ARG JDK_VERSION 1.8.0
                        
# 2021-05-25 16:33:31  0.00B 设置默认要执行的命令
CMD ["docker" "version"]
                        
# 2021-05-25 16:33:31  207.16MB 执行命令并创建新的镜像层
RUN /bin/sh -c ./hack/install_utils.sh && rm -rf ./* # buildkit
                        
# 2021-05-25 16:33:24  4.60KB 复制新文件或目录到容器中
COPY ./ ./ # buildkit
                        
# 2021-05-25 16:33:24  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/sonar-scanner-3.3.0.1492-linux/bin
                        
# 2021-05-25 16:33:24  625.18KB 执行命令并创建新的镜像层
RUN /bin/sh -c curl -o sonar_scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}-linux.zip &&     unzip sonar_scanner.zip && rm sonar_scanner.zip     && rm -rf sonar-scanner-$SONAR_SCANNER_VERSION-linux/jre &&     sed -i 's/use_embedded_jre=true/use_embedded_jre=false/g' /home/jenkins/sonar-scanner-$SONAR_SCANNER_VERSION-linux/bin/sonar-scanner &&     mv /home/jenkins/sonar-scanner-$SONAR_SCANNER_VERSION-linux /usr/bin # buildkit
                        
# 2021-05-25 16:33:15  0.00B 设置环境变量 SONAR_SCANNER_VERSION
ENV SONAR_SCANNER_VERSION=3.3.0.1492
                        
# 2021-05-25 16:33:15  0.00B 设置工作目录为/home/jenkins
WORKDIR /home/jenkins
                        
# 2021-05-25 16:33:15  0.00B 设置环境变量 LC_ALL
ENV LC_ALL=en_US.UTF-8
                        
# 2021-05-25 16:33:15  0.00B 设置环境变量 LANGUAGE
ENV LANGUAGE=en_US:en
                        
# 2021-05-25 16:33:15  0.00B 设置环境变量 LANG
ENV LANG=en_US.UTF-8
                        
# 2021-05-25 16:33:15  93.21MB 执行命令并创建新的镜像层
RUN /bin/sh -c wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz &&     tar zxvf git-2.9.5.tar.gz &&     cd git-2.9.5 &&     make configure &&     ./configure prefix=/usr/local/git/ &&     make &&     make install &&     mv /usr/local/git/bin/git /usr/bin/ &&     cd ..&&     rm -rf git-2.9.5.tar.gz git-2.9.5 &&     git version # buildkit
                        
# 2021-05-25 16:31:31  405.58MB 执行命令并创建新的镜像层
RUN /bin/sh -c yum install -y epel-release &&   yum install -y unzip   which   make   wget   zip   bzip2   gcc   gcc-c++   curl-devel   autoconf   expat-devel   gettext-devel   openssl-devel   perl-devel   zlib-devel   python-pip   java-1.8.0-openjdk &&   yum -y clean all --enablerepo='*' # buildkit
                        
# 2020-11-14 08:20:04  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2020-11-14 08:20:04  0.00B 
/bin/sh -c #(nop)  LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base Image org.opencontainers.image.vendor=CentOS org.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00
                        
# 2020-11-14 08:20:04  203.94MB 
/bin/sh -c #(nop) ADD file:b3ebbe8bd304723d43b7b44a6d990cd657b63d93d6a2a9293983a30bfc1dfa53 in / 
                        
                    

镜像信息

{
    "Id": "sha256:e5558d99f04642a21ba0d9f6776f96f51088bd142d8da2fdc42f33cb8b0a8f93",
    "RepoTags": [
        "kubespheredev/builder-maven:v3.2.0jdk11",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven:v3.2.0jdk11"
    ],
    "RepoDigests": [
        "kubespheredev/builder-maven@sha256:fa2d7cce402aaed3afdd96ab8744039f6e8ed437fb8c33301a7fabe60f820827",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kubespheredev/builder-maven@sha256:9e6e5bfd74b23f251bd47fe5a67a61260894e58fc2f3542816a832cb82a15e42"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2021-10-29T10:46:15.634803365Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/opt/apache-maven-3.5.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/sonar-scanner-3.3.0.1492-linux/bin:JAVA_HOME/bin:/opt/ant/bin",
            "LANG=en_US.UTF-8",
            "LANGUAGE=en_US:en",
            "LC_ALL=en_US.UTF-8",
            "SONAR_SCANNER_VERSION=3.3.0.1492",
            "JAVA_VERSIOIN=11",
            "MAVEN_VERSION=3.5.3",
            "M2_HOME=/opt/apache-maven-3.5.3",
            "JAVA_HOME=/usr/lib/jvm/java-11-openjdk",
            "maven.home=/opt/apache-maven-3.5.3",
            "M2=/opt/apache-maven-3.5.3/bin",
            "ANT_VERSION=1.10.7",
            "ANT_HOME=/opt/ant"
        ],
        "Cmd": [
            "mvn",
            "-version"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/home/jenkins",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "org.label-schema.build-date": "20201113",
            "org.label-schema.license": "GPLv2",
            "org.label-schema.name": "CentOS Base Image",
            "org.label-schema.schema-version": "1.0",
            "org.label-schema.vendor": "CentOS",
            "org.opencontainers.image.created": "2021-10-29T10:44:12.062Z",
            "org.opencontainers.image.description": "Agents for Kubesphere DevOps",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.revision": "8a7f116b9660872d7a9183445db4f0ff47e393fd",
            "org.opencontainers.image.source": "https://github.com/kubesphere/devops-agent",
            "org.opencontainers.image.title": "devops-agent",
            "org.opencontainers.image.url": "https://github.com/kubesphere/devops-agent",
            "org.opencontainers.image.vendor": "CentOS",
            "org.opencontainers.image.version": "v3.2.0jdk11"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1633701771,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/3195a0db3c2a427b91f0af22f707a0f0e1e8ad1bdef57769cc3459ccf14530b6/diff:/var/lib/docker/overlay2/31aedcc927d659f01ad05b0fca4d0c8dde48947a445007ee8aeb2d42b4bd272c/diff:/var/lib/docker/overlay2/e9bd2948ad464a2344631094c674bae4bbcdf3e15735cc793a0c0916350af98f/diff:/var/lib/docker/overlay2/51c5e2393cc0ec566b5fd26d53237ddf02f4405c72137dda947c9e40cd891f5e/diff:/var/lib/docker/overlay2/769e39c09d19b3e14a26b5e93b5a9574e0333d66ad5071a35f1390561ae0c4ed/diff:/var/lib/docker/overlay2/7ee4dd160727772135afd5e49507de8ff51e352a2afa43b35a09aa01307ba0d0/diff:/var/lib/docker/overlay2/60c68c8907242adce338918b34f0fb0e362cd70cae3579167e5a2a13cc07b306/diff:/var/lib/docker/overlay2/abb5cd913a940e3da0fb3b6b794d897da170bb2fcfafbba88673d6b1b271525f/diff:/var/lib/docker/overlay2/0d2c6bcd743f918ee30c3b369192eef576814fac6366f40d7528e241de482fb8/diff:/var/lib/docker/overlay2/3bd993933aca9a2d0b437dcf3429fb8da87a641bc5a92eb9fc4bc2cc03f62536/diff:/var/lib/docker/overlay2/692da34b0adf8e76ec1429e511d7b5e5a156d70cc12c2f28c5c93f71aa30f6fb/diff",
            "MergedDir": "/var/lib/docker/overlay2/5e84c41d0f9601f2e49d0ad22f359092c90d2fefaf8cd16775ccdf51cead3d52/merged",
            "UpperDir": "/var/lib/docker/overlay2/5e84c41d0f9601f2e49d0ad22f359092c90d2fefaf8cd16775ccdf51cead3d52/diff",
            "WorkDir": "/var/lib/docker/overlay2/5e84c41d0f9601f2e49d0ad22f359092c90d2fefaf8cd16775ccdf51cead3d52/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02",
            "sha256:69db99dd10bf1baf407b1a9a09f8aa9154e1d222d9d27d93e9d529b7250e3f97",
            "sha256:73135d3ca2ad43788c4aa91703cb8d3cbb41809cd10ba734a00e19bc26d716a9",
            "sha256:118e34a00acdb04a83cb378ab6f2eedf5d747c855db1d55953d52cf54dd5e541",
            "sha256:07054ea3e2e15a85359ba1218373db776bc8a83925c4dbcb4da23ccae4a76518",
            "sha256:8cbb13c732f5db30bef5e809d8e49e68e72bd8300b57573ebfaec839db223d0e",
            "sha256:04832edb6ff8f0642ba46aea1016590a0d64e535d1f659324a6591a84ee59cb9",
            "sha256:104262fae8ed2921ff12d51c975d5c4eb4b13f55196db5821a19e4bb516ee21f",
            "sha256:52bbfe2782b0b9c1f13384525d65e0c8a7eb8180d63014f3e96f2f6e5b796d9b",
            "sha256:3e346164d4d7d48237436e75141466b3f1f11a144abb203458213fd3cbca12b0",
            "sha256:254f3e9d3804a4a4fe501e27633634dc3735ab71cbbe8582fdca491365600ddd",
            "sha256:2d1c118d3b52c9f3ec7b4634b74a5fa1d0f49430eb56bf8ae5b105a63bdf306b"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-03-31T18:05:24.02872596+08:00"
    }
}

更多版本

docker.io/kubespheredev/builder-maven:v3.2.0jdk11

linux/amd64 docker.io1.63GB2025-03-31 18:05
22