~toabctl/ubuntu-docker-images/+git/utils:tag-images-dry-run

Last commit made on 2021-07-14
Get this branch:
git clone -b tag-images-dry-run 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:
tag-images-dry-run
Repository:
lp:~toabctl/ubuntu-docker-images/+git/utils

Recent commits

b8b5b74... by Thomas Bechtold

helpers/registry-login: allow AWS_{ACCESS_KEY_ID,_SECRET_ACCESS_KEY}

Currently there needs to be a AWS profile configured to tag images on
AWS. With this change, it's also possible to use the standard[0] AWS
environment variables to provide the credentials for login.

[0]
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

da35b41... by Thomas Bechtold

helpers/registry-login.sh: allow setting AWS_PROFILE

Currently a AWS_PROFILE needs to be configured with the name of the
NAMESPACE that is used. Eg. when trying to tag images under ubuntu/,
the AWS profile "ubuntu" must be there. That is not a good name where
multiple profiles are available.
So allow setting the env var AWS_PROFILE and use the profile set
there.

e5f6309... by Thomas Bechtold

tag-images.sh: do not tag stable/beta/candidate the devel release

The release under development should not be tagged with
stable/beta/candidate because it's currently under development.
So use distro-info to get the release under development and skip that
image for tagging.
Note: the distroname tag and release version tag are still added.

914a5c8... by Thomas Bechtold

tag-images.sh: add --dry-run mode

Adding a --dry-run flag for running the script without adding any
tags.
This is useful to see what would happen with doing the actual
modifications.

c797029... by Thomas Bechtold

tag-images.sh: drop registry check for base image

The ubuntu base image is now also available on dockerhub in the ubuntu
namespace[0]. So allow using the tag-images.sh script with the
dockerhub registry.

[0] https://hub.docker.com/r/ubuntu/ubuntu

9cea8f2... by Bryce Harrington

software-versions.sh: Add a README

d1f25b9... by Bryce Harrington

software-versions.sh: Look up the package versions in docker images

Determine the docker image names for the software packages and attempt
to download them locally. If that succeeds, create a temporary
container and run it to look up the installed version of the software.

Previously we used a binary metapackage to help determine the source
package name for a given Ubuntu release. The installed binary package
we're looking at in the image is not necessarily the same as the
metapackage, and in some cases its name is versioned like the source
package. So, for example with mysql we have 'mysql-{M.N}' as the source
package, 'mysql-server' as the metapackage used to determine M.N, and
then 'mysql-server-core-{M.N}' as the installed binary package we're
looking up.

6449b6c... by Bryce Harrington

software-versions.sh: Don't print non-existing minor version

For postgres this routine was returning "12." and "13." rather than "12"
and "13".

549712f... by Bryce Harrington

software-versions.sh: Fix quoting

shellcheck flagged some lines as needing quoting that actually need to
not have quoting because we are intentionally using that behavior for
dividing up the parts of a version number.

Restore the original quoting and add a shellcheck disable.

1741756... by Bryce Harrington

software-versions.sh: Document source_package()