Skip to content

Commit

Permalink
fix: add script
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed May 27, 2024
1 parent 0b9c4e6 commit 99d01d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ RUN micromamba install -y -n base -f /tmp/env.yaml && \
USER mambauser
COPY --chmod=755 run.sh /tapis/run.sh
COPY --chown=$MAMBA_USER:$MAMBA_USER main.py .
COPY --chown=$MAMBA_USER:$MAMBA_USER dataset.csv .
ENV PATH="/opt/conda/bin:${PATH}"
ENTRYPOINT [ "/tapis/run.sh" ]
13 changes: 10 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
id
ls -la
python main.py ${1} ${2}
# $1: input file
# $2: output file

if [ "$#" -ne 2 ]; then
echo "Usage: run.sh <input_file> <output_file>"
exit 1
fi

# Run the main.py file with the input and output file
python main.py ${1} ${2}
File renamed without changes.

0 comments on commit 99d01d3

Please sign in to comment.