Skip to content

Commit 9b68ede

Browse files
committed
Variable for run type
1 parent 63e72b2 commit 9b68ede

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ CMD python argU/preprocessing/mongodb.py -i /input \
3838
&& cp /terrier-core-4.2/var/results/DPH_0.res /ArgU/resources/terrier.res \
3939
&& rm /terrier-core-4.2/var/results/DPH_0.res \
4040
&& python -m argU -d \
41-
&& python -m argU -m -s $RUNTYPE -o /output
41+
&& python -m argU -m -s $RUN_TYPE -o /output

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- Build the image
1616
2. ` $ docker run --name argu-mongo -p 27017:27017 -d --rm mongo `
1717
- Starts a MonoDB container
18-
3. ` $ docker run -e RUNTYPE=<run-type> -v <input-dir-path>:/input -v <output-dir-path>:/output --name argu --rm -it --network="host" argu `
18+
3. ` $ docker run -e RUN_TYPE=<run-type> -v <input-dir-path>:/input -v <output-dir-path>:/output --name argu --rm -it --network="host" argu `
1919
- Runs the container
2020
- Run Types
2121
- ` None `: No sentiments

Diff for: tira_run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22

3-
while getopts S:i:o: option
3+
while getopts s:i:o: option
44
do
55
case "${option}"
66
in
@@ -11,5 +11,5 @@ esac
1111
done
1212

1313
docker run --name argu-mongo -p 27017:27017 -d --rm mongo
14-
docker run -e RUNTYPE=$runType -v $inputDataset:/input -v $outputDir:/output --name argu --rm -it --network="host" argu
14+
docker run -e RUN_TYPE=$runType -v $inputDataset:/input -v $outputDir:/output --name argu --rm -it --network="host" argu
1515
docker stop argu-mongo

0 commit comments

Comments
 (0)