BlueXIII's Blog

热爱技术,持续学习

0%

基础镜像制作

docker-manifest用法

1
2
3
4
5
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用法

基础镜像制作脚本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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}

基础镜像清单

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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