forked from SMD-Bioinformatics-Lund/nextflow_rnaseqfus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_hopper.sh
executable file
·32 lines (24 loc) · 1.06 KB
/
deploy_hopper.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
LATEST_CONTAINER_BUILD="$( ls -t $DIR/container/rnaseqfus_*.sif |head -n1)"
CONTAINER_BASENAME=${LATEST_CONTAINER_BUILD##*/}
PIPELINE_DEST="/fs1/pipelines/rnaseqfus/"
CONTAINER_DEST=/fs1/resources/containers/$CONTAINER_BASENAME
DEST_HOST="rs-fs1.lunarc.lu.se"
# Deploy container if it isn't already deployed
if test -f "$CONTAINER_DEST"; then
echo "Latest container already deployed, skipping!"
else
echo "Deploying container"
scp $LATEST_CONTAINER_BUILD $DEST_HOST:$CONTAINER_DEST
# TODO: Replace "active" container symlink on hopper!
fi
# Copy pipeline script
scp $DIR/main.nf $DEST_HOST:$PIPELINE_DEST
# Copy configuration file
scp $DIR/configs/nextflow.hopper.config $DEST_HOST:$PIPELINE_DEST/nextflow.config
# Copy other files
scp -r $DIR/bin $DEST_HOST:$PIPELINE_DEST
#Added by sima:
#scp $DIR/example.csv $DEST_HOST:$PIPELINE_DEST
#scp $DIR/run_hopper.sh $DEST_HOST:$PIPELINE_DEST
#scp fastq_screen.conf $DEST_HOST:/fs1/resources/ref/hg38/data/fastqScreen/FastQ_Screen_Genomes/