~toabctl/ubuntu-docker-images/+git/utils:allow-dockerhub-registry-for-base-image

Last commit made on 2021-06-21
Get this branch:
git clone -b allow-dockerhub-registry-for-base-image 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 information

Name:
allow-dockerhub-registry-for-base-image
Repository:
lp:~toabctl/ubuntu-docker-images/+git/utils

Recent commits

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

bb5f669... by Paride Legovini

Always speficy a filter when calling `jq`.

See https://github.com/stedolan/jq/issues/1110 (still affecting Bionic).

1e5749b... 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>

8ae3f8f... by Bryce Harrington

Add query-dockerhub-repo

Retrieves information about the Ubuntu OCI images from docker and dumps
the info as JSON data.

Example usage:

  $ ./query-dockerhub-repo | jq '.[] | .name'
  "cortex"
  "nginx"
  "redis"
  "postgres"
  "apache2"
  "prometheus"
  "mysql"
  "memcached"
  "grafana"
  "telegraf"

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>