由于CentOS Stream 8已于2024年5月31日结束生命周期,Liberica JDK的CentOS镜像已被视为弃用,将不再接收更新
什么是Liberica JDK?
Liberica JDK是免费且100%开源的渐进式Java运行时,适用于现代Java部署。它由BellSoft开发和支持,BellSoft是OpenJDK的主要贡献者。使用Liberica JDK进行应用开发具有以下特点:
- 灵活性:支持当今最广泛的架构和操作系统,使其成为适用于桌面、服务器、云和嵌入式用例的统一Java运行时。
- 成本和时间效率:BellSoft基于Liberica Lite和Alpine Linux制作了世界上最小的容器,帮助企业最小化部署时间并降低云成本。
- 安全性:Liberica JDK通过Java SE规范的TCK验证,并在每次发布前经过全面的漏洞测试。CPU发布周期有助于及时提供安全补丁和错误修复,确保运行时始终安全高效。
Liberica JDK被Spring推荐并使用,作为Spring Native应用的端到端解决方案。BellSoft为全球各行业的数百万开发者和公司提供服务。更多信息请访问[***]
如何选择最佳Java镜像?
我们编制了一个交互式方案,帮助您确定哪个BellSoft镜像最适合您的项目。
!如何选择最佳Java镜像
此镜像包含什么?
此仓库包含适用于CentOS的Liberica JRE镜像,支持以下架构:
- x86_64(又名amd64)
- aarch64(又名ARM64)
- armhf(适用于树莓派2/3等设备)
标签指向Java版本(紧跟在操作系统名称之后)和支持的架构。
镜像名称结构:X-Y,其中X是Java版本,Y是架构类型。如果名称中未包含架构类型,则默认支持AMD64和ARM64。'latest'标签指向镜像的最新版本。标签中带有'-cds'的镜像包含CDS(类数据共享)归档。
例如,https://hub.docker.com/layers/bellsoft/liberica-openjre-centos/19.0.1-11-aarch64/images/sha256-5eaf63d8ac0ea04ae7362be1b4d8c0a83da60edb317b107a23395e622419af26?context=explore%E6%98%AF%E9%80%82%E7%94%A8%E4%BA%8EAArch64%E6%9E%B6%E6%9E%84CentOS%E7%B3%BB%E7%BB%9F%E7%9A%84Liberica JRE 19.0.1-11版本镜像。
标签
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/22/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/22/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/22/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/22/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/22/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/22/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/22/Dockerfile,
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/21/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/21/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/21/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/21/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/21/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/21/Dockerfile,
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/old/20/Dockerfile
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/old/19/Dockerfile
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/old/18/Dockerfile
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/17/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/17/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/17/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/17/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/17/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/17/Dockerfile
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/old/16/Dockerfile,
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/old/15/Dockerfile
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/11/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/11/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/11/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/11/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/11/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/11/Dockerfile
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/old/10.0.2/Dockerfile
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/old/9.0.4/Dockerfile
- https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/8/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/8/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/8/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/8/Dockerfile,
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/8/Dockerfile
https://github.com/bell-sw/Liberica/blob/master/docker/repos/liberica-openjre-centos/8/Dockerfile - 仅支持amd64和aarch64
使用方法
例如,您可以通过以下命令运行Liberica OpenJRE 8u272容器:
docker run -it --rm bellsoft/liberica-openjre-centos:8u272 java -version
要运行应用程序,您可以基于bellsoft/liberica-openjre-centos镜像创建Dockerfile,或挂载包含代码/应用程序的卷,例如:
docker run -it --rm -v /home/user/project/:/data bellsoft/liberica-openjre-centos:8u272 java -jar /data/MyApp.jar