Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arm64 support and allow toggle between docker/podman #26

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

boyobejamin
Copy link

Add some support for MacOS Silicon.

@boyobejamin boyobejamin changed the title Add arm64 support and allow toggle between docker/podman DRAFT: Add arm64 support and allow toggle between docker/podman Nov 13, 2024
@boyobejamin
Copy link
Author

One issue is that it doesn't look like Kata has an arm64 variant of genpolicy

jelly@bwelch02-clarity kubecon-na24-workshop % podman run -ti ubuntu:22.04 bash
root@24cb79095689:/# apt update
.. <ommit update> ...
root@24cb79095689:/# apt install -y xz-utils curl
.. <ommit install> ...
root@24cb79095689:/# ARCH="$(dpkg --print-architecture)" && \
    curl -LO "https://github.com/kata-containers/kata-containers/releases/download/3.9.0/kata-static-3.9.0-${ARCH}.tar.xz" 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  150M  100  150M    0     0  13.6M      0  0:00:10  0:00:10 --:--:-- 14.7M
root@24cb79095689:/# tar -xJf kata-static-3.9.0-${ARCH}.tar.xz /opt/kata/bin/genpolicy
tar: /opt/kata/bin/genpolicy: Not found in archive
tar: Exiting with failure status due to previous errors

Ls of dir

root@24cb79095689:/# tar -xJf kata-static-3.9.0-${ARCH}.tar.xz                        
root@24cb79095689:/# ls /opt/kata/bin/
cloud-hypervisor         firecracker              kata-collect-data.sh     kata-runtime             stratovirt               
containerd-shim-kata-v2  jailer                   kata-monitor             qemu-system-aarch64 

@boyobejamin boyobejamin changed the title DRAFT: Add arm64 support and allow toggle between docker/podman Add arm64 support and allow toggle between docker/podman Nov 13, 2024
@boyobejamin
Copy link
Author

New commits to add Kata dir to the build image and update the system path for all users. Still doesn't install genpolicy in the conatiner so use ./util/download-genpolicy.sh as is to install on MacOS. Rosetta will provide backwards compatability using the amd64 binary.

@boyobejamin
Copy link
Author

Ready for merge

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.

1 participant