Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nextflow-io/nextflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pditommaso committed Jun 18, 2014
2 parents 56a59bc + ed5ca39 commit f192887
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ When complete, execute the program by using the `run.sh` launch script in the pr
Required dependencies
---------------------

Oracle Java 7 (Java 8 will be supported as soon as Groovy 2.3 will be released).
Java 7 or higher


Documentation
Expand Down
40 changes: 40 additions & 0 deletions cloud-boot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
set -e
set -x

#
# verify Amazon auth codes are availables
#
[[ -z 'AWS_ACCESS_KEY' ]] && { echo 'Missing $AWS_ACCESS_KEY variable'; exit 1; }
[[ -z 'AWS_SECRET_KEY' ]] && { echo 'Missing $AWS_SECRET_KEY variable'; exit 2; }

mkdir -p $HOME/bin
cat <<EOF >> $HOME/.bash_profile
export $AWS_ACCESS_KEY=$AWS_ACCESS_KEY
export $AWS_SECRET_KEY=$AWS_SECRET_KEY
EOF

#
# Lauch docker and pull the container when DOCKER variable is defined
#
if [ -z "DOCKER" ]; then
docker pull $DOCKER
fi

# the bucket name
AWS_S3BUCKET=${AWS_S3BUCKET:-'nxf-cluster'}

#
# Install NEXTFLOW and launch it
#
curl -fsSL http://get.nextflow.io > $HOME/bin/nextflow
chmod +x $HOME/bin/nextflow
$HOME/bin/nextflow -bg \
-daemon.name gridgain \
-daemon.interface eth0 \
-daemon.join s3:$AWS_S3BUCKET

# save the environment for debugging
env | sort > .boot.env


2 changes: 1 addition & 1 deletion docs/operator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ returns the items so obtained as a new channel. The function applied is called t
and is expressed with a :ref:`closure <script-closure>` as shown in the example below::

Channel
.from( 1, 2, 3, 4, ,5 )
.from( 1, 2, 3, 4, 5 )
.map { it * it }
.subscribe onNext: { println it }, onComplete: { println 'Done' }

Expand Down

0 comments on commit f192887

Please sign in to comment.