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 aarch64 example with QEMU TCG #333

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Add aarch64 example with QEMU TCG #333

merged 2 commits into from
Oct 24, 2024

Conversation

ktock
Copy link
Owner

@ktock ktock commented Oct 24, 2024

c2w experimentally integrates QEMU TCG on Wasm(emscripten).
Multicore CPUs can also be enabled leveraging MTTCG(Multi-Threded TCG).
Example: aarch64 alpine on emscripten

$ make
$ mkdir -p /tmp/out-js5/htdocs
$ ./out/c2w --dockerfile=Dockerfile --assets=. --target-stage=js-qemu-aarch64 --target-arch=aarch64 arm64v8/alpine:3.20 /tmp/out-js5/htdocs/
$ cp -R ./examples/emscripten-qemu-tcg-aarch64/* /tmp/out-js5/
$ docker run --rm -p 8083:80 \
         -v "/tmp/out-js5/htdocs:/usr/local/apache2/htdocs/:ro" \
         -v "/tmp/out-js5/xterm-pty.conf:/usr/local/apache2/conf/extra/xterm-pty.conf:ro" \
         --entrypoint=/bin/sh httpd -c 'echo "Include conf/extra/xterm-pty.conf" >> /usr/local/apache2/conf/httpd.conf && httpd-foreground'

Then localhost:8083 serves the image.

@ktock ktock marked this pull request as draft October 24, 2024 08:45
Signed-off-by: Kohei Tokunaga <[email protected]>
@ktock ktock marked this pull request as ready for review October 24, 2024 23:36
@ktock ktock merged commit 3e43eaa into main Oct 24, 2024
13 checks passed
@ktock ktock deleted the qemu-tcg-wasm-b branch October 24, 2024 23:36
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