Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic code execution using containers

Shell script for automatically detect the extension of a given script and execute its code.

Requisites

For the implementation, it is highly recommended the use of Play with Docker.

How to implement

Clone the repository

git clone https://github.com/adechlien/dockerexec/
cd dockerexec

Build and run the script

./autoexec.sh sample.<ext>

Sample files

samples/ directory contains the following files:

  • sample.cpp: For C++
  • sample.py: For Python
  • sample.js: For JavaScript
  • sample.rb: For Ruby
  • sample.java: For Java

Usage example

Running

./autoexec.sh sample.js

Output:

Hello from JavaScript!
Time execution: 820ms

Members

🐺 Kidman Cabana
🐨 Alejandro Hernández

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages