| Leopold Schabel | 67f9d09 | 2019-10-22 15:41:42 +0200 | [diff] [blame] | 1 | # Smalltown Operating System |
| 2 | |
| 3 | ## Run build |
| 4 | |
| Leopold Schabel | 5c80aca | 2019-10-22 15:48:58 +0200 | [diff] [blame^] | 5 | The build uses a Fedora 30 base image with a set of dependencies. |
| 6 | |
| 7 | Start container shell: |
| Leopold Schabel | 67f9d09 | 2019-10-22 15:41:42 +0200 | [diff] [blame] | 8 | |
| 9 | ``` |
| 10 | modprobe kvm |
| 11 | |
| 12 | podman build -t smalltown-builder . |
| 13 | |
| 14 | podman run -it --rm \ |
| 15 | -v $(pwd):/work \ |
| 16 | -v /dev/null:/work/.git \ |
| 17 | -v /dev/null:/work/.idea \ |
| 18 | -v /dev/null:/work/.arcconfig \ |
| 19 | --device /dev/kvm \ |
| Leopold Schabel | 5c80aca | 2019-10-22 15:48:58 +0200 | [diff] [blame^] | 20 | --net=host \ |
| Leopold Schabel | 67f9d09 | 2019-10-22 15:41:42 +0200 | [diff] [blame] | 21 | smalltown-builder bash |
| Leopold Schabel | 67f9d09 | 2019-10-22 15:41:42 +0200 | [diff] [blame] | 22 | ``` |
| 23 | |
| Leopold Schabel | 5c80aca | 2019-10-22 15:48:58 +0200 | [diff] [blame^] | 24 | Launch the VM: |
| 25 | |
| 26 | bazelisk run scripts:launch |
| 27 | |
| Leopold Schabel | 67f9d09 | 2019-10-22 15:41:42 +0200 | [diff] [blame] | 28 | Exit qemu using the monitor console: `Ctrl-A c quit`. |
| 29 | |
| 30 | If your host is low on entropy, consider running rngd from rng-tools for development. |