This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # inspired by the https://gist.github.com/jaytaylor/86d5efaddda926a25fa68c263830dac1 | |
| registry="http://${registry_user}:${registry_passwd}@${registry_url}/v2" | |
| for repo in `cat repos-todel`; do | |
| for tag in $(curl -sSL "${registry}/${repo}/tags/list" | jq -r '.tags[]?'); do | |
| tagURL="${registry}/${repo}/manifests/${tag}" | |
| sha256=$(curl -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -sSL -I ${tagURL} | awk '$1 == "Docker-Content-Digest:" { print $2 }' | tr -d $'\r') | |
| deleteURL="${registry}/${repo}/manifests/${sha256}" | |
| echo $deleteURL | |
| # curl -v -sSL -X DELETE $deleteUR | |
| done |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare [email protected]:usi-systems/easytrace.git
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"