Skip to content

Commit

Permalink
Merge pull request #13668 from simondeziel/minimal-remotes-stable-4.0
Browse files Browse the repository at this point in the history
Add minimal remotes (stable-4.0)
  • Loading branch information
tomponline authored Jun 26, 2024
2 parents 3fe463d + b5baef7 commit afd5e64
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
36 changes: 28 additions & 8 deletions lxc/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,40 @@ var UbuntuDailyRemote = Remote{
Protocol: "simplestreams",
}

// UbuntuMinimalRemote is the Ubuntu minimal image server (over simplestreams).
var UbuntuMinimalRemote = Remote{
Addr: "https://cloud-images.ubuntu.com/minimal/releases/",
Static: true,
Public: true,
Protocol: "simplestreams",
}

// UbuntuMinimalDailyRemote is the Ubuntu daily minimal image server (over simplestreams).
var UbuntuMinimalDailyRemote = Remote{
Addr: "https://cloud-images.ubuntu.com/minimal/daily/",
Static: true,
Public: true,
Protocol: "simplestreams",
}

// StaticRemotes is the list of remotes which can't be removed
var StaticRemotes = map[string]Remote{
"local": LocalRemote,
"images": ImagesRemote,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"images": ImagesRemote,
"local": LocalRemote,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"ubuntu-minimal": UbuntuMinimalRemote,
"ubuntu-minimal-daily": UbuntuMinimalDailyRemote,
}

// DefaultRemotes is the list of default remotes
var DefaultRemotes = map[string]Remote{
"local": LocalRemote,
"images": ImagesRemote,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"images": ImagesRemote,
"local": LocalRemote,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"ubuntu-minimal": UbuntuMinimalRemote,
"ubuntu-minimal-daily": UbuntuMinimalDailyRemote,
}

// DefaultConfig is the default configuration
Expand Down
4 changes: 2 additions & 2 deletions lxd-benchmark/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func main() {
app.Example = ` # Spawn 20 Ubuntu containers in batches of 4
lxd-benchmark launch --count 20 --parallel 4
# Create 50 Alpine containers in batches of 10
lxd-benchmark init --count 50 --parallel 10 images:alpine/edge
# Create 50 Ubuntu Minimal 22.04 containers in batches of 10
lxd-benchmark init --count 50 --parallel 10 ubuntu-minimal:22.04
# Delete all test containers using dynamic batch size
lxd-benchmark delete`
Expand Down

0 comments on commit afd5e64

Please sign in to comment.