Use curl to download files instead of wget

This commit is contained in:
Yifan Gao
2018-01-06 05:40:13 +08:00
parent 857d980952
commit b856edc7ff

View File

@@ -17,8 +17,8 @@ get_asn(){
}
prepare_data(){
wget http://bgp.potaroo.net/as1221/asnames.txt -O asnames.txt
wget http://archive.routeviews.org/dnszones/rib.bz2 -O rib.bz2
curl -sSLo asnames.txt http://bgp.potaroo.net/as1221/asnames.txt
curl -sSLo rib.bz2 http://archive.routeviews.org/dnszones/rib.bz2
log_info "runing bgpdump ..."
docker run -it --rm -v `pwd`:/bgpdump -w /bgpdump gaoyifan/bgpdump bgpdump -m -O rib.txt rib.bz2
log_info "done"