Simple enviroment that lets you compile programs written in C.
This utility copies the file or directory provided on the CLI and put it in a place to compile or debug the target file/project.
This was made to test the programs designed by students from a course of Programming Fundamentals.
- Clone this repository
git clone [email protected]:sGaps/isolate.git
- Open your local copy of the repository
cd isolate
- Use the install script (per-user installation)
./install.sh
And that's all.
In your terminal, write the following command to get information about the utility.
isolate
After that, the command will show something like this:
Usage:
run-isolate [FILE]
Description:
Command that lets you run gcc and gdb into an isolated environment with capped results
This command expects a file or Directory as an argument, so this command
isolate test/example.c
Will copy the file test/example.c
inside /mnt/isolated
whereas this one:
isolate test/
will copy the directry test
inside /mnt/isolated
Once the new shell opens, you can use the commands gcc
, gdb
or other commands
to start to test the code of your students.
- Docker.
- Linux.
Note that linux is required because we use 'tmpfs' mounts and the installation and program script were written in bash.
- Create a new user instead of using 'root' as default.
- Create an easy way to debug C programs.
- Simplify the installation process.
- Unmount /mnt/external after initializing the container.