npm install shows docker registry password
On a Windows 10 machine, I've cloned the repo and ran npm install without having Docker Desktop running.
I was greeted by error messages like these, which included a password:
> root@ postinstall:r11s D:\FluidFramework
> cd server/routerlicious && npm run registryAuth
> root@ registryAuth D:\FluidFramework\server\routerlicious
> docker login -u prague -p A_PASSWORD_WAS_HERE prague.azurecr.io
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/auth: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ registryAuth: `docker login -u prague -p A_PASSWORD_WAS_HERE prague.azurecr.io`
npm ERR! Exit status 1
After starting Docker, install succeeds. It still shows the password in the log - do we care about it?
The password being shown isn’t an issue at the moment, but should be addressed eventually. We can use this issue to track that. The other issue is tracked by #41.
It's an intentionally insecure thing we've done to simplify the setup process and keep as few commands as possible to get up and running.
We will need to remove prior to open sourcing. At which point the containers should be available on the public Docker Hub.
This is removed in PR #2148 already