Skip to content

Commit

Permalink
feat(): Add an option for analizing docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanTaheriGhaleTaki committed Jul 14, 2024
1 parent 72280c8 commit e86287a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion best403unlocker
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,17 @@ function change_dns () {
}

function download() {
if [[ $file_url == docker://* ]]; then
timeout $timeout skopeo copy $file_url dir:/tmp/$1 > /dev/null 2>&1
else
timeout $timeout wget -q -O /tmp/$1 --no-dns-cache $file_url
fi

}

function download_speed() {
du -s /tmp/$1 >> $DATABASE_PATH
rm /tmp/$1
rm -rf /tmp/$1
}

loggin(){
Expand Down
3 changes: 3 additions & 0 deletions best403unlocker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@
#########################

file_url=https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-16.8.0-ce.0.el7.x86_64.rpm/download.rpm
### You can analize docker images too
###you should use this pattern docker://[image name]
#file_url=docker://quay.io/openstack.kolla/kolla-toolbox:master-ubuntu-jammy
dns="178.22.122.100 185.51.200.2 192.104.158.78 194.104.158.48 172.29.0.100 172.29.2.100 78.157.42.101 78.157.42.100 10.202.10.202 10.202.10.102 185.55.226.26 185.55.225.25 10.202.10.10 10.202.10.11 9.9.9.9 8.8.8.8 8.8.4.4 1.1.1.1 1.0.0.1 194.26.21.21 194.26.21.26 87.107.52.11 87.107.52.13 5.202.100.100 5.202.100.101"
timeout=6s

0 comments on commit e86287a

Please sign in to comment.