Skip to content
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

Terminal check breaks use in Dockerfile #15

Open
rahulpowar opened this issue Sep 27, 2020 · 3 comments
Open

Terminal check breaks use in Dockerfile #15

rahulpowar opened this issue Sep 27, 2020 · 3 comments

Comments

@rahulpowar
Copy link

Had trouble using this in a Dockerfile build and finally figured out that the check here:

if terminal.IsTerminal(int(syscall.Stdin)) {

... meant I had to echo the URL and pipe which is a bit unexpected as below.

RUN    echo 'https://drive.google.com/file/d/13oKu33Fj0cwH661apA2_vsjn9rT1NkEb/view?usp=sharing' | /tmp/goodls_linux_amd64 --np -f vocoder.pth.tar && \
    echo 'https://drive.google.com/file/d/1qN7vQRIYkzvOX_DtiZtTajzoZ1eW1-Eg/view?usp=sharing' | /tmp/goodls_linux_amd64 --np -f vocoder.json 
@tanaikech
Copy link
Owner

Thank you for your comment. In that case, in my environment, the following command can also work. How about this?

$ /tmp/goodls_linux_amd64 --np -f vocoder.pth.tar -u 'https://drive.google.com/file/d/###/view?usp=sharing' && /tmp/goodls_linux_amd64 --np -f vocoder.json -u 'https://drive.google.com/file/d/###/view?usp=sharing'

@rahulpowar
Copy link
Author

Yes that is what I was doing normally in a shell.

However when running inside a Dockerfile build, there is no Terminal and the code path I highlighted above triggers so I need to construct the piped command. I think the std in detection could be revised.

@tanaikech
Copy link
Owner

Thank you for quick reply. I could understand about the situation. In the current stage, I have no environment for testing it with "Dockerfile build". So in this case, I would like to display your comment at https://github.com/tanaikech/goodls#qa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants