Sign inSign up

patriciomoreno/codeworkout-java

By patriciomoreno

•Updated over 8 years ago

Image to run and test students' programs written in Java

Image
0

107

patriciomoreno/codeworkout-java repository overview

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:

  • JDK version "1.8.0_151"
  • ANT
  • CodeWorkout Java resources

⁠How to use this image in CodeWorkout Project?

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"
    }

Tag summary

Content type

Image

Digest

Size

295.9 MB

Last updated

over 8 years ago

docker pull patriciomoreno/codeworkout-java:v1.0