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

Change remote when creating container with autopktest-build-lxd #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion MergeProposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ PPA: ppa:kstenerud/postfix-fix-lp1753470-postconf-segfault

Steps to test:

# lxc launch images:ubuntu/bionic builder
# lxc launch ubuntu-daily:ubuntu/bionic builder
# lxc exec builder bash

# apt dist-upgrade
Expand Down
2 changes: 1 addition & 1 deletion PackageBuilding.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ following example with the container image you wish to use.
From within the package repository:

```bash
$ lxc launch images:ubuntu/focal builder \
$ lxc launch ubuntu-daily:ubuntu/focal builder \
&& sleep 5 \
&& lxc exec builder -- mkdir -p /root/build/package \
&& tar cf - . | lxc exec builder -- tar xf - -C /root/build/package \
Expand Down
2 changes: 1 addition & 1 deletion PackageFixing.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ have their own preferences. Here's a couple of options:
To make a container for testing:

```bash
$ lxc launch images:ubuntu/bionic tester
$ lxc launch ubuntu-daily:ubuntu/bionic tester
$ lxc exec tester -- bash
```

Expand Down
4 changes: 2 additions & 2 deletions PackageMerging.md
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ Test the following:
Example:

```bash
$ lxc launch images:ubuntu/cosmic tester && lxc exec tester bash
$ lxc launch ubuntu-daily:ubuntu/cosmic tester && lxc exec tester bash
$ apt update && apt dist-upgrade -y && apt install -y at
```

Expand Down Expand Up @@ -978,7 +978,7 @@ $ echo "echo abc >test.txt" | at now + 1 minute && sleep 1m && cat test.txt && r
### Test installing the latest from scratch

```bash
$ lxc launch images:ubuntu/cosmic tester && lxc exec tester bash
$ lxc launch ubuntu-daily:ubuntu/cosmic tester && lxc exec tester bash
$ add-apt-repository -y ppa:kstenerud/at-merge-lp1802914
$ apt update && apt dist-upgrade -y && apt install at
$ echo "echo abc >test.txt" | at now + 1 minute && sleep 1m && cat test.txt && rm test.txt
Expand Down
2 changes: 1 addition & 1 deletion PackageTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ First, we will build the image we prepared in the previous section.
* To build a container image:

```bash
$ autopkgtest-build-lxd images:ubuntu/impish/amd64
$ autopkgtest-build-lxd ubuntu-daily:oracular

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Can we set this to devel?

Suggested change
$ autopkgtest-build-lxd ubuntu-daily:oracular
$ autopkgtest-build-lxd ubuntu-daily:devel

This way the doc always points to the release in development.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: just for awareness; the text above references focal. I don't know if this should be refreshed too (e.g. to noble).

* To build a VM image:
```bash
$ autopkgtest-buildvm-ubuntu-cloud -r focal -v \
--cloud-image-url http://cloud-images.ubuntu.com/daily/server
```
(Replace `focal` with your release of choice)
Copy the resulting image (`autopkgtest-focal-amd64.img`) to the
`/var/lib/adt-images` directory.
> **Note**:
> Use `-m` to specify a closer mirror or `-p` to use a local proxy
> if it's slow.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. @mirespace can you take this opportunity and replace all usage of the images: remote where it uses ubuntu, with ubuntu-daily:?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Dominik, Andreas,

Thank you both for your suggestions. I made a search and changed images to ubuntu-daily (tbh, I don't know why I didn't do it the first time).

@dviererbe I started to change the used series names too (for devel and LTS), but I found it "attached" to examples of commits and runs that don't match if I made the changes then.

A couple of weeks ago, on my documentation triage shift, I saw a discussion pending about this topic at #112 ... what about figuring out there?

Anyway, I can do a separate PR once we decide, or if we don't do it in a timely manner, I can do a new separate PR for the most straightforward cases (e.g., the one you reference here).

What do you think? Thanks again!

```

You should see an autopkgtest image now when you run `lxc image list`.
Expand Down