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

Run multiple files #17

Open
mama00 opened this issue Feb 24, 2021 · 2 comments
Open

Run multiple files #17

mama00 opened this issue Feb 24, 2021 · 2 comments

Comments

@mama00
Copy link

mama00 commented Feb 24, 2021

Is there a way to run multiple files in one docker?

@psviderski
Copy link
Contributor

Do you mean to run multiple commands/processes with one epicbox.run? I guess you can try to pass a command like "/bin/command1 arg1 arg2 && command2 argX argY". Eventually the command that is executed in a container is wrapped into /bin/sh -c: https://github.com/StepicOrg/epicbox/blob/master/epicbox/sandboxes.py#L68

@mama00
Copy link
Author

mama00 commented Feb 25, 2021

Cant I use the stdin parameter to pass the input to each of the command/process? And also how costly would it be to run a compiler online with epicbox? I mean you have a thousand of request to compile untrusted code. For each of theses requests a container is created

@mama00 mama00 closed this as completed Feb 25, 2021
@mama00 mama00 reopened this Feb 25, 2021
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