-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from unity-sds/220-stage-in-task
220 - Define stage in, process, stage out tasks in entrypoint
- Loading branch information
Showing
5 changed files
with
290 additions
and
127 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# docker:dind Dockerfile: https://github.com/docker-library/docker/blob/master/Dockerfile-dind.template | ||
# FROM docker:dind | ||
FROM docker:25.0.3-dind | ||
|
||
# install Python | ||
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python | ||
RUN apk add gcc musl-dev linux-headers python3-dev jq | ||
RUN apk add --no-cache python3 py3-pip | ||
RUN apk add vim | ||
|
||
# install CWL libraries | ||
RUN mkdir /usr/share/cwl \ | ||
&& cd /usr/share/cwl \ | ||
&& python -m venv venv \ | ||
&& source venv/bin/activate \ | ||
&& pip install cwltool cwl-runner docker boto3 awscli pyyaml | ||
|
||
# install nodejs to parse Javascript in CWL files | ||
RUN apk add --no-cache nodejs npm | ||
|
||
# script to execute a generic CWL workflow with arguments | ||
COPY docker_cwl_entrypoint_modular.sh /usr/share/cwl/docker_cwl_entrypoint_modular.sh | ||
|
||
WORKDIR /usr/share/cwl | ||
ENTRYPOINT ["/usr/share/cwl/docker_cwl_entrypoint_modular.sh"] |
Oops, something went wrong.