Skip to content

Commit

Permalink
perf: add lima dependency pkgs to speed up VM boot (#157)
Browse files Browse the repository at this point in the history
install packages
* qemu-user-static-aarch64
* qemu-user-static-arm
* qemu-user-static-x86
* iptables
* fuse-sshfs 

depended on by lima to decrease boot time of Finch VM on Windows

Issue #, if available:

*Description of changes:*


*Testing done:*

* EC2 Windows dev instance 
* build rootfs locally, scp up
* run Finch w/ changes in runfinch/finch#553
* basic commands tests -> `finch vm init`, `finch vm pull
alpine:latest`, etc.

- [x] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

---------

Signed-off-by: Gavin Inglis <[email protected]>
  • Loading branch information
ginglis13 authored Sep 15, 2023
1 parent c9e376b commit 2f63058
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
paths-ignore:
- '**.md'
- 'contrib/**'
- 'Dockerfile'
workflow_dispatch:

concurrency:
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ RUN dnf group install -y cloud-server-environment --exclude=plymouth* \
--exclude=dracut* \
--exclude=shim-*

# install packages needed by Lima
RUN dnf install -y \
--setopt=install_weak_deps=False \
qemu-user-static-aarch64 \
qemu-user-static-arm \
qemu-user-static-x86 \
iptables \
fuse-sshfs

RUN systemctl enable cloud-init cloud-init-local cloud-config cloud-final

# enable systemd
Expand Down

0 comments on commit 2f63058

Please sign in to comment.