~virtustom/ubuntu-docker-images/+git/utils:my-registries

Last commit made on 2022-03-23
Get this branch:
git clone -b my-registries https://git.launchpad.net/~virtustom/ubuntu-docker-images/+git/utils
Only Tomáš Virtus can upload to this branch. If you are Tomáš Virtus please log in for upload directions.

Branch merges

Branch information

Name:
my-registries
Repository:
lp:~virtustom/ubuntu-docker-images/+git/utils

Recent commits

b4fec6b... by Tomáš Virtus

local test: Add my registries

c473f1e... by Tomáš Virtus

Merge azurecr into main [a=virtustom] [r=sergiodj]

Add support for Azure

MP: https://code.launchpad.net/~virtustom/ubuntu-docker-images/+git/utils/+merge/416326

db92f1c... by Tomáš Virtus

Add support for Azure

Support for Azure is added to most* of the scripts. For scripts to work
with Azure, az tool from azure-cli[1] package must be present in PATH.
Aside from usage strings, the scripts are not changed. The support is
added as specialization of generic functions in lib/ and helpers/.

Dockerfile is also updated to install azure-cli from Microsoft
repository.

* push-images.sh script is not updated as it needs bigger rewrite. It
  doesn't use functions in lib/ and helpers/.

[1] https://docs.microsoft.com/en-us/cli/azure/

64f21ec... by Tomáš Virtus

Use namespaced registry URL for API calls

Currently the URL is constructed from $REGISTRY_URL and $NAMESPACE. This
works on Docker Hub and AWS ECR. However, in Azure CR, the namespace is
subdomain of azurecr.io. Base all API calls on $REGISTRY_NAMESPACE_URL
instead which is constructed in respective _login_$REGISTRY_registry1.

2c86588... by Tomáš Virtus

Put supported registries and namespaces into dictionary

Validation functions worked with data, registries and namespaces,
hardcoded. To simplify adding more registries and namespaces, put them
into single dictionary. The dictionary maps namespace names into
registry regexes.

7163923... by Tomáš Virtus

Docker only supports ubuntu namespace, fix usage

02e635a... by Tomáš Virtus

tag_image(): proper cleanup and return

As in previous commit, traps are replaced by cleanup within the
function, and errors are returned (early).

22ef7fd... by Tomáš Virtus

print_manifest_for_image(): proper cleanup and return

The trap is replaced on each call of the function, so previously created
temporary files are not removed. Also on error return value is still 0.
Instead of checking for HTTP status, let the curl fail on non-success
status by passing -f switch.

b407383... by Athos Ribeiro

Add script to pull snap squashfs artifacts from LP

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

af73524... by Athos Ribeiro

Add Dockerfile to run image tagger

This patch adds a Dockerfile which installs all needed dependencies to
run the image tagger. This should also serve as documentation on how to
properly set one's environment to run the image tagger scripts.

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