Running RAFT on the cloud (EXPERIMENTAL)
Overview
RAFT supports an experimental Bring Your Own Cloud (BYOC) execution path on GCP Batch through the RAFT cloud launcher.
Warning
The BYOC launcher is experimental. Expect interface and execution details to change, and validate runs carefully before relying on it for routine production use.
Use the web launcher to:
upload or generate your manifest/config in the browser
write those files directly to your own GCS bucket
submit a Batch job directly in your own GCP project
keep infrastructure ownership in your own account
Launch the BYOC interface.
Running RAFT with the experimental BYOC
Open the BYOC launcher in your browser.
Provide your GCP project, bucket, region, and runner image information.
Choose a workflow.
Provide your own data or use the available dataset path your workflow expects.
Generate or upload your manifest and configuration in the browser.
Submit the Batch job in your own cloud environment.
The launcher keeps cloud ownership in your own account rather than relying on centrally managed RAFT infrastructure.
Before you begin, review the relevant cloud prerequisites in Installing RAFT.
Runner container
The Batch jobs launched by the BYOC UI run inside the RAFT runner container. The launcher defaults to a prebuilt image on Docker Hub:
docker.io/spvensko/raft-runner:latest
You do not need to build anything to use the default. The launcher’s runner
image field accepts any image you can pull from your GCP project, so you can
point it at your own registry instead, for example
gcr.io/my-project/raft-runner:latest.
The image is built on python:3.11-slim and carries RAFT, Nextflow, Java,
and gsutil. Its entrypoint runs raft --bypass-dependencies, since the
tools RAFT would otherwise install are already present. The default workspace
inside the container is /tmp/raft-workspace.
Building your own
The definition lives in containers/raft-runner/ in the RAFT repository. It
installs RAFT from the checkout it is built from, so the build context has to
be the repository root:
$ docker build -f containers/raft-runner/Dockerfile -t raft-runner:latest .
Push the result somewhere GCP Batch can pull it, then give the launcher that
image name. See containers/raft-runner/README.md for the full build and run
notes.
Note
Build your own image when you need a specific RAFT version. The published
image is not rebuilt automatically, so :latest reflects whenever it was
last pushed rather than the current RAFT release, and it is hosted in a
personal Docker Hub namespace rather than an organization one.
Running the container yourself is a way to check it before submitting a Batch job:
$ docker run --rm -it \
-e RAFT_WORKDIR=/tmp/raft-workspace \
-v "$PWD:/tmp/raft-workspace" \
raft-runner:latest run -p test -w lens -v 1.9.0 --setup-only --default
You still need valid cloud credentials and IAM permissions in whatever environment the container runs in.