erikhu / docker-algs4

docker to command line of algs4 princenton university

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOCKER FILE TO ALGS4 OF PRINCENTON COURSE

if you don't want to do all the task to configure your computer and run algs4 in command line you can build a image and run it.

command line:

Build the image:

docker build . -t algs4

If you wish compile some file:

docker run --rm -v $(pwd):/workspace algs4 javac-algs4 <FILE.java>

Run some compiled file:

docker run --rm -v $(pwd):/workspace algs4 java-algs4 <Class>

Run multiple commands example:

docker run --rm -v $(pwd):/workspace algs4 /bin/bash -c "java-algs4 MoveToFront - < abra.txt | java-algs4 edu.princeton.cs.algs4.HexDump 16"

About

docker to command line of algs4 princenton university


Languages

Language:Dockerfile 100.0%