0
system("docker-compose -p #{ENV['COMPOSE_PROJECT_NAME']} exec #{ENV['BROWSER']} chmod 777 /home/seluser/Downloads")

Running this command from ruby test on Jenkins slave causes error the input device is not a TTY

Locally (on Catalina OS) there's no error.

Analogical docker command works successfully on Jenkins:

system("docker exec \$(docker ps --filter name=#{ENV['BROWSER']}_1 --format {{.ID}}) sudo chmod 777 /home/seluser/Downloads")

What's wrong with docker-compose?

1 Answer 1

2

Found solution here https://github.com/docker/compose/issues/5696 Need to add -T' option and rundocker-compose exec -T -T Disable pseudo-tty allocation. By defaultdocker-compose exec` allocates a TTY.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.