Image to run and test students' programs written in Java
107
CodeWorkout-java is an image used in CodeWorkout to run and test programming exercises.
This image contains the following libraries, frameworks, and compilers required to run and test Java programs from CodeWorkout:
Add the following config variable to the config.rb file in the CodeWorkout project
JAVA_DOCKER_IMAGE = "patriciomoreno/codeworkout-java:v1.0"
Replace the JAVA variable with the following value:
JAVA = {
ant_cmd: "cd \"%{attempt_dir}\"; docker run --rm " \
"-v $(pwd):$(pwd) " \
"-w $(pwd) " \
"-e \"ANT_OPTS=-ea " \
"-Dant.home=#{ANT_HOME} " \
"-Dresource_dir=#{APP_DIR}/usr/resources/Java " \
"-Dwork_dir=#{APP_DIR}/%{attempt_dir}\" " \
"#{JAVA_DOCKER_IMAGE} bash --login " \
"ant " \
"-Dattempt_dir=%{attempt_dir} " \
"-Dbasedir=. " \
"-l ant.log " \
"-f ../../../../usr/resources/Java/build.xml"
}
Content type
Image
Digest
Size
295.9 MB
Last updated
over 8 years ago
docker pull patriciomoreno/codeworkout-java:v1.0