Skip to content

Commit d4ea086

Browse files
committed
Update README
1 parent 579a5ee commit d4ea086

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ Container image for OCaml used by CodeRunner.
55
## Usage
66

77
```bash
8-
W=/workspace/
8+
W=/workspace
99
# 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')
10+
BUILD="ocamlbuild -quiet -use-ocamlfind cwtest.native"
11+
C=$(docker container create --rm -w $W ghcr.io/codewars/ocaml:latest sh -c "$BUILD && exec ./cwtest.native")
1212

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
13+
# Copy solution and test files
14+
docker container cp ${1:-examples/basic}/. $C:$W
1615

17-
# Run tests
16+
# Start
1817
docker container start --attach $C
1918
```
2019

0 commit comments

Comments
 (0)