Skip to content

support build multi arch sealer image#48

Open
Stevent-fei wants to merge 1 commit intosealerio:mainfrom
Stevent-fei:add_containerd_scripts
Open

support build multi arch sealer image#48
Stevent-fei wants to merge 1 commit intosealerio:mainfrom
Stevent-fei:add_containerd_scripts

Conversation

@Stevent-fei
Copy link
Collaborator

Describe what this PR does / why we need it

Provides multi architecture capabilities

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

pauseImage=$(./"${ARCH}"/bin/kubeadm config images list --config "rootfs/etc/kubeadm.yml" 2>/dev/null | sed "/WARNING/d" | grep pause)
if [ -f "rootfs/etc/dump-config.toml" ]; then sudo sed -i "s/sea.hub:5000\/pause:3.6/$(echo "$pauseImage" | sed 's/\//\\\//g')/g" rootfs/etc/dump-config.toml; fi
sudo sealer build -t "docker.io/sealerio/kubernetes:${k8s_version}" -f Kubefile
sudo sealer build -t "docker.io/sealerio/kubernetes:${k8s_version}" -f Kubefile --platform "${platform}" .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where we get ${platform}?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

platform=$(if [[ -z "$platform" ]]; then echo "linux/arm64,linux/amd64"; else echo "$platform"; fi)

@kakaZhou719 kakaZhou719 changed the title Add multi architecture construction method support build multi arch sealer image Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants