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

Pass -T parameter to docker-compose #24

Merged
merged 1 commit into from
May 6, 2022
Merged

Pass -T parameter to docker-compose #24

merged 1 commit into from
May 6, 2022

Conversation

jdlrobson
Copy link
Member

This allows it to run when the input device is not a TTY

This allows it to run when the input device is not a TTY
@jdlrobson jdlrobson merged commit 0a4aafa into main May 6, 2022
@jdlrobson
Copy link
Member Author

Forgot to push this to master.

@@ -78,7 +78,7 @@ async function processCommand( type, opts ) {
// Execute main.js.
await batchSpawn.spawn(
'docker-compose',
[ 'exec', 'mediawiki', '/src/main.js', JSON.stringify( opts ) ]
[ 'exec', '-T', 'mediawiki', '/src/main.js', JSON.stringify( opts ) ]
Copy link
Contributor

@nicholasray nicholasray May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may be causing the script to ignore presses to ctrl-c on one of my laptops (to abort the script), however it seems to respond fine on my other computer so I'm not sure. I think it also disables color output at least for that script. Can you replicate?

Also, what was the original problem? Running the cron job on cloud vps?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try running in a cronjob context locally and you should be able to replicate.

@nicholasray nicholasray deleted the jdlrobson-patch-2 branch March 23, 2023 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants