Giter Site home page Giter Site logo

docker-efrei-arena's Introduction

Efrei Arena Docker image

This image is based on Debian image.

You actually have to rebuild the image for each student, because the code may change; it still is pretty straightforward though.

How to build

$ git clone https://github.com/Strift/docker-efrei-arena.git
$ cd docker-efrei-arena
$ git clone https://github.com/Chtwin/Link-Rupees-Rush.git # The arena repo
$ docker build -t username/image-name \ # Choose a name for your image
               --build-arg REPO_PATH=./Link-Rupees-Rush \ # In this case, the arena repository is in the same directory
               --build-arg FILE_PATH=./path/to/file.c \ # The path to the student code to be evaluated
               . # The Dockerfile location; the current directory in this case

How to run

$ xhost local:docker # to allow X11 forwarding and display for the docker user, assuming you don't need to 'sudo' for docker
$ xhost local:root # I guess you should run this one instead if you need to 'sudo' for docker
$ docker run -it \ # So we get an interactive process
             -v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket
             -e DISPLAY=unix$DISPLAY \
             --device /dev/snd \ # so we have sound
             username/image-name # Same image name as in the build step

docker-efrei-arena's People

Contributors

strift avatar

Watchers

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