Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

Users - running a container

  1. Set permissions on datastore which will hold results of workflows after they run

     mkdir workflows && mkdir datastore
     chmod a+wrx workflows && chmod a+wrx datastore
  2. Run container and login with the following (while persisting workflow run directories to datastore)

     docker run --rm -h master -t -v `pwd`/datastore:/mnt/datastore  -i seqware/seqware_full:1.1.1
  3. Run the HelloWorld (sample) workflow with

     seqware bundle launch --dir ~/provisioned-bundles/Workflow_Bundle_HelloWorld_1.0-SNAPSHOT_SeqWare_1.1.1/
  4. Alternatively, if you need to run a command on the container as a part of a script, you will need to invoke the start script first. As an example, to list the workflows available in the image.

     docker run --rm -h master -t -v `pwd`/datastore:/mnt/datastore -i seqware/seqware_full:1.1.1 / "seqware workflow list" 
  5. Note that you can also connect the Docker client inside this container to the Docker daemon on the host in order to run Docker containers as part of your workflows. In order to do this add -v /var/run/docker.sock:/var/run/docker.sock Additionally, we provide an example workflow that uses docker containers. This workflow has two steps, one that runs a toy command in a centos container and one which runs postgres. First, you need to download and expand the workflow. If you need to install Java sudo apt-get install openjdk-7-jre-headless is sufficient for this.

     cd workflows
     java -cp seqware-distribution-1.1.1-full.jar --input-zip --output-dir  Workflow_Bundle_dockerHelloWorld_1.0-SNAPSHOT_SeqWare_1.1.0-rc.0
     cd ..
  6. Next, run the workflow.

     docker run --rm -h master -t -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`/datastore:/datastore -v `pwd`/workflows/Workflow_Bundle_dockerHelloWorld_1.0-SNAPSHOT_SeqWare_1.1.0-rc.0:/workflow  -i seqware/seqware_full:1.1.1 / "seqware bundle launch --dir /workflow"

    This should start up the container, run the workflow, and then cleanup the container. You can then examine the results in the persistent datastore directory.

Developers - building the image locally

  1. Assuming docker is installed properly, build image with

     docker build  -t seqware/seqware_full:1.1.1 .
Docker Pull Command
Source Repository