wifi-connect
wifi-connect copied to clipboard
wget and nmcli not found when checking network connectivity
problem
when trying to check network connectivity in start.sh I was getting:
start.sh: line 20: wget: command not found
and
start.sh: line 17: nmcli: command not found
I use a very bare configuration with only the two following files: start.sh Dockerfile.template
solution
In Dockerfile.template
change:
RUN install_packages dnsmasq wireless-tools
for
RUN install_packages dnsmasq wireless-tools wget network-manager
You uncommented the lines in start.sh which run wget
or nmcli
, in which case you correctly realised you need also to add the necessary packages to your Dockerfile.
Dockerfile.template in the repo has '.template' in the name -- you are expected to customise it to the needs of your application and any changes you make to start.sh, as noted in the readme.
Everything seems to have worked as intended. What is the purpose of this ticket you have raised?