Giter VIP home page Giter VIP logo

runner's Introduction

codewars/runner

Issue tracker for CodeRunner used on Codewars and Qualified.

Reporting Issues

Please report any language related issues here.
For anything else about Codewars, please use codewars/codewars.com.

Feature Requests

Please open new issues using appropriate issue templates.

Code

CodeRunner itself is not open source, but it's roughly equivalent to the following:

$ WORKDIR=/workspace/
# Create a container
$ C=$(docker container create --rm -w $WORKDIR language-image cmd args)
# Copy files
$ files | preprocess | docker container cp - $C:$WORKDIR
# Run
$ docker container start --attach $C | postprocess
  • WORKDIR is not always /workspace/ and can be a subdirectory of it (planned to be standardized in the future)
  • preprocess is responsible for the file layout and any code modifications necessary for backwards compatibility (e.g., concatenation)
  • postprocess transforms the output when necessary (e.g., Codewars test output from JSON)

Images can be used with local files by changing the step to copy the files:

$ docker container cp ./files/. $C:$WORKDIR
#                            ^^
#                            copy contents and not itself

Container images are available on DockerHub under qualified.

Contributing

Contributions are welcomed!

For now, please look at the following places:

Feel free to open issues to ask us if you'd like to contribute in other ways.

Supported Languages

Stable

Beta

Requested

See issues with language request label.

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.