Skip to content

Commit

Permalink
Revert "fix: add docker image"
Browse files Browse the repository at this point in the history
This reverts commit 0b9c4e6.
  • Loading branch information
mosoriob committed May 27, 2024
1 parent 99d01d3 commit e6232e9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/.docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: in-for-disaster-analytics/cookbook-template-conda #change {Template}
IMAGE_NAME: in-for-disaster-analytics/cookbook-template-simple #change {Template}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
Expand Down
16 changes: 7 additions & 9 deletions Dockerfile
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" ]
6 changes: 0 additions & 6 deletions environment.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions main.py

This file was deleted.

20 changes: 12 additions & 8 deletions run.sh
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
15 changes: 0 additions & 15 deletions tests/data/dataset.csv

This file was deleted.

0 comments on commit e6232e9

Please sign in to comment.