Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimal remotes (stable-4.0) #13668

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
simondeziel marked this conversation as resolved.
Show resolved Hide resolved

# Delete all test containers using dynamic batch size
lxd-benchmark delete`
Expand Down
Loading