Skip to content

Commit

Permalink
*: replace images.linuxcontainers.org by images.lxd.canonical.com
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
  • Loading branch information
simondeziel committed Jun 20, 2024
1 parent 5385104 commit 9635572
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
LXD is a next generation system container and virtual machine manager.
It offers a unified user experience around full Linux systems running inside containers or virtual machines.

It's image based with pre-made images available for a [wide number of Linux distributions](https://images.linuxcontainers.org)
It's image based with pre-made images available for a [wide number of Linux distributions](https://images.lxd.canonical.com)
and is built around a very powerful, yet pretty simple, REST API.


Expand Down
2 changes: 1 addition & 1 deletion client/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
// }
//
// // Connect to the remote SimpleStreams server
// d, err = lxd.ConnectSimpleStreams("https://images.linuxcontainers.org", nil)
// d, err = lxd.ConnectSimpleStreams("https://images.lxd.canonical.com", nil)
// if err != nil {
// return err
// }
Expand Down
2 changes: 1 addition & 1 deletion doc/external_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
:maxdepth: 1
Project repository <https://github.com/canonical/lxd>
Image server <https://images.linuxcontainers.org>
Image server <https://images.lxd.canonical.com>
```
2 changes: 1 addition & 1 deletion doc/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ navigation:
external: true

- title: Image server
location: https://images.linuxcontainers.org
location: https://images.lxd.canonical.com
external: true
6 changes: 3 additions & 3 deletions doc/rest-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ definitions:
x-go-name: Protocol
server:
description: URL of the source server
example: https://images.linuxcontainers.org
example: https://images.lxd.canonical.com
type: string
x-go-name: Server
type: object
Expand Down Expand Up @@ -1017,7 +1017,7 @@ definitions:
x-go-name: Secret
server:
description: URL of the source server
example: https://images.linuxcontainers.org
example: https://images.lxd.canonical.com
type: string
x-go-name: Server
type:
Expand Down Expand Up @@ -1837,7 +1837,7 @@ definitions:
x-go-name: Websockets
server:
description: Remote server URL (for remote images)
example: https://images.linuxcontainers.org
example: https://images.lxd.canonical.com
type: string
x-go-name: Server
source:
Expand Down
2 changes: 1 addition & 1 deletion shared/api/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ type ImageSource struct {
Protocol string `json:"protocol" yaml:"protocol"`

// URL of the source server
// Example: https://images.linuxcontainers.org
// Example: https://images.lxd.canonical.com
Server string `json:"server" yaml:"server"`

// Type of image (container or virtual-machine)
Expand Down
2 changes: 1 addition & 1 deletion shared/api/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ type InstanceSource struct {
Properties map[string]string `json:"properties,omitempty" yaml:"properties,omitempty"`

// Remote server URL (for remote images)
// Example: https://images.linuxcontainers.org
// Example: https://images.lxd.canonical.com
Server string `json:"server,omitempty" yaml:"server,omitempty"`

// Remote server secret (for remote private images)
Expand Down
4 changes: 2 additions & 2 deletions shared/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestURLEncode(t *testing.T) {
}

func TestUrlsJoin(t *testing.T) {
baseUrl := "http://images.linuxcontainers.org/streams/v1/"
baseUrl := "http://images.lxd.canonical.com/streams/v1/"
path := "../../image/root.tar.xz"

res, err := JoinUrls(baseUrl, path)
Expand All @@ -34,7 +34,7 @@ func TestUrlsJoin(t *testing.T) {
return
}

expected := "http://images.linuxcontainers.org/image/root.tar.xz"
expected := "http://images.lxd.canonical.com/image/root.tar.xz"
if res != expected {
t.Error(fmt.Errorf("'%s' != '%s'", res, expected))
}
Expand Down
6 changes: 3 additions & 3 deletions test/suites/remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test_remote_url() {
# shellcheck disable=2153
urls="${LXD_DIR}/unix.socket unix:${LXD_DIR}/unix.socket unix://${LXD_DIR}/unix.socket"
if [ -z "${LXD_OFFLINE:-}" ]; then
urls="images.linuxcontainers.org https://images.linuxcontainers.org ${urls}"
urls="images.lxd.canonical.com https://images.lxd.canonical.com ${urls}"
fi

# an invalid protocol returns an error
Expand Down Expand Up @@ -146,8 +146,8 @@ test_remote_admin() {

# Check that we can add domains with valid certs without confirmation:
if [ -z "${LXD_OFFLINE:-}" ]; then
lxc_remote remote add images1 images.linuxcontainers.org
lxc_remote remote add images2 images.linuxcontainers.org:443
lxc_remote remote add images1 images.lxd.canonical.com
lxc_remote remote add images2 images.lxd.canonical.com:443
lxc_remote remote remove images1
lxc_remote remote remove images2
fi
Expand Down

0 comments on commit 9635572

Please sign in to comment.