-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 0b9c4e6.
- Loading branch information
Showing
6 changed files
with
20 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
FROM mambaorg/micromamba:1.5.8 | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yaml /tmp/env.yaml | ||
RUN micromamba install -y -n base -f /tmp/env.yaml && \ | ||
micromamba clean --all --yes | ||
USER mambauser | ||
COPY --chmod=755 run.sh /tapis/run.sh | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER main.py . | ||
ENV PATH="/opt/conda/bin:${PATH}" | ||
ENTRYPOINT [ "/tapis/run.sh" ] | ||
FROM debian:bullseye-slim | ||
|
||
COPY run.sh /bin/run.sh | ||
|
||
RUN chmod +x /bin/run.sh | ||
|
||
ENTRYPOINT [ "run.sh" ] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
#!/bin/bash | ||
# $1: input file | ||
# $2: output file | ||
|
||
if [ "$#" -ne 2 ]; then | ||
echo "Usage: run.sh <input_file> <output_file>" | ||
exit 1 | ||
fi | ||
echo "Your command line args (appArgs) are: $@" | ||
|
||
# Run the main.py file with the input and output file | ||
python main.py ${1} ${2} | ||
Greeting=$1 | ||
Target=$2 | ||
|
||
FULL_GREETING="${Greeting} ${Target}. My name is ${_tapisJobOwner}" | ||
echo "$FULL_GREETING" | ||
echo `pwd` | ||
echo ${_tapisJobWorkingDir} | ||
|
||
fileToModify=$_tapisExecSystemInputDir/in.txt | ||
|
||
echo $FULL_GREETING > $_tapisExecSystemOutputDir/out.txt |
This file was deleted.
Oops, something went wrong.