Setting up GIT Environment on RIS Computer Cluster
This document will describe how to setup your individual env to use with the RDC git repos. The document will first describe how to setup ssh key for use with the devops git repos and then use devops to pull down the setup repo in order to configure the rest of your ris compute environment.
Link to this document: Using git on RIS Compute Cluster
-
Requirements:
-
WUSTL key is required to access both RIS Compute Cluster and Azure Devops
-
Access to the RDC git repository in devops
RIS ETL Deployment Repo (switch to RDC_Deployment_updates branch)
-
A ssh client like Windows cmd/powershell ssh, WSL linux shell on Windows, Git Bash shell, Mac (Debian ssh) shell or Putty SSH
-
Access to storage1 git repos for each environment
SMB references
\\storage1.ris.wustl.edu\i2\Active\rdc2_etl\dev\repos \\storage1.ris.wustl.edu\i2\Active\rdc2_etl\qa\repos \\storage1.ris.wustl.edu\i2\Active\rdc2_etl\prod\repos
RIS compute references
ll /storage1/fs1/I2/Active/rdc2_etl/dev/repos ll /storage1/fs1/I2/Active/rdc2_etl/qa/repos ll /storage1/fs1/I2/Active/rdc2_etl/prod/repos
-
-
Setup GIT Credentials for use with RIS Compute Cluster
-
Creating a ssh key for use with Azure Devops
ssh-keygen
-
Starting the ssh key-agent to handle ssh key requests
eval $(ssh-agent)
-
Addiing the new private key to ssh agent
ssh-add ~/.ssh/id_rsa
-
-
Setting up new public ssh key in Devops
-
Copy new ssh public key for step 4
cat ~/.ssh/id_rsa.pub
-
Start by navigating to the user setup menu and selecting SSH Public Keys in Devops
-
Press + New Keys Button to add a new public key in Devops
-
In Devops Name the new ssh public key, paste the output from step 1 into public key data box and then press add
-
-
Checking out Environment Setup Scripts from Devops Repo
-
Create a directory for your git repos in your home directory
mkdir ~/repos cd ~/repos
-
Get url from Devops to clone git repo, by pressing the clone button at the top right of RIS ETL repo, you can then grab a copy of the ssh link presented
-
Clone RIS ETL environment setup repo in users local space (repo).
cd ~/repos git clone git@ssh.dev.azure.com:v3/wustl-i2/RDC/ris-etl-deployments cd ris-etl-deployments/rdc_scripts
-
At this point you should have your ssh keys setup to work with Devops GTI repos. Also your RIS compute environment should be able to preform GIT operation with out continually to enter a password and have pulled the RIS Lsub environment setup files in order to continue with the full setup of your RIS environment.