docker.io/bellsoft/liberica-openjre-alpine:17 linux/amd64

docker.io/bellsoft/liberica-openjre-alpine:17 - 国内下载镜像源 浏览次数:38

bellsoft/liberica-openjre-alpine

这是一个基于 Alpine Linux 的 Docker 镜像,包含了 BellSoft Liberica OpenJDK 的运行时环境。该镜像体积小巧,适用于需要轻量级 Java 运行环境的场景,例如微服务和应用程序容器化。

该镜像提供了以下特性:

  • 基于 Alpine Linux 的最小化系统映像,以降低镜像大小。
  • 包含 BellSoft Liberica OpenJDK 的运行时环境,提供高性能和可靠的 Java 执行环境。
  • 支持各种 Java 应用程序和框架。

该镜像可以用于在 Docker 容器中运行 Java 应用程序,并提供高效的资源利用率和快速启动速度。

源镜像 docker.io/bellsoft/liberica-openjre-alpine:17
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17
镜像ID sha256:1e56609686a82fb42a00673595e58ba491504af108324e138e6648448a9fb72f
镜像TAG 17
大小 144.28MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh
启动入口
工作目录
OS/平台 linux/amd64
浏览量 38 次
贡献者 xi**********t@163.com
镜像创建 2024-10-17T17:36:14.304647072Z
同步时间 2024-11-26 18:24
更新时间 2025-01-05 05:54
环境变量
PATH=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8:en JAVA_HOME=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.20.3 扫描引擎: Trivy 扫描时间: 2024-11-26 18:24

低危漏洞:2 中危漏洞:0 高危漏洞:0 严重漏洞:0

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17  docker.io/bellsoft/liberica-openjre-alpine:17

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17  docker.io/bellsoft/liberica-openjre-alpine:17

Shell快速替换命令

sed -i 's#bellsoft/liberica-openjre-alpine:17#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17  docker.io/bellsoft/liberica-openjre-alpine:17'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17  docker.io/bellsoft/liberica-openjre-alpine:17'

镜像构建历史


# 2024-10-18 01:36:14  0.00B 设置环境变量 JAVA_HOME PATH
ENV JAVA_HOME=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64 PATH=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-10-18 01:36:14  128.12MB 执行命令并创建新的镜像层
RUN |11 GLIBC_PREFIX=/usr/glibc EXT_GCC_LIBS_URL=https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-8.3.0-1-x86_64.pkg.tar.xz EXT_ZLIB_URL=https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz LANG=en_US.UTF-8 OPT_PKGS= LIBERICA_VERSION=17.0.13 LIBERICA_BUILD=12 LIBERICA_VARIANT=jre LIBERICA_ROOT=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64 LIBERICA_USE_LITE=1 LIBERICA_GENERATE_CDS=false /bin/sh -c LIBERICA_ARCH='' &&  LIBERICA_ARCH_TAG='' &&     apk --no-cache upgrade libcrypto3 libssl3   &&           case `uname -m` in                                       x86_64)                                                LIBERICA_ARCH="amd64"                              ;;                                             i686)                                                  LIBERICA_ARCH="i586"                               ;;                                             aarch64)                                               LIBERICA_ARCH="aarch64"                            ;;                                             armv[67]l)                                             LIBERICA_ARCH="arm32-vfp-hflt";                    ;;                                             *)                                               LIBERICA_ARCH=`uname -m`                           ;;                                             esac                                         &&    ln -s ${GLIBC_PREFIX}/lib/ld-*.so* /lib   &&    ln -s ${GLIBC_PREFIX}/etc/ld.so.cache /etc   &&    if [ "$LIBERICA_ARCH" = "amd64" ]; then ln -s /lib /lib64   &&      mkdir /tmp/zlib && wget -O - "${EXT_ZLIB_URL}" | tar xJf - -C /tmp/zlib   &&      cp -dP /tmp/zlib/usr/lib/libz.so* "${GLIBC_PREFIX}/lib"   &&      rm -rf /tmp/zlib   &&      mkdir /tmp/gcc && wget -O - "${EXT_GCC_LIBS_URL}" | tar xJf - -C /tmp/gcc   &&      cp -dP /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* "${GLIBC_PREFIX}/lib"   &&      rm -rf /tmp/gcc;         fi   &&    for pkg in $OPT_PKGS ; do apk --no-cache add $pkg ; done   &&    ${GLIBC_PREFIX}/sbin/ldconfig   &&    echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' > /etc/nsswitch.conf   &&    mkdir -p $LIBERICA_ROOT   &&    mkdir -p /tmp/java   &&    if [ "$LIBERICA_USE_LITE" = "1" ]; then              RSUFFIX="-lite";                                 LITE_URL="/docker" ;                         else                                                 RSUFFIX="";                                      LITE_URL="";                                 fi   &&    LIBERICA_BUILD_STR=${LIBERICA_BUILD:+"+${LIBERICA_BUILD}"}   &&    echo LIBERICA_BUILD_STR - ${LIBERICA_BUILD_STR}   &&    PKG="bellsoft-${LIBERICA_VARIANT}${LIBERICA_VERSION}${LIBERICA_BUILD_STR}-linux-${LIBERICA_ARCH}${LIBSUFFIX}${RSUFFIX}.tar.gz"   &&    PKG_URL="https://download.bell-sw.com/java/${LIBERICA_VERSION}${LIBERICA_BUILD_STR}${LITE_URL}/${PKG}"   &&    echo "Download ${PKG_URL}"   &&    wget "${PKG_URL}" -O /tmp/java/jre.tar.gz   &&    SHA_URL="https://download.bell-sw.com/sha1sum/java/${LIBERICA_VERSION}${LIBERICA_BUILD_STR}"   &&    if [ "$LIBERICA_USE_LITE" = "1" ]; then                                                              SHA_URL="https://download.bell-sw.com/java/${LIBERICA_VERSION}${LIBERICA_BUILD_STR}/docker/sha1sum.txt";                 fi   &&    SHA1=$(wget -q ${SHA_URL} -O -  | grep ${PKG} | grep -v json | cut -f1 -d' ')      &&    echo "${SHA1} */tmp/java/jre.tar.gz" | sha1sum -c -   &&    tar xzf /tmp/java/jre.tar.gz -C /tmp/java   &&    find "/tmp/java/${LIBERICA_VARIANT}-${LIBERICA_VERSION}" -maxdepth 1 -mindepth 1 -exec mv "{}" "${LIBERICA_ROOT}/" \;   &&    ln -s $LIBERICA_ROOT /usr/lib/jvm/jre   &&    (ls /usr/lib/jvm/jre/lib/client 1>/dev/null 2>&1 && (rm -rf /usr/lib/jvm/jre/lib/client && sed -i 's#-client\s\+KNOWN#-client IGNORE#g' /usr/lib/jvm/jre/lib/jvm.cfg) || : )   &&    if [ $LIBERICA_GENERATE_CDS = true ]; then                               ${LIBERICA_ROOT}/bin/java -XX:+UseCompressedOops -Xshare:dump;           ${LIBERICA_ROOT}/bin/java -XX:-UseCompressedOops -Xshare:dump;       else                                                                         find ${LIBERICA_ROOT} -name "classes*.jsa" -exec rm {} \; ;          fi                                 &&    rm -rf /tmp/java               &&    rm -rf /tmp/hsperfdata_root # buildkit
                        
