Coder Social home page Coder Social logo

exercism-docker's Introduction

Exercism Docker

Here are Docker images that can be used to quickly get up and running with the online code learning platform Exercism. Part of the experience of learning a new programming language is setting up the tooling and environment, but it's not always desirable to install a lot of software just to experiment with a new language. This project aims to use containerization to isolate the Exercism track environment from the rest of the host system. Not affiliated with Exercism, Inc.

Installation

Requires Docker.

Build the base Docker image:

make build_base_image

Build a track-specific image:

TRACK=<track-name> make build_track_image

E.g.:

make build_base_image && TRACK=python make build_track_image

Usage

Run a track's container (requires an exercism.org CLI token):

TOKEN=<my-exercism-token> \
  TRACK=<track-name> \
  make run_track

Running the above command will drop you into a bash prompt on the running container. Exercism track code is saved in the /workspace directory on the container, which is mounted from ./workspace on the host machine in the root directory of this project. On the container, you can use the exercism CLI tool to download exercises, e.g.:

root@68483403b74e:/workspace/python# exercism download --exercise=hello-world --track=python

Supported Tracks:

The TRACK environment variable for the above usage commands is cpp, e.g.

TOKEN=<my-exercism-token> TRACK=cpp make run_track

Local port 4000 will be bound to the nrepl port on the container, but this can be overridden with an env var, e.g.:

LEIN_REPL_PORT=4444 \
  TOKEN=<my-exercism-token> \
  TRACK=clojure \
  make run_track

exercism-docker's People

Contributors

2pd avatar bi1yeu 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.