Vendor Galaxy Roles and Collections
This commit is contained in:
parent
c1e1897cda
commit
2aed20393f
3553 changed files with 387444 additions and 2 deletions
25
ansible_collections/community/docker/tests/images/copy-images.sh
Executable file
25
ansible_collections/community/docker/tests/images/copy-images.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set -e
|
||||
|
||||
# Uncomment the container image to copy, and run this script to copy it.
|
||||
|
||||
DESTINATION_REPO=ansible-collections/community.docker
|
||||
|
||||
function convert_image {
|
||||
echo "========================================================================================================="
|
||||
local IMAGE_NAME="$1"
|
||||
local DEST_IMAGE="$2"
|
||||
echo "FROM ${IMAGE_NAME}" | podman build --annotation "org.opencontainers.image.source=https://github.com/${DESTINATION_REPO}" -t "ghcr.io/${DESTINATION_REPO}/${DEST_IMAGE}" -
|
||||
podman push "ghcr.io/${DESTINATION_REPO}/${DEST_IMAGE}"
|
||||
podman rmi "${IMAGE_NAME}"
|
||||
podman rmi "ghcr.io/${DESTINATION_REPO}/${DEST_IMAGE}"
|
||||
}
|
||||
|
||||
# convert_image docker.io/library/registry:2.6.1 docker-distribution:2.6.1
|
||||
# convert_image docker.io/library/registry:2.8.3 docker-distribution:2.8.3
|
||||
# convert_image docker.io/library/registry:3.0.0 docker-distribution:3.0.0
|
||||
convert_image docker.io/library/python:3-alpine docker-python:3-alpine
|
||||
Loading…
Add table
Add a link
Reference in a new issue