~toabctl/ubuntu-docker-images/+git/utils:software-versions-image-extraction

Last commit made on 2021-04-17
Get this branch:
git clone -b software-versions-image-extraction 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:
software-versions-image-extraction
Repository:
lp:~toabctl/ubuntu-docker-images/+git/utils

Recent commits

ffa0606... by Bryce Harrington

software-versions.sh: Add a README

4c140a7... 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.

7e823f1... 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".

a44f42b... 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.

0b2f34f... by Bryce Harrington

software-versions.sh: Document source_package()

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...)