~toabctl/ubuntu-docker-images/+git/utils:sync-images

Last commit made on 2021-04-22
Get this branch:
git clone -b sync-images https://git.launchpad.net/~toabctl/ubuntu-docker-images/+git/utils
Only Thomas Bechtold can upload to this branch. If you are Thomas Bechtold please log in for upload directions.

Branch merges

Branch information

Name:
sync-images
Repository:
lp:~toabctl/ubuntu-docker-images/+git/utils

Recent commits

1b5220e... by Athos Ribeiro

New script to sync images between registries

The sync-multiarch-images.sh script copies an image from one registry to
another (by pulling and then pushing the image). Optionally, the user
can specify the architecture of the image being moved over. Additionally
the script runs a simple smoke test with the pulled image to make sure
the image being moved over is sane and was built for the requested
architecture.

Signed-off-by: Athos Ribeiro <email address hidden>

3d46d7a... by Sergio Durigan Junior

Rename USERNAME/PASSWORD to DOCKER_USERNAME/DOCKER_PASSWORD

We just use these variables for Docker, so there's no need to use
generic names for them.

Signed-off-by: Sergio Durigan Junior <email address hidden>

b668e7b... by Sergio Durigan Junior

tag-images.sh: Use [*] instead of [@] when expanding array of images

Using [@] will expand the array into separate words, which is not what
we want when we're invoking the "_login_docker_registry1" function.

Signed-off-by: Sergio Durigan Junior <email address hidden>

b47427b... by Sergio Durigan Junior

New CLI app to print the manifest of an image:tag

This CLI application can be used to print the manifest of an
image:tag. It will eventually be used in our unit tests in order to
obtain the manifest and verify that everything is correct with it.

Signed-off-by: Sergio Durigan Junior <email address hidden>

6e6af34... by Sergio Durigan Junior

Implement function to print the manifest for an image:tag

This will be the base for a new CLI application that will print
manifests for a certain image:tag combination.

Signed-off-by: Sergio Durigan Junior <email address hidden>

fb931ee... by Bryce Harrington

software-versions: Set $CODENAMES as read-only

2d7d8f6... by Bryce Harrington

software-versions: Omit prometheus and other snap-based packages

(For now anyway...)

55014af... by Bryce Harrington

software-versions: Add mention of --format to usage()

b9965ea... by Bryce Harrington

software_versions: Fix shellcheck issues

Mostly changing the local declarations, and a few quoted variables.
There was also a typo in the num_software decremental.

e2ce68d... by Bryce Harrington

software-versions: Generalize codename list

Instead of hardcoding hirsute and focal, iterate over an array of
codenames. Refactor the report formatting accordingly.

This also fixes a few JSON formatting issues I didn't notice before.

To test JSON syntax:
     $ ./software-versions.sh --format json > /tmp/foo.json
     $ json-check /tmp/foo.json
     PASS