datakind / dk-routing

Container-based Action Routing Tool (CART)
MIT License
6 stars 11 forks source link

wget: missing URL Usage: wget [OPTION]... [URL]... #33

Closed kashivirus closed 9 months ago

kashivirus commented 1 year ago

Step 10/52 : RUN wget --no-check-certificate $osm_download_url ---> Running in 09d05ad32c29 wget: missing URL Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

Zebreu commented 1 year ago

You didn't indicate which script you ran, but if you tried to do a simple docker build as is, it's missing arguments and probably would produce this error.

https://github.com/datakind/dk-routing/blob/main/dkroutingtool/create_application_after_config.sh provides an URL

kashivirus commented 1 year ago

i ran this one sh s_build_docker_dev.sh

Zebreu commented 1 year ago

You'll need yq to parse the url and the build should work on Linux but may not on any other OS. In any case, you can make sure that the environment variable (osm_download_url) is properly parsed from build_parameters.yml or if that still doesn't work, you can modify the lines in the Dockerfile so they're hard coded for your use.