I am building an online ide and I am planning to run the codes in the isolated docker containers . Is there any way to pass the data to the containers using bash, so I can. Trigger the compilers in the containers with the shared data | Hashnode
I am building an online ide and I am planning to run the codes in the isolated docker containers . Is there any way to pass the data to the containers using bash, so I can. Trigger the compilers in the containers with the shared data
Why you want to pass data to containers using BASH only ?
As your IDE is online, build an API to receive data inside containers. If you need to execute BASH commands you can easily done it from the programming language itself.
Like in Java, you can use Runtime.getRuntime().exec("Your Bash Command"); to execute bash commands from code itself and read the output generated.
Just pass the commands though API as text and execute the bash commands.
Atul Sharma
Full Stack Developer | Cloud Native Applications
Why you want to pass data to containers using BASH only ?
As your IDE is online, build an API to receive data inside containers. If you need to execute BASH commands you can easily done it from the programming language itself.
Like in Java, you can use
Runtime.getRuntime().exec("Your Bash Command");to execute bash commands from code itself and read the output generated.Just pass the commands though API as text and execute the bash commands.