Skip to content

Commit d94dd0e

Browse files
committed
add simple script for docker command
1 parent a88d12a commit d94dd0e

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ SeRu currently supports:
2020
You can use SeRu with our docker image.
2121
Use the following command to run a reduction with docker:
2222
```bash
23+
# Script to use latest image with default config
24+
./seru_docker.sh <input> <test>
25+
# e.g.
26+
./seru_docker.sh in.cue test.sh
27+
28+
# For more flexible control of options
2329
WORKDIR=/data docker run --rm -it -v $(pwd):${WORKDIR} mando9/seru -o ${WORKDIR} -i ${WORKDIR}/<input file> -t ${WORKDIR}/<test script>
2430
# e.g. to use in.cue and test.sh in the current working dir, run
2531
WORKDIR=/data docker run --rm -it -v $(pwd):${WORKDIR} mando9/seru -o ${WORKDIR} -i ${WORKDIR}/in.cue -t ${WORKDIR}/test.sh

seru_docker.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
(
4+
WORKDIR=/data
5+
docker run --rm -it -v "$(pwd)":"${WORKDIR}" mando9/seru -o ${WORKDIR} -i ${WORKDIR}/"$1" -t ${WORKDIR}/"$2"
6+
)

0 commit comments

Comments
 (0)