Closed JimiHFord closed 3 years ago
"wget -qO- https://bit.ly/2ghU6eZ" failed
IMHO: the wget
command is not installed in the server part ( server docker image )
$ docker run -it --rm postgis/postgis:13-3.1 bash -c 'wget -qO- https://bit.ly/2ghU6eZ'
bash: wget: command not found
wget
command.postgis/postgis:13-3.1-alpine
image ( wget
included )example:
docker run -it --rm postgis/postgis:13-3.1-alpine bash -c 'wget -qO- https://bit.ly/2ghU6eZ | head'
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
00622,17.991245, -67.153993
if you want to extend the debian image
curl
, wget
, ... Ah! You're a genius :tada: thank you!!
I think I was looking in the alpine
section when I saw wget
being used. That would explain it. Thanks so much!
I am trying to import zip code data into a table by following this github gist.
I am using https://github.com/go-pg/migrations inside of a go application - here is the migration file:
4_add_zip_codes_table.go
Notice, the original gist suggests using
curl
, but I am pretty surecurl
is not installed in thepostgis/postgis
image (nor is it installed in thepostgres
image). So I changed this line to usewget
instead since it appears as though thispostgis/postgis
image should havewget
installed already.When I run
go run main.go migrate up
, I get the following output:Does anyone know what I might be doing wrong when it comes to the
part?