Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziglang/qemu-static
build qemu-static binaries using Alpine Linux docker
https://github.com/ziglang/qemu-static
Last synced: about 4 hours ago
JSON representation
build qemu-static binaries using Alpine Linux docker
- Host: GitHub
- URL: https://github.com/ziglang/qemu-static
- Owner: ziglang
- License: mit
- Created: 2020-04-10T07:34:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T15:27:10.000Z (4 months ago)
- Last Synced: 2024-09-21T03:31:02.890Z (4 days ago)
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 34
- Watchers: 8
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qemu-static
The purpose of this project is to build a highly compatible QEMU binary package
for linux to use with Zig testing.Zig needs a very recent QEMU version, sometimes unreleased commit-revs, and
sometimes with custom patches. For this reason, distro-based QEMU packages are
unsuitable.The overall strategy is to use Alpine Linux to host a QEMU build and link
statically to all possible libraries.It is a non-goal to build QEMU with all features enabled.
It is a non-goal to build older versions of QEMU.## build docker image
```
docker build --tag qemu .
```## run container, save ID, copy artifact(s)
```
mkdir ../artifact
docker run -it --cidfile=qemu.cid qemu true
docker cp "$(cat qemu.cid):work/artifact/." ../artifact/.
```## review final artifact(s)
```
ls -al ../artifact/
```## cleanup container, ID-file, and image
```
docker container rm $(cat qemu.cid)
rm qemu.cid
docker image rm qemu
```## really, really cleanup docker
```
docker system prune --force
```