# 2024-10-17 23:43:02  8.36MB 复制新文件或目录到容器中
COPY /root/dest/ / # buildkit
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_GENERATE_CDS=false
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_USE_LITE=1
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_ROOT=/usr/lib/jvm/jre-17.0.13-bellsoft
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_VARIANT=jre
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_BUILD=12
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_VERSION=17.0.13
                        
# 2024-10-17 23:43:02  0.00B 设置环境变量 LANG LANGUAGE
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8:en
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG OPT_PKGS=
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LANG=en_US.UTF-8
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG EXT_ZLIB_URL=https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG EXT_GCC_LIBS_URL=https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-8.3.0-1-x86_64.pkg.tar.xz
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG GLIBC_PREFIX=/usr/glibc
                        
# 2024-09-07 06:20:07  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-09-07 06:20:07  7.80MB 
/bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in / 
                        
                    

镜像信息

{
    "Id": "sha256:1e56609686a82fb42a00673595e58ba491504af108324e138e6648448a9fb72f",
    "RepoTags": [
        "bellsoft/liberica-openjre-alpine:17",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine:17"
    ],
    "RepoDigests": [
        "bellsoft/liberica-openjre-alpine@sha256:a22b9a467411dfca8241207a019ee46546458a6ba752a284f6118b06d0731c69",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine@sha256:d6fa5001bc41250e0ce30b4069f921f502d66e5da1559194c9ad3457deabb56e"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-17T17:36:14.304647072Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "LANG=en_US.UTF-8",
            "LANGUAGE=en_US.UTF-8:en",
            "JAVA_HOME=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 144278268,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/5213c5428841d84b785ac1ed0d621541b94fa1a7ffb4138c930618fad74108b4/diff:/var/lib/docker/overlay2/56dbc2212cbc9b991b1a93a72a8c08a3a8460c06576fe4f3267009446334aa65/diff",
            "MergedDir": "/var/lib/docker/overlay2/d5780ba99b294e01165d0c85791025d9241b9b952b14706869fc0d4732383199/merged",
            "UpperDir": "/var/lib/docker/overlay2/d5780ba99b294e01165d0c85791025d9241b9b952b14706869fc0d4732383199/diff",
            "WorkDir": "/var/lib/docker/overlay2/d5780ba99b294e01165d0c85791025d9241b9b952b14706869fc0d4732383199/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:63ca1fbb43ae5034640e5e6cb3e083e05c290072c5366fcaa9d62435a4cced85",
            "sha256:d4363e158a5a53506a83372ebb066e830a14498a77a0b0491fc8e8e10b5d7a44",
            "sha256:0a4a73e3041f20c24b15ffc614cc213dc766374a283451ab13e2dc0fff05751b"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-26T18:24:45.50163295+08:00"
    }
}

更多版本

docker.io/bellsoft/liberica-openjre-alpine:8u432

linux/amd64 docker.io141.59MB2024-10-31 14:35
166

docker.io/bellsoft/liberica-openjre-alpine-musl:17

linux/amd64 docker.io120.26MB2024-11-08 17:55
56

docker.io/bellsoft/liberica-openjre-alpine-musl:21

linux/amd64 docker.io138.68MB2024-11-08 18:25
45

docker.io/bellsoft/liberica-openjre-alpine:17

linux/amd64 docker.io144.28MB2024-11-26 18:24
37