-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker - the input device is not a TTY #967
Comments
Unfortunately no -- I don't know what the issue is there. Perhaps there is more info in docker documentation. |
I'll dig out the documentation. Is there a particular reason for using |
Hmm, I don't remember what the reason was -- we have been through some different versions. Docker is kind of great -- but it is also kind of a pain. Different pipelines have different requirements. One size definitely does not fit all cases. |
Yes, definitely. I actually was thinking in trying something like this:
|
This is a very tricky thing to do since there is an existing default set of arguments. What would be your proposal for managing this? Another approach to consider is a documented template approach similar to what we did here... https://github.com/garris/BackstopJS#if-you-just-upgraded-to-2x-or-3x I am open to suggestions. |
I have the same issue.
I sent a PR earlier to make docker run more customizable: #925 If anyone comes up with a cleaner design, I'm more than happy to put together another pull request. |
The solution in #925 worked for me. Working both locally and on our build machines. It seems as though the only change after passing "-t=false" is that the output of puppeteer is no longer colorized. |
Any news on that? How did you get this working @josephthomashines? The PR #925 is still open. |
@screendriver I just installed from the fork made for #925 , and passed the option in the config. package.json backstop config |
@screendriver @josephthomashines @gyanta @andrepm06 I very much appreciate @gyanta 's PR. But before going forward with that I want to propose a different option... Contex: A similar issue happened with output filenames. There were a few requests asking to modify this-or-that part of the filename -- and proposals for multiple parameters were coming in. To solve this we simply added a fileNameTemplate -- which could be used to give output filenames a completely custom/arbitrary structure but would also allow users to apply runtime parameters where needed -- described in short here... https://github.com/garris/BackstopJS#if-you-just-upgraded-to-2x-or-3x I would like to propose doing this with the docker command. This way as new docker features/formats or user/environment needs arize, devs will be free to change this command in any arbitrary way. One could even run some other wrapper or other container system or even some arbitrary shell command for that matter. Anyway, more specifically I'd propose a parameter like...
where internally replacements are done against these runtime variables...
So something simple like changing parameters would look like...
But you could also do something radical like...
So that's one fairly future-proof API change. Thoughts? |
No worries about the delay, I think that this approach is a great idea! It would allow for small tweaks, like the one I need to make, but also could open doors to more complex setups. |
I agree @garris, this is the right way to do it, I'd prefer this over my PR. |
Thanks guys, I appreciate the consideration! And I appreciate all the patience too -- I wish I could be better about following up quicker. So busy 😅 |
I'm fine with that as well |
Great -- thanks for the follow up. And yes, should be a bit less code -- which is a good thing. 🙂 |
@garris @screendriver @josephthomashines @andrepm06 Not sure if anyone else is already working on this - would you mid having a look at #1013? |
I'm trying to run my tests on a TFS build. However, I got the following error:
the input device is not a TTY
I know that this is related to
-it
flag ondocker run
command, but I'm afraid that i cannot remove this flag without submitting a PR (I dont know why backstop uses-it
also) and I cannot activate tty on the server in which TFS is running.Any ideas about that?
The text was updated successfully, but these errors were encountered: