Skip to content

Commit

Permalink
Merge pull request #4 from plample/patch-4
Browse files Browse the repository at this point in the history
Suggestions to guide and allow copy/paste of value
  • Loading branch information
kniec authored Apr 23, 2020
2 parents 8126e9c + 7359e07 commit 2224be0
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ Now that we have everything, we need to create a job definition. For that click

![](/images/nextflow-on-aws-batch/nextflow202/create_jobdef_1.png)

- **[1]** define the job name
- **[2]** how often it is able to run before failing
- **[3]** the execution timeout (here 1h)
- **[4]** the container image from the docker push before
- **[5]** the entrypoint command
- **[6]** and finally how many resources the image needs to run.
- **[1]** define the job name: nf-head
- **[2]** how often it is able to run before failing: 1
- **[3]** the execution timeout (here 1 hour or 3600 seconds): 3600
- **[4]** the container image from the docker push before: copy paste the docker url visible in the log after executing the code "docker build -t $REPO_URI:${IMG_TAG} ." at previous step
- **[5]** the entrypoint command: /usr/local/bin/entrypoint.sh
- **[6]** and finally how many resources the image needs to run: 1 cpu, 256 Mb memory


### Security and Environment

- **Security** user: root
Since the nextflow config is placed in the `$HOME` directory of root, we run the process within the container as `root` **[1]**.
- **Environement variables**
Finally we define environment variables to control which pipeline to run **[2]** and create the job definition.

Please set `PIPELINE_URL` to `https://github.com/seqeralabs/nextflow-tutorial.git` and `NF_SCRIPT` to `script7.nf`.
Please set 2 environement variables:
- Key: `PIPELINE_URL` and Value: `https://github.com/seqeralabs/nextflow-tutorial.git`
- Key: `NF_SCRIPT` and Value `script7.nf`.

![](/images/nextflow-on-aws-batch/nextflow202/create_jobdef_2.png)
![](/images/nextflow-on-aws-batch/nextflow202/create_jobdef_2.png)

0 comments on commit 2224be0

Please sign in to comment.