node-red / node-red-docker

Repository for all things Node-RED and Docker related
Apache License 2.0
469 stars 382 forks source link

Cannot build custom docker due to known_hosts.sh failling #344

Closed fbbln closed 1 year ago

fbbln commented 1 year ago

What are the steps to reproduce?

Clone repository off of github, run script docker-alpine.sh or docker-debian.sh in the folder docker custom.

What happens?

Build fails with message:

10 3.854 ssh-keyscan failed, no more retries left

What do you expect to happen?

I expect the build script not to fail.

Checks done already

Please tell us about your environment:

[ ] Platform/OS: Windows 10, WSL2, Docker Desktop with Engine v20.10.17

fbbln commented 1 year ago

It works once the keyscan for the above mentioned domain is commented out.

hardillb commented 1 year ago

Duplicate https://github.com/node-red/node-red-docker/issues/341

Are you in China? This is a problem with your government firewall blocking access to Google's source code platform.

fbbln commented 1 year ago

No. Location is DE. I can reach the domain using browser but it redirects me to https://source.cloud.google.com/onboarding/welcome.

Yet, it seems the company firewall is the issue, blocking port 2022 by default.

hardillb commented 1 year ago

OK, still the same problem, blocked by local firewall.

You can either comment out the Google domain or extend the published containers to build a custom image.

fbbln commented 1 year ago

I commented out the domain. I need an image without healthcheck to run on my Synology and the run command there seems to ignore the "--no-healthcheck" option. So extending the published image is not an option.

hardillb commented 1 year ago

Why do you need to remove the healthcheck? it's part of the Docker spec and should work everywhere.

fbbln commented 1 year ago

My usecase is just some basic home-automation with not much action when nobody's home or at night. Healthcheck is running every 30s and writing its status to disk. This effectively keeps the disks in the Synology spinning all the time. As the system is basically idle for 12+h/day, there's no need for the disks to keep spinning and waste 10W ...

By disabling healthcheck I hope to overcome this. Passing --no-healthcheck or a different interval to docker run did not seem to work.

hardillb commented 1 year ago

OK, so this is specific to your use case, not some generic Synology error we need to fix.

As you are already editing the Docker file to remove the healthcheck then removing the Goolge git server from the keyscan section is sensible solution.

fbbln commented 1 year ago

Well, this is an issue often encountered with Synology or similar NAS (the web is full of such issues). So it may make sense to publish a "non-healthcheck"-Version... In the Dockefile.custom the healthcheck is disabled anyway, so I just had to remove the Google Server.