Technical note
基础镜像制作
docker-manifest用法
docker manifest create --insecure harbor.dubhe:30002/dubhe-base/nginx:1.25.1 \
harbor.dubhe:30002/dubhe-base/nginx:1.25.1-arm \
harbor.dubhe:30002/dubhe-base/nginx:1.25.1-x86
docker manifest push --insecure harbor.dubhe:30002/dubhe-base/nginx:1.25.1
manifest-tool用法
- https://github.com/GoogleContainerTools/kaniko#merging-the-container-manifests
- https://github.com/estesp/manifest-tool/releases
基础镜像制作脚本
IMAGE=amazoncorretto:8u372
docker pull --platform linux/arm64 ${IMAGE}
docker tag ${IMAGE} harbor.dubhe:30002/dubhe-base/${IMAGE}-arm64
docker push harbor.dubhe:30002/dubhe-base/${IMAGE}-arm64
docker pull --platform linux/amd64 ${IMAGE}
docker tag ${IMAGE} harbor.dubhe:30002/dubhe-base/${IMAGE}-amd64
docker push harbor.dubhe:30002/dubhe-base/${IMAGE}-amd64
manifest-tool --plain-http --username=admin --password=yourpass push from-args \
--platforms linux/amd64,linux/arm64 \
--template harbor.dubhe:30002/dubhe-base/${IMAGE}-ARCH \
--target harbor.dubhe:30002/dubhe-base/${IMAGE}
基础镜像清单
# oracle-jdk8(X86 Only)
harbor.dubhe:30002/dubhe-base/java:8u111
# dragonwell自制(ARM Only)
harbor.dubhe:30002/dubhe-base/dragonwell:8.15.16-arm
# openjdk8(双架构)
harbor.dubhe:30002/dubhe-base/openjdk:8-jre-slim-buster
# correttojdk8(双架构)
harbor.dubhe:30002/dubhe-base/amazoncorretto:8u372
# 官方镜像
harbor.dubhe:30002/dubhe-base/busybox:1.36.0
harbor.dubhe:30002/dubhe-base/nginx:1.25.1
# 自制镜像
harbor.dubhe:30002/dubhe-base/alpine:3.16.3
harbor.dubhe:30002/dubhe-base/ubuntu:22.04
# 自制镜像(TektonTask X86 Only)
harbor.dubhe:30002/dubhe-base/chart-update:latest
harbor.dubhe:30002/dubhe-base/dubhe-buildkit:1.2.0