We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579a5ee commit d4ea086Copy full SHA for d4ea086
1 file changed
README.md
@@ -5,16 +5,15 @@ Container image for OCaml used by CodeRunner.
5
## Usage
6
7
```bash
8
-W=/workspace/
+W=/workspace
9
# Create container
10
-C=$(docker container create --rm -w $W ghcr.io/codewars/ocaml:latest \
11
- sh -c 'ocamlbuild -quiet -use-ocamlfind test.native && exec ./test.native')
+BUILD="ocamlbuild -quiet -use-ocamlfind cwtest.native"
+C=$(docker container create --rm -w $W ghcr.io/codewars/ocaml:latest sh -c "$BUILD && exec ./cwtest.native")
12
13
-# Write solution and tests in workspace/fixture.ml
14
-# Then copy it inside a container
15
-docker container cp workspace/fixture.ml $C:$W/fixture.ml
+# Copy solution and test files
+docker container cp ${1:-examples/basic}/. $C:$W
16
17
-# Run tests
+# Start
18
docker container start --attach $C
19
```
20
0 commit comments