Skip to content

Commit

Permalink
Upgrade to latest docker-machine-driver-qemu
Browse files Browse the repository at this point in the history
Copy some of the default values from the regular setup,
that is not used when not using docker-machine config.
  • Loading branch information
afbjorklund committed Feb 21, 2022
1 parent ebfb0c8 commit d00b8b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.13.0 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/machine-drivers/docker-machine-driver-qemu v0.1.0
github.com/machine-drivers/docker-machine-driver-qemu v0.1.1-0.20180730160045-1d6b42f755d0
github.com/magiconair/properties v1.8.5 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,8 @@ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2
github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w=
github.com/machine-drivers/docker-machine-driver-qemu v0.1.0 h1:r5bMzOqca0dZuCkn/8vCM8QNpdsLPCVZ6VP5z/IU0HM=
github.com/machine-drivers/docker-machine-driver-qemu v0.1.0/go.mod h1:1gevpWYcs2Gmvt9G9T6AbeRw9tGnQdQiKt56B7n2X7g=
github.com/machine-drivers/docker-machine-driver-qemu v0.1.1-0.20180730160045-1d6b42f755d0 h1:1Yo+YdvX8hKRqAwFPLcR58DJgOhbZ1Sh2LPP1xtIMVA=
github.com/machine-drivers/docker-machine-driver-qemu v0.1.1-0.20180730160045-1d6b42f755d0/go.mod h1:1gevpWYcs2Gmvt9G9T6AbeRw9tGnQdQiKt56B7n2X7g=
github.com/machine-drivers/docker-machine-driver-vmware v0.1.5 h1:51GqJ84u9EBATnn8rWsHNavcuRPlCLnDmvjzZVuliwY=
github.com/machine-drivers/docker-machine-driver-vmware v0.1.5/go.mod h1:dTnTzUH3uzhMo0ddV1zRjGYWcVhQWwqiHPxz5l+HPd0=
github.com/machine-drivers/machine v0.7.1-0.20211105063445-78a84df85426 h1:gVDPCmqwvHQ4ox/9svvnkomYJAAiV59smbPdTK4DIm4=
Expand Down
4 changes: 4 additions & 0 deletions pkg/minikube/registry/drvs/qemu/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package qemu
import (
"fmt"
"os/exec"
"path/filepath"
"runtime"

"github.com/docker/machine/libmachine/drivers"
Expand Down Expand Up @@ -59,6 +60,9 @@ func configure(cc config.ClusterConfig, n config.Node) (interface{}, error) {
DiskSize: cc.DiskSize,
Memory: cc.Memory,
CPU: cc.CPUs,
EnginePort: 2376,
FirstQuery: true,
DiskPath: filepath.Join(localpath.MiniPath(), "machines", name, fmt.Sprintf("%s.img", name)),
}, nil
}

Expand Down

0 comments on commit d00b8b8

Please sign in to comment.