Git Product home page Git Product logo

isolate's Introduction

Isolate: a toy-like environment to compile C projects

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.

Contents

How to Install

  1. Clone this repository
git clone [email protected]:sGaps/isolate.git
  1. Open your local copy of the repository
cd isolate
  1. Use the install script (per-user installation)
./install.sh

And that's all.

How to use

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.

Requirements

  • Docker.
  • Linux.

Note that linux is required because we use 'tmpfs' mounts and the installation and program script were written in bash.

TO DO

  • 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.

isolate's People

Contributors

sgaps avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.