Skip to content

Commit

Permalink
Merge pull request #19 from stgraber/pr16
Browse files Browse the repository at this point in the history
Remove the ubuntu: and ubuntu-daily: remotes
  • Loading branch information
hallyn authored Aug 4, 2023
2 parents fa63860 + 3d6ca9c commit 9e58686
Show file tree
Hide file tree
Showing 45 changed files with 385 additions and 368 deletions.
26 changes: 3 additions & 23 deletions inc/config/default.go
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lxd\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lxd\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lxd\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lxd\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: LXD\n"
"Report-Msgid-Bugs-To: [email protected]\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 <[email protected]>\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
Loading

0 comments on commit 9e58686

Please sign in to comment.