Thanks for the suggestions Ori - I tried Option A (using /usr/bin) and that
installed it. But, I then had trouble actually getting it to run:

In git bash, running `fresh-node` resulted in the error
> the input device is not a TTY.  If you are using mintty, try prefixing
the command with 'winpty'

I tried to run the command in command prompt instead, since I understand
that it is TTY. I navigated to where the actual fresh-node file was
(C:\Program Files\Git\usr\bin>) and ran `bash fresh-node` with the result:
```
fresh-node: line 12: basename: command not found
fresh-node: line 13: basename: command not found
fresh-node: line 123: uname: command not found
/usr/bin/env: 'sh': No such file or directory
```

so I then tried harder to get it to work in git bash. A bit of testing and
internet research later about the TTY issue, and I found that the cause of
the TTY failure was that the fresh-node script has a line
`docker_args+=("--interactive" "--tty")`. I replaced this with
`docker_args+=("--interactive")` and then tried to run fresh-node again.

This time, it looked like it was starting to work, saying that it couldn't
find the 'docker-registry.wikimedia.org/releng/node10-test-browser:0.6.3-s2'
image locally and so downloaded it. However, after it downloaded, there was
an error:
```
docker: Error response from daemon: OCI runtime create failed:
container_linux.go:380: starting container process caused: exec:
"C:/Program Files/Git/usr/bin/sh": stat C:/Program Files/Git/usr/bin/sh: no
such file or directory: unknown.
```

and repeated attempts to run `fresh-node` produce the same error (without
trying to download the image again).

Looking through file explorer, "C:/Program Files/Git/usr/bin/sh" does
appear to exist (it's a 1918 KB application).

So, what I'm wondering is:
* what is the correct way to *run* fresh-node on windows once it is
downloaded to /usr/bin?
* is this Docker error because I removed the --tty parameter? Or is it
something else?

Thanks,
--DannyS712

P.S.: sorry if I messed up the thread by emailing wikitech-l directly
instead of replying to the prior message, I get the mailing list in digest
mode, though I've just switched it to regular for now. This was meant to be
part of the thread at
https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/PZBTLTN5MJMWQ2ULVCYIFYDM4RKDQZUO/
_______________________________________________
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

Reply via email to