-
Notifications
You must be signed in to change notification settings - Fork 17
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 #32 from sapporo-wes/introduce-workflow-run-crate
Introduce workflow run crate
- Loading branch information
Showing
68 changed files
with
197,157 additions
and
1,769 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
!README_ja.md | ||
!README.md | ||
!sapporo | ||
!sapporo-wes-* | ||
!sapporo-wes-1-0-1-openapi-spec.yml | ||
!setup.py | ||
!uwsgi.yml |
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
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ on: | |
|
||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
include LICENSE | ||
include sapporo-wes-spec.swagger.yml | ||
include README_ja.md | ||
include sapporo-wes-1-0-1-openapi-spec.yml | ||
include sapporo/executable_workflows.json | ||
include sapporo/executable_workflows.schema.json | ||
include sapporo/ro-terms.csv | ||
include sapporo/run.sh | ||
include sapporo/service-info.json | ||
include sapporo/service-info.schema.json | ||
include uwsgi.yml |
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,9 @@ | ||
FROM broadinstitute/cromwell:80 | ||
|
||
# install docker-ce | ||
RUN apt update && \ | ||
apt install -y apt-transport-https ca-certificates curl software-properties-common && \ | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \ | ||
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && \ | ||
apt update && \ | ||
apt install -y docker-ce |
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,31 @@ | ||
# Dockerfile for Workflow Engines | ||
|
||
## Why? | ||
|
||
When using the official docker image such as `broadinstitute/cromwell:85`, | ||
|
||
``` | ||
docker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by docker) | ||
``` | ||
|
||
an error like the above appears. | ||
|
||
In Sapporo, within `run.sh`, | ||
|
||
```bash | ||
local container="broadinstitute/cromwell:85" | ||
docker run --rm ${D_SOCK} -v ${run_dir}:${run_dir} -v /tmp:/tmp -v /usr/bin/docker:/usr/bin/docker -w=${exe_dir} ${container} run ${wf_engine_params} ${wf_url} -i ${wf_params} -m ${exe_dir}/metadata.json | ||
``` | ||
|
||
We mount the docker command and docker socket on the host side and use them, but because the glibc version required by Docker on the host side and the glibc provided by the container image are different, an error like the one above occurs. | ||
|
||
Therefore, we create, provide, and use an workflow engine image with docker-ce installed, using the official image of the workflow engine as the base. | ||
|
||
## Cromwell | ||
|
||
To build and push: | ||
|
||
```bash | ||
$ docker build -f ./Dockerfile-cromwell -t ghcr.io/sapporo-wes/cromwell-with-docker:80 . | ||
$ docker push ghcr.io/sapporo-wes/cromwell-with-docker:80 | ||
``` |
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,3 @@ | ||
#!/usr/bin/env python3 | ||
# coding: utf-8 | ||
__version__ = "1.4.9" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.