-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jorge Aguilera <[email protected]>
- Loading branch information
Showing
4 changed files
with
108 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
plugins { | ||
id 'nf-nomad@latest' | ||
} | ||
|
||
process { | ||
executor = "nomad" | ||
} | ||
|
||
nomad { | ||
|
||
client { | ||
address = "http://10.0.2.6:4646" | ||
} | ||
|
||
jobs { | ||
deleteOnCompletion = false | ||
namespace = "nf" | ||
volumes = [ | ||
{ type "csi" | ||
name "nextflow-fs-volume" | ||
} | ||
] | ||
} | ||
|
||
} |
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,49 @@ | ||
#!/bin/bash | ||
|
||
BUILD=0 | ||
SKIPLOCAL=0 | ||
NFAZURE=0 | ||
|
||
[[ "$@" =~ '--build' ]] && BUILD=1 | ||
[[ -f $HOME/.nextflow/plugins/nf-nomad-latest/ ]] && BUILD=1 | ||
[[ "$@" =~ '--skiplocal' ]] && SKIPLOCAL=1 | ||
[[ "$@" =~ '--nfazure' ]] && NFAZURE=1 | ||
|
||
if [ "$BUILD" == 1 ]; then | ||
pushd .. | ||
./gradlew unzipPlugin -x test -P version=latest | ||
popd +0 || exit | ||
else | ||
echo "skip build" | ||
fi | ||
|
||
if [ "$SKIPLOCAL" == 0 ]; then | ||
|
||
./run-pipeline.sh -c basic/nextflow.config basic/main.nf | ||
|
||
./run-pipeline.sh -c basic/nextflow.config nf-core/demo \ | ||
-r dev -profile test,docker \ | ||
--outdir $(pwd)/nomad_temp/scratchdir/out | ||
|
||
./run-pipeline.sh -c basic/nextflow.config bactopia/bactopia \ | ||
--accession SRX4563634 --coverage 100 --genome_size 2800000 \ | ||
-profile test,docker --outdir $(pwd)/nomad_temp/scratchdir/bactopia/outdir \ | ||
--datasets_cache $(pwd)/nomad_temp/scratchdir/bactopia/datasets | ||
|
||
else | ||
echo "skip local" | ||
fi | ||
|
||
if [ "$NFAZURE" == 1 ]; then | ||
ssh manager@nfazure 'rm -rf ~/.nextflow/plugins/nf-nomad-latest' | ||
rsync -Pr ~/.nextflow/plugins/nf-nomad-latest manager@nfazure:~/.nextflow/plugins/ | ||
rsync -Pr az-nomadlab manager@nfazure:~/integration-tests/ | ||
|
||
ssh manager@nfazure \ | ||
'cd ~/integration-tests/az-nomadlab; NXF_ASSETS=/projects/assets nextflow run hello -w /projects/ -c nextflow.config' | ||
|
||
ssh manager@nfazure \ | ||
'cd ~/integration-tests/az-nomadlab; NXF_ASSETS=/projects/assets nextflow run bactopia/bactopia -c nextflow.config -w /projects -profile test,docker --outdir /projects/bactopia/outdir --accession SRX4563634 --coverage 100 --genome_size 2800000 --datasets_cache /projects/bactopia/datasets' | ||
else | ||
echo "skip nfazure" | ||
fi |
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