Skip to content

hobovsky/ocaml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCaml Image

Container image for OCaml used by CodeRunner.

Usage

W=/workspace/
# Create container
C=$(docker container create --rm -w $W ghcr.io/codewars/ocaml:latest \
    sh -c 'ocamlbuild -quiet -use-ocamlfind test.native && exec ./test.native')

# Write solution and tests in workspace/fixture.ml
# Then copy it inside a container
docker container cp workspace/fixture.ml $C:$W/fixture.ml

# Run tests
docker container start --attach $C

Building

docker build -t ghcr.io/codewars/ocaml:latest .

About

Container image for OCaml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 57.3%
  • Dockerfile 42.7%