export REPO_NAME=$(head /dev/urandom | tr -dc a-z | head -c7) export REMOTE_NAME=$(head /dev/urandom | tr -dc a-z | head -c7) http POST http://localhost:24817/pulp/api/v3/repositories/container/container/ name=${REPO_NAME} export REPO_HREF=$(http :24817/pulp/api/v3/repositories/container/container/ | jq -r '.results[] | select(.name == "'"${REPO_NAME}"'") | .pulp_href') http POST http://localhost:24817/pulp/api/v3/remotes/container/container/ name=${REMOTE_NAME} upstream_name='busybox' url='https://registry-1.docker.io' policy='immediate' #download_concurrency=10 # whitelist_tags:="[\"1.3???\"]" #download_concurrency=2 name='library/busybox' export REMOTE_HREF=$(http :24817/pulp/api/v3/remotes/container/container/ | jq -r '.results[] | select(.name == "'"${REMOTE_NAME}"'") | .pulp_href') http POST ':24817'$REPO_HREF'sync/' remote=$REMOTE_HREF`` mirror=False