diff --git a/Dockerfile b/Dockerfile index bd1ffca..d025d85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,9 @@ RUN pip install --no-cache-dir --upgrade pip pip-tools \ pip --no-cache-dir install git+https://github.com/muselab-d2x/d2x-cli@main cookiecutter # Copy devhub auth script and make it executable +COPY devhub.sh /usr/local/bin/d2x_job_run.sh COPY devhub.sh /usr/local/bin/devhub.sh +RUN chmod +x /usr/local/bin/d2x_job_run.sh RUN chmod +x /usr/local/bin/devhub.sh # Create d2x user diff --git a/d2x_job_run.sh b/d2x_job_run.sh new file mode 100755 index 0000000..a50940d --- /dev/null +++ b/d2x_job_run.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e + +/usr/local/bin/devhub.sh + +d2x job run "$@"