⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Container Support
Overview
Roadmap
Issues
Gantt
Agile board
Calendar
Wiki
Repository
Download (878 Bytes)
Issue #7124
ยป dockersync-busybox.bash
lmjachky
, 07/13/2020 12:51 PM
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
(1-1/1)
Loading...