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

Remove the ubuntu: and ubuntu-daily: remotes #19

Merged
merged 5 commits into from Aug 4, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 3 additions & 23 deletions inc/config/default.go
Expand Up @@ -14,35 +14,15 @@ var ImagesRemote = Remote{
Protocol: "simplestreams",
}

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

// UbuntuDailyRemote is the Ubuntu daily image server (over simplestreams).
var UbuntuDailyRemote = Remote{
Addr: "https://cloud-images.ubuntu.com/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,
"ubuntu": UbuntuRemote,
"ubuntu-daily": UbuntuDailyRemote,
"local": LocalRemote,
}

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

// DefaultConfig returns the default configuration.
Expand Down
4 changes: 2 additions & 2 deletions inc/init.go
Expand Up @@ -38,9 +38,9 @@ func (c *cmdInit) Command() *cobra.Command {
cmd.Use = usage("init", i18n.G("[<remote>:]<image> [<remote>:][<name>]"))
cmd.Short = i18n.G("Create instances from images")
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(`Create instances from images`))
cmd.Example = cli.FormatSection("", i18n.G(`lxc init ubuntu:22.04 u1
cmd.Example = cli.FormatSection("", i18n.G(`lxc init images:ubuntu/22.04 u1

lxc init ubuntu:22.04 u1 < config.yaml
lxc init images:ubuntu/22.04 u1 < config.yaml
Create the instance with configuration from config.yaml`))
cmd.Hidden = true

Expand Down
8 changes: 4 additions & 4 deletions inc/launch.go
Expand Up @@ -24,15 +24,15 @@ func (c *cmdLaunch) Command() *cobra.Command {
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
`Create and start instances from images`))
cmd.Example = cli.FormatSection("", i18n.G(
`lxc launch ubuntu:22.04 u1
`lxc launch images:ubuntu/22.04 u1

lxc launch ubuntu:22.04 u1 < config.yaml
lxc launch images:ubuntu/22.04 u1 < config.yaml
Create and start a container with configuration from config.yaml

lxc launch ubuntu:22.04 u2 -t aws:t2.micro
lxc launch images:ubuntu/22.04 u2 -t aws:t2.micro
Create and start a container using the same size as an AWS t2.micro (1 vCPU, 1GiB of RAM)

lxc launch ubuntu:22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB
lxc launch images:ubuntu/22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB
Create and start a virtual machine with 4 vCPUs and 4GiB of RAM`))
cmd.Hidden = false

Expand Down
4 changes: 2 additions & 2 deletions inc/main.go
Expand Up @@ -389,8 +389,8 @@ func (c *cmdGlobal) PreRun(cmd *cobra.Command, args []string) error {
}

if !shared.StringInSlice(cmd.Name(), []string{"init", "launch"}) {
fmt.Fprintf(os.Stderr, i18n.G(`To start your first container, try: lxc launch ubuntu:22.04
Or for a virtual machine: lxc launch ubuntu:22.04 --vm`)+"\n")
fmt.Fprintf(os.Stderr, i18n.G(`To start your first container, try: lxc launch images:ubuntu/22.04
Or for a virtual machine: lxc launch images:ubuntu/22.04 --vm`)+"\n")
flush = true
}

