Skip to content

Commit

Permalink
Bump peg in order to control the size of the vm disk to be created
Browse files Browse the repository at this point in the history
because we don't have enough space for the previous hardcoded 30g for qemu

Also install missing qemu-img package

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
  • Loading branch information
jimmykarily committed Apr 25, 2023
1 parent 15ae3fa commit 967e459
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ jobs:
uses: docker/setup-qemu-action@master
with:
platforms: all
- run: |
# install qemu-img
sudo apt install -y qemu-utils
- env:
USE_QEMU: true
run: |
Expand Down Expand Up @@ -174,6 +177,9 @@ jobs:
uses: docker/setup-qemu-action@master
with:
platforms: all
- run: |
# install qemu-img
sudo apt install -y qemu-utils
- env:
USE_QEMU: true
run: |
Expand Down Expand Up @@ -207,6 +213,9 @@ jobs:
uses: docker/setup-qemu-action@master
with:
platforms: all
- run: |
# install qemu-img
sudo apt install -y qemu-utils
- env:
USE_QEMU: true
run: |
Expand All @@ -233,6 +242,9 @@ jobs:
uses: docker/setup-qemu-action@master
with:
platforms: all
- run: |
# install qemu-img
sudo apt install -y qemu-utils
- env:
USE_QEMU: true
run: |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/onsi/gomega v1.27.6
github.com/pterm/pterm v0.12.59
github.com/samber/lo v1.37.0
github.com/spectrocloud/peg v0.0.0-20230424135336-eff2a49d4309
github.com/spectrocloud/peg v0.0.0-20230425074400-294b704d146a
github.com/urfave/cli/v2 v2.25.1
go.uber.org/zap v1.24.0
golang.org/x/crypto v0.8.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,10 @@ github.com/spectrocloud/peg v0.0.0-20230407121159-2e15270c4a46 h1:q2T2RnISqPdZWv
github.com/spectrocloud/peg v0.0.0-20230407121159-2e15270c4a46/go.mod h1:L2fIdtZqbQEagjOOXwkwH3t7MjJUd7fbt52cLSQGDBg=
github.com/spectrocloud/peg v0.0.0-20230424135336-eff2a49d4309 h1:u9XrCKQAuTfbv2CyMe9Jrlr3oUPSsC0fyXibWwy6Hps=
github.com/spectrocloud/peg v0.0.0-20230424135336-eff2a49d4309/go.mod h1:L2fIdtZqbQEagjOOXwkwH3t7MjJUd7fbt52cLSQGDBg=
github.com/spectrocloud/peg v0.0.0-20230425060049-f9b331abc203 h1:5HTLaLRRCEkCHqg0y7Z7aoTIxbTLRIEkOknVuYqQxqo=
github.com/spectrocloud/peg v0.0.0-20230425060049-f9b331abc203/go.mod h1:L2fIdtZqbQEagjOOXwkwH3t7MjJUd7fbt52cLSQGDBg=
github.com/spectrocloud/peg v0.0.0-20230425074400-294b704d146a h1:7JDzPDWDIkecQ49cuIx9LXS/u/Mt7vHcVBf6gmrEwIk=
github.com/spectrocloud/peg v0.0.0-20230425074400-294b704d146a/go.mod h1:L2fIdtZqbQEagjOOXwkwH3t7MjJUd7fbt52cLSQGDBg=
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
Expand Down
1 change: 1 addition & 0 deletions tests/tests_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func startVM(iso string) (context.Context, VM) {
types.QEMUEngine,
types.WithISO(iso),
types.WithMemory(memory),
types.WithDriveSize("25000"),
types.WithCPU(cpus),
types.WithSSHPort(strconv.Itoa(sshPort)),
types.WithID(vmName),
Expand Down

0 comments on commit 967e459

Please sign in to comment.