|
| 1 | +[](https://imagelayers.io/?images=seqware/seqware_full:latest 'Get your own badge on imagelayers.io') |
| 2 | + |
1 | 3 | ## Users - running the container
|
2 | 4 |
|
| 5 | +These steps take place in a temporary directory that you create for playing around with this container. |
| 6 | + |
3 | 7 | 1. Set permissions on datastore which will hold results of workflows after they run
|
4 | 8 |
|
5 | 9 | mkdir workflows && mkdir datastore
|
6 | 10 | chmod a+wrx workflows && chmod a+wrx datastore
|
7 | 11 |
|
8 |
| -2. Run container and login with the following (while persisting workflow run directories to datastore). |
9 |
| - |
10 |
| - docker run --rm -h master -t -v `pwd`/datastore:/datastore -i seqware/seqware_whitestar:1.1.1 |
| 12 | +The workflows directory can be used later to store additional workflows that you wish to run. Datastore will contain the results of your workflow. This tutorial will use the HelloWorld workflow which is pre-built into the container and does not need to be installed in /datastore . |
| 13 | + |
| 14 | +2. Run container and login with the following (while persisting workflow run directories to datastore). |
11 | 15 |
|
12 |
| -3. You should now be inside the running container. Run the HelloWorld (sample) workflow with |
| 16 | + docker run --rm -h master -t -v `pwd`/datastore:/datastore -i seqware/seqware_whitestar:1.1.2-java8 |
| 17 | + |
| 18 | +3. You should now be inside the running container. Run the HelloWorld (sample) workflow with |
| 19 | + |
| 20 | + seqware bundle launch --dir ~/provisioned-bundles/Workflow_Bundle_HelloWorld_1.0-SNAPSHOT_SeqWare_1.1.2-java8/ --no-metadata |
13 | 21 |
|
14 |
| - seqware bundle launch --dir ~/provisioned-bundles/Workflow_Bundle_HelloWorld_1.0-SNAPSHOT_SeqWare_1.1.1/ --no-metadata |
15 |
| - |
16 | 22 | 4. Exit the container
|
17 | 23 |
|
18 | 24 | exit
|
19 | 25 |
|
20 | 26 | 5. Note that you can also run commands or workflows programmatically rather than interactively.
|
21 | 27 |
|
22 |
| - docker run --rm -h master -t -v `pwd`/datastore:/mnt/datastore -i seqware/seqware_whitestar:1.1.1 seqware bundle launch --dir /home/seqware/provisioned-bundles/Workflow_Bundle_HelloWorld_1.0-SNAPSHOT_SeqWare_1.1.1/ --no-metadata |
| 28 | + docker run --rm -h master -t -v `pwd`/datastore:/mnt/datastore -i seqware/seqware_whitestar:1.1.2-java8 seqware bundle launch --dir /home/seqware/provisioned-bundles/Workflow_Bundle_HelloWorld_1.0-SNAPSHOT_SeqWare_1.1.2-java8/ --no-metadata |
23 | 29 |
|
24 | 30 | 6. Note that the Docker client is installed in the container so you can connect the client with the host's Docker daemon in order to run workflows that use Docker calls
|
25 | 31 |
|
26 |
| - docker run -h master --rm -t -i -v /var/run/docker.sock:/var/run/docker.sock seqware/seqware_whitestar:1.1.1 |
| 32 | + docker run -h master --rm -t -i -v /var/run/docker.sock:/var/run/docker.sock seqware/seqware_whitestar:1.1.2-java8 |
27 | 33 | docker run -t -i ubuntu /bin/bash
|
28 | 34 |
|
| 35 | +**NOTE:** There are two versions of seqware/seqware_whitestar version "1.1.2": |
| 36 | + - seqware/seqware_whitestar:1.1.2 which contains Java 6. |
| 37 | + - seqware/seqware_whitestar:1.1.2-java8 which contains Java 8. |
| 38 | + |
29 | 39 | ## Developers - building the image locally
|
30 | 40 |
|
31 |
| -1. Assuming docker is installed properly, build image with |
| 41 | +1. Assuming docker is installed properly, build image with |
32 | 42 |
|
33 |
| - docker build -t seqware/seqware_whitestar:1.1.1 . |
| 43 | + docker build -t seqware/seqware_whitestar:1.1.2-java8 . |
0 commit comments