Skip to content

Commit

Permalink
GH-621 - remove some debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
chb0github committed Oct 9, 2023
1 parent 5afd562 commit 5182422
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/bulkimport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,10 @@ function repos {
# the URL that comes in the original payload refers to the UI endpoint. Dumb
jq -re --arg u "${url}" '.docker_remap[] | "\($u)/\(.key)"' "${tempJson}" |
#grab the docker-local repos. Curl when used this xargs doesn't seem to be picking up the alias
xargs -n 10 -P 10 curl -snLf | tee onlydocker.json |
xargs -n 10 -P 10 curl -snLf |
# this was literally the only field we couldn't get from before and, apparently it's no longer possible to
# even set docker V1 in RT (even though there is a check, you get an error if you try). But for legacy reason, we
# have to go fetch them. This would be 1 line to simply fetch all repo data and remap it. But SOMEONE is worried about
# scalability
# have to go fetch them.
jq -sre 'map(.dockerApiVersion |= ascii_downcase)' |
# combined step 1 with the tf state and step 3, and give them saner names. But what if they have no tf file??
cat "${tempJson}" - | jq -sre '
Expand Down

0 comments on commit 5182422

Please sign in to comment.