It will be used for interaction with registries instead of direct API
calls via curl. Skopeo handles OAuth seamlessly. Install it from
official image[1].
Third-party apt repositories may not have packages for latest. Use focal
as base for now until 3rd-party packages for jammy are available. E.g.
azure-cli is not yet available for jammy because jammy moved to libssl3
from libssl1.1.
Ignore Dockerfile so that "COPY . /src" won't invalidate its and
subsequent cached layers when Dockerfile is edited. Also ignore Vim swap
files, .git and .dockerignore itself.
Commit 71cb1a0d ("azurecr: Change namespace from canonical to ubuntu")
changed ACR namespace to Ubuntu. It changed ditionary key from canonical
to ubuntu, which replaced previous key with other registries and so
validation of docker and aws namespaces failed. Fix that by properly
constructing regex for ubuntu namespace.
On new release day and some time after when there's no new devel entry
in /usr/share/distro-info/ubuntu.csv, "distro-info --devel" fails with
"Distribution data outdated." error message. In that case keep
DISTRONAME_DEVEL empty and continue.