Repository setup
Connect your Git repository so DataOS can pull your project at deploy time.
Vulcan projects live in a Git repository. When you deploy a Data Product, DataOS reads the deploy manifest rendered from config.yaml, which points at that repository, and pulls your files at runtime through a process called git-sync. For that to work securely, you store your Git credentials as a Secret in DataOS and reference it from config.yaml's deployment: block.
Prerequisites
The DataOS CLI is installed. See CLI setup.
Your repository is on a supported provider: GitHub, Bitbucket, or AWS CodeCommit.
Private repositories only: you have a personal access token (or app password for Bitbucket) with at least read access to the repository. A public repository syncs without credentials.
1. Configure the deployment: block
Set the repo details, compute, and run-as user under deployment: in config.yaml, using snake_case keys:
deployment:
repo:
url: <git repo url>
base_dir: <repo-name>/<path-to-the-project>
secret_id: <tenant>:<secret-name> # e.g. engineering:git-sync; the Git credentials Secret, created below
sync_flags:
- '--ref=main' # the branch to deploy
- '--submodules=off'
compute: <compute-resource-name>
run_as_user: <service-user>repo.url, repo.base_dir, compute, and run_as_user are required; repo.secret_id and repo.sync_flags only apply to private repos and non-default sync behavior.
From the project root, render the manifest:
This writes <project_name>-deploy.yaml to the project root. The command fails if that file already exists, so pass --overwrite when you re-render (or -o - to print to stdout instead). It renders the DataOS Vulcan resource manifest deterministically from config.yaml: engine, schedule, and the API surface are all derived from the project or the deployment: block. There's nothing to hand-edit in the output; if a value is wrong, fix config.yaml and re-render. You configure the full block in Git & deploy; here you only need to wire up credentials.
For the full deployment: reference, see References → Vulcan → Deployment.
2. Create a Git credentials Secret (private repositories only)
Skip this step and step 4 if your repository is public, and leave repo.secret_id out of the deployment: block.
Create git-sync-secret.yml:
Where to get the token:
GitHub: Settings → Developer settings → Personal access tokens. Grant
repo(read) scope.Bitbucket: Personal Bitbucket settings → App passwords. Grant
read:repository:bitbucket.AWS CodeCommit: Use your IAM username and an HTTPS Git credential from the AWS IAM console.
For the full repository Secret reference, see References → Secret → Repositories.
3. Lint the deploy manifest
Before applying, render the manifest and validate it with -l (lint / dry-run) instead of creating it for real. This catches a missing required field, an unsupported engine, or an unknown key under deployment: before anything reaches DataOS:
Fix any errors it reports in config.yaml and re-run this command until it passes cleanly.
4. Apply and verify (private repositories only)
Best practices
Use a dedicated service account or bot user for
GITSYNC_USERNAME, not a personal account, so access does not break when team members leave.Scope the token narrowly: read-only access to the one repository is enough. Never grant write access unless your workflow pushes back to the repo.
Rotate tokens regularly and re-apply the Secret manifest to update them.
Last updated
Was this helpful?