Installation Guide¶
This guide covers installation of Git DRS across different environments and target DRS servers.
Prerequisites¶
All installations require Git LFS to be installed first:
# macOS
brew install git-lfs
# Linux (download binary)
wget https://github.com/git-lfs/git-lfs/releases/download/v3.7.0/git-lfs-linux-amd64-v3.7.0.tar.gz
tar -xvf git-lfs-linux-amd64-v3.7.0.tar.gz
export PREFIX=$HOME
./git-lfs-v3.7.0/install.sh
# Configure LFS
git lfs install --skip-smudge
Local Installation (Gen3 Server)¶
Target Environment: Local development machine targeting Gen3 data commons (e.g., CALYPR)
Steps¶
-
Install Git DRS
-
Update PATH
-
Verify Installation
-
Get Credentials
- Log in to your data commons (e.g., https://calypr-public.ohsu.edu/)
- Click your email → Profile → Create API Key → Download JSON
- Note the download path for later configuration
HPC Installation (Gen3 Server)¶
Target Environment: High-performance computing systems targeting Gen3 servers
Steps¶
-
Install Git LFS on HPC
# Download and install Git LFS wget https://github.com/git-lfs/git-lfs/releases/download/v3.7.1/git-lfs-linux-amd64-v3.7.1.tar.gz tar -xvf git-lfs-linux-amd64-v3.7.1.tar.gz export PREFIX=$HOME ./git-lfs-3.7.1/install.sh # Make permanent echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bash_profile source ~/.bash_profile # Configure git lfs install --skip-smudge # Cleanup rm git-lfs-linux-amd64-v3.7.0.tar.gz rm -r git-lfs-3.7.0/ -
Configure Git/SSH (if needed)
-
Install Git DRS
-
Verify Installation
Terra/Jupyter Installation (AnVIL Server)¶
Target Environment: Terra Jupyter notebooks targeting AnVIL DRS servers
Steps¶
-
Launch Jupyter Environment in Terra
-
Open Terminal in Jupyter
-
Install Dependencies
-
Verify Installation
-
Example Workflow
# Clone example repository git clone https://github.com/quinnwai/super-cool-anvil-analysis.git cd super-cool-anvil-analysis/ # Initialize and configure for your Terra project git drs init git drs remote add anvil development --terraProject $GOOGLE_PROJECT # Work with manifests gsutil cp $WORKSPACE_BUCKET/anvil-manifest.tsv . git drs create-cache anvil-manifest.tsv # List and pull files git lfs ls-files git lfs pull -I data_tables_sequencing_dataset.tsv
Local Installation (AnVIL Server)¶
Target Environment: Local development machine targeting AnVIL servers
Steps¶
-
Install Git DRS (same as Gen3 local installation)
-
Get Terra Project ID
- Log in to AnVIL Workspaces
- Select your workspace
-
Copy the Google Project ID from "CLOUD INFORMATION"
-
Configure AnVIL Access
Build from Source¶
For development or custom builds:
# Clone repository
git clone https://github.com/calypr/git-drs.git
cd git-drs
# Build
go build
# Make accessible
export PATH=$PATH:$(pwd)
Post-Installation¶
After installation, verify your setup:
# Check Git DRS version
git-drs version
# Check Git LFS
git lfs version
# View configured remotes (after setup)
git drs remote list
Next Steps¶
After installation, see:
Navigation: Installation → Getting Started → Commands Reference
- Getting Started - Repository setup and basic workflows
- Commands Reference - Complete command documentation