Expand Down
2 changes: 1 addition & 1 deletion incus-benchmark/main.go
Expand Up @@ -93,7 +93,7 @@ func main() {

A CSV report can be produced to be consumed by graphing software.
`
app.Example = ` # Spawn 20 Ubuntu containers in batches of 4
app.Example = ` # Spawn 20 containers in batches of 4
lxd-benchmark launch --count 20 --parallel 4

# Create 50 Alpine containers in batches of 10
Expand Down
2 changes: 1 addition & 1 deletion incus-benchmark/main_init.go
Expand Up @@ -26,7 +26,7 @@ func (c *cmdInit) Command() *cobra.Command {

func (c *cmdInit) Run(cmd *cobra.Command, args []string) error {
// Choose the image
image := "ubuntu:"
image := "images:ubuntu/22.04"
if len(args) > 0 {
image = args[0]
}
Expand Down
2 changes: 1 addition & 1 deletion incus-benchmark/main_launch.go
Expand Up @@ -26,7 +26,7 @@ func (c *cmdLaunch) Command() *cobra.Command {

func (c *cmdLaunch) Run(cmd *cobra.Command, args []string) error {
// Choose the image
image := "ubuntu:"
image := "images:ubuntu/22.04"
if len(args) > 0 {
image = args[0]
}
Expand Down
19 changes: 10 additions & 9 deletions po/ber.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lxd\n"
"Report-Msgid-Bugs-To: incus@example.net\n"
"POT-Creation-Date: 2023-07-28 17:56-0400\n"
"POT-Creation-Date: 2023-08-03 22:23-0400\n"
"PO-Revision-Date: 2022-03-10 15:10+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
"Language-Team: Berber <https://hosted.weblate.org/projects/linux-containers/"
Expand Down Expand Up @@ -5578,8 +5578,8 @@ msgstr ""

#: inc/main.go:392
msgid ""
"To start your first container, try: lxc launch ubuntu:22.04\n"
"Or for a virtual machine: lxc launch ubuntu:22.04 --vm"
"To start your first container, try: lxc launch images:ubuntu/22.04\n"
"Or for a virtual machine: lxc launch images:ubuntu/22.04 --vm"
msgstr ""

#: inc/config.go:293 inc/config.go:474 inc/config.go:681 inc/config.go:773
Expand Down Expand Up @@ -6763,24 +6763,25 @@ msgstr ""

#: inc/init.go:41
msgid ""
"lxc init ubuntu:22.04 u1\n"
"lxc init images:ubuntu/22.04 u1\n"
"\n"
"lxc init ubuntu:22.04 u1 < config.yaml\n"
"lxc init images:ubuntu/22.04 u1 < config.yaml\n"
" Create the instance with configuration from config.yaml"
msgstr ""

#: inc/launch.go:26
msgid ""
"lxc launch ubuntu:22.04 u1\n"
"lxc launch images:ubuntu/22.04 u1\n"
"\n"
"lxc launch ubuntu:22.04 u1 < config.yaml\n"
"lxc launch images:ubuntu/22.04 u1 < config.yaml\n"
" Create and start a container with configuration from config.yaml\n"
"\n"
"lxc launch ubuntu:22.04 u2 -t aws:t2.micro\n"
"lxc launch images:ubuntu/22.04 u2 -t aws:t2.micro\n"
" Create and start a container using the same size as an AWS t2.micro (1 "
"vCPU, 1GiB of RAM)\n"
"\n"
"lxc launch ubuntu:22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB\n"
"lxc launch images:ubuntu/22.04 v1 --vm -c limits.cpu=4 -c limits."
"memory=4GiB\n"
" Create and start a virtual machine with 4 vCPUs and 4GiB of RAM"
msgstr ""

Expand Down
19 changes: 10 additions & 9 deletions po/bg.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lxd\n"
"Report-Msgid-Bugs-To: incus@example.net\n"
"POT-Creation-Date: 2023-07-28 17:56-0400\n"
"POT-Creation-Date: 2023-08-03 22:23-0400\n"
"PO-Revision-Date: 2022-03-10 15:09+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
"Language-Team: Bulgarian <https://hosted.weblate.org/projects/linux-"
Expand Down Expand Up @@ -5578,8 +5578,8 @@ msgstr ""

#: inc/main.go:392
msgid ""
"To start your first container, try: lxc launch ubuntu:22.04\n"
"Or for a virtual machine: lxc launch ubuntu:22.04 --vm"
"To start your first container, try: lxc launch images:ubuntu/22.04\n"
"Or for a virtual machine: lxc launch images:ubuntu/22.04 --vm"
msgstr ""

#: inc/config.go:293 inc/config.go:474 inc/config.go:681 inc/config.go:773
Expand Down Expand Up @@ -6763,24 +6763,25 @@ msgstr ""

#: inc/init.go:41
msgid ""
"lxc init ubuntu:22.04 u1\n"
"lxc init images:ubuntu/22.04 u1\n"
"\n"
"lxc init ubuntu:22.04 u1 < config.yaml\n"
"lxc init images:ubuntu/22.04 u1 < config.yaml\n"
" Create the instance with configuration from config.yaml"
msgstr ""

#: inc/launch.go:26
msgid ""
"lxc launch ubuntu:22.04 u1\n"
"lxc launch images:ubuntu/22.04 u1\n"
"\n"
"lxc launch ubuntu:22.04 u1 < config.yaml\n"
"lxc launch images:ubuntu/22.04 u1 < config.yaml\n"
" Create and start a container with configuration from config.yaml\n"
"\n"
"lxc launch ubuntu:22.04 u2 -t aws:t2.micro\n"
"lxc launch images:ubuntu/22.04 u2 -t aws:t2.micro\n"
" Create and start a container using the same size as an AWS t2.micro (1 "
"vCPU, 1GiB of RAM)\n"
"\n"
"lxc launch ubuntu:22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB\n"
"lxc launch images:ubuntu/22.04 v1 --vm -c limits.cpu=4 -c limits."
"memory=4GiB\n"
" Create and start a virtual machine with 4 vCPUs and 4GiB of RAM"
msgstr ""

Expand Down
19 changes: 10 additions & 9 deletions po/ca.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lxd\n"
"Report-Msgid-Bugs-To: incus@example.net\n"
"POT-Creation-Date: 2023-07-28 17:56-0400\n"
"POT-Creation-Date: 2023-08-03 22:23-0400\n"
"PO-Revision-Date: 2022-03-10 15:10+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
"Language-Team: Catalan <https://hosted.weblate.org/projects/linux-containers/"
Expand Down Expand Up @@ -5578,8 +5578,8 @@ msgstr ""

#: inc/main.go:392
msgid ""
"To start your first container, try: lxc launch ubuntu:22.04\n"
"Or for a virtual machine: lxc launch ubuntu:22.04 --vm"
"To start your first container, try: lxc launch images:ubuntu/22.04\n"
"Or for a virtual machine: lxc launch images:ubuntu/22.04 --vm"
msgstr ""

#: inc/config.go:293 inc/config.go:474 inc/config.go:681 inc/config.go:773
Expand Down Expand Up @@ -6763,24 +6763,25 @@ msgstr ""

#: inc/init.go:41
msgid ""
"lxc init ubuntu:22.04 u1\n"
"lxc init images:ubuntu/22.04 u1\n"
"\n"
"lxc init ubuntu:22.04 u1 < config.yaml\n"
"lxc init images:ubuntu/22.04 u1 < config.yaml\n"
" Create the instance with configuration from config.yaml"
msgstr ""

#: inc/launch.go:26
msgid ""
"lxc launch ubuntu:22.04 u1\n"
"lxc launch images:ubuntu/22.04 u1\n"
"\n"
"lxc launch ubuntu:22.04 u1 < config.yaml\n"
"lxc launch images:ubuntu/22.04 u1 < config.yaml\n"
" Create and start a container with configuration from config.yaml\n"
"\n"
"lxc launch ubuntu:22.04 u2 -t aws:t2.micro\n"
"lxc launch images:ubuntu/22.04 u2 -t aws:t2.micro\n"
" Create and start a container using the same size as an AWS t2.micro (1 "
"vCPU, 1GiB of RAM)\n"
"\n"
"lxc launch ubuntu:22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB\n"
"lxc launch images:ubuntu/22.04 v1 --vm -c limits.cpu=4 -c limits."
"memory=4GiB\n"
" Create and start a virtual machine with 4 vCPUs and 4GiB of RAM"
msgstr ""

Expand Down
19 changes: 10 additions & 9 deletions po/cs.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lxd\n"
"Report-Msgid-Bugs-To: incus@example.net\n"
"POT-Creation-Date: 2023-07-28 17:56-0400\n"
"POT-Creation-Date: 2023-08-03 22:23-0400\n"
"PO-Revision-Date: 2022-03-10 15:11+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
"Language-Team: Czech <https://hosted.weblate.org/projects/linux-containers/"
Expand Down Expand Up @@ -5578,8 +5578,8 @@ msgstr ""

#: inc/main.go:392
msgid ""
"To start your first container, try: lxc launch ubuntu:22.04\n"
"Or for a virtual machine: lxc launch ubuntu:22.04 --vm"
"To start your first container, try: lxc launch images:ubuntu/22.04\n"
"Or for a virtual machine: lxc launch images:ubuntu/22.04 --vm"
msgstr ""

#: inc/config.go:293 inc/config.go:474 inc/config.go:681 inc/config.go:773
Expand Down Expand Up @@ -6763,24 +6763,25 @@ msgstr ""

#: inc/init.go:41
msgid ""
"lxc init ubuntu:22.04 u1\n"
"lxc init images:ubuntu/22.04 u1\n"
"\n"
"lxc init ubuntu:22.04 u1 < config.yaml\n"
"lxc init images:ubuntu/22.04 u1 < config.yaml\n"
" Create the instance with configuration from config.yaml"
msgstr ""

#: inc/launch.go:26
msgid ""
"lxc launch ubuntu:22.04 u1\n"
"lxc launch images:ubuntu/22.04 u1\n"
"\n"
"lxc launch ubuntu:22.04 u1 < config.yaml\n"
"lxc launch images:ubuntu/22.04 u1 < config.yaml\n"
" Create and start a container with configuration from config.yaml\n"
"\n"
"lxc launch ubuntu:22.04 u2 -t aws:t2.micro\n"
"lxc launch images:ubuntu/22.04 u2 -t aws:t2.micro\n"
" Create and start a container using the same size as an AWS t2.micro (1 "
"vCPU, 1GiB of RAM)\n"
"\n"
"lxc launch ubuntu:22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB\n"
"lxc launch images:ubuntu/22.04 v1 --vm -c limits.cpu=4 -c limits."
"memory=4GiB\n"
" Create and start a virtual machine with 4 vCPUs and 4GiB of RAM"
msgstr ""

Expand Down
19 changes: 10 additions & 9 deletions po/de.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: LXD\n"
"Report-Msgid-Bugs-To: incus@example.net\n"
"POT-Creation-Date: 2023-07-28 17:56-0400\n"
"POT-Creation-Date: 2023-08-03 22:23-0400\n"
"PO-Revision-Date: 2022-03-10 15:06+0000\n"
"Last-Translator: Krombel <krombel@krombel.de>\n"
"Language-Team: German <https://hosted.weblate.org/projects/linux-containers/"
Expand Down Expand Up @@ -6191,8 +6191,8 @@ msgstr ""

#: inc/main.go:392
msgid ""
"To start your first container, try: lxc launch ubuntu:22.04\n"
"Or for a virtual machine: lxc launch ubuntu:22.04 --vm"
"To start your first container, try: lxc launch images:ubuntu/22.04\n"
"Or for a virtual machine: lxc launch images:ubuntu/22.04 --vm"
msgstr ""

#: inc/config.go:293 inc/config.go:474 inc/config.go:681 inc/config.go:773
Expand Down Expand Up @@ -8010,24 +8010,25 @@ msgstr ""

#: inc/init.go:41
msgid ""
"lxc init ubuntu:22.04 u1\n"
"lxc init images:ubuntu/22.04 u1\n"
"\n"
"lxc init ubuntu:22.04 u1 < config.yaml\n"
"lxc init images:ubuntu/22.04 u1 < config.yaml\n"
" Create the instance with configuration from config.yaml"
msgstr ""

#: inc/launch.go:26
msgid ""
"lxc launch ubuntu:22.04 u1\n"
"lxc launch images:ubuntu/22.04 u1\n"
"\n"
"lxc launch ubuntu:22.04 u1 < config.yaml\n"
"lxc launch images:ubuntu/22.04 u1 < config.yaml\n"
" Create and start a container with configuration from config.yaml\n"
"\n"
"lxc launch ubuntu:22.04 u2 -t aws:t2.micro\n"
"lxc launch images:ubuntu/22.04 u2 -t aws:t2.micro\n"
" Create and start a container using the same size as an AWS t2.micro (1 "
"vCPU, 1GiB of RAM)\n"
"\n"
"lxc launch ubuntu:22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB\n"
"lxc launch images:ubuntu/22.04 v1 --vm -c limits.cpu=4 -c limits."
"memory=4GiB\n"
" Create and start a virtual machine with 4 vCPUs and 4GiB of RAM"
msgstr ""

Expand Down