The documentation illustrates how to use different execution engines of Umbrella to execute
a complex CMS application.

When the parrot sandbox mode is used, there exists two options to deliver
cvmfs. First, if the local machine has cvmfs intalled by FUSE, the
--use_local_cvmfs option can be used. Second, if the local machine does not
have cvmfs installed, the --cvmfs_http_proxy option can be used to specified a
http proxy, and parrot will be used to deliver cvmfs.

#parrot execution engine test command - Metadata database is specified through --meta option.
umbrella \
--spec cms_opendata.umbrella \
--meta http://ccl.cse.nd.edu/software/umbrella/database/packages.json \
--localdir /tmp/umbrella_test/ \
--output "/tmp/sim_job=/tmp/umbrella_test/parrot_cms_opendata_output" \
--sandbox_mode parrot \
--log umbrella.log \
--cvmfs_http_proxy http://cache01.hep.wisc.edu:3128 \
run

#Docker execution engine test command. Don't do the docker test under your afs, it will fail due to the ACL of your afs.
umbrella \
--spec cms_opendata.umbrella \
--meta http://ccl.cse.nd.edu/software/umbrella/database/packages.json \
--localdir /tmp/umbrella_test/ \
--output "/tmp/sim_job=/tmp/umbrella_test/docker_cms_opendata_output" \
--sandbox_mode docker \
--log umbrella.log \
--cvmfs_http_proxy http://cache01.hep.wisc.edu:3128 \
run

#parrot execution engine test command - the umbrella specification is self-contained, so no metadata database is needed.
umbrella \
--spec cms_opendata_S.umbrella \
--localdir /tmp/umbrella_test/ \
--output "/tmp/sim_job=/tmp/umbrella_test/parrot_cms_opendata_S_output" \
--sandbox_mode parrot \
--log umbrella.log \
--cvmfs_http_proxy http://cache01.hep.wisc.edu:3128 \
run

#Docker execution engine test command. Don't do the docker test under your afs, it will fail due to the ACL of your afs - the umbrella specification is self-contained, so no metadata database is needed.
umbrella \
--spec cms_opendata_S.umbrella \
--localdir /tmp/umbrella_test/ \
--output "/tmp/sim_job=/tmp/umbrella_test/docker_cms_opendata_S_output" \
--sandbox_mode docker \
--log umbrella.log \
--cvmfs_http_proxy http://cache01.hep.wisc.edu:3128 \
run

umbrella \
--spec cms_opendata_S.umbrella \
--localdir /tmp/umbrella_test/ \
--output "/tmp/sim_job=/tmp/umbrella_test/ec2_cms_opendata_S_output" \
--sandbox_mode ec2 \
--ec2_sshkey ~/bin/feb272015.pem \
--ec2_key feb272015 \
--log umbrella.log \
--ec2_instance_type m3.medium \
--ec2_log umbrella.log.ec2 \
--log umbrella.log \
--cvmfs_http_proxy http://cache01.hep.wisc.edu:3128 \
run
