Skip to content

Instantly share code, notes, and snippets.

@diestrin
Last active February 3, 2021 16:40
Show Gist options
  • Save diestrin/f0599e59c24cbec0333c24100630f88a to your computer and use it in GitHub Desktop.
Save diestrin/f0599e59c24cbec0333c24100630f88a to your computer and use it in GitHub Desktop.
Citadel Setup
#!/bin/bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.bashrc
echo "Generating ssh key for github"
echo "Enter your email for the key:"
read email
ssh-keygen -t rsa -b 4096 -C "$email"
ssh-add ~/.ssh/id_rsa
echo
cat ~/.ssh/id_rsa.pub
echo
echo "Paste the above public key in your github settings https://gitlab.com/-/profile/keys"
echo
echo "Press the 'enter' key once the above has been added to gitlab to start cloning the repo"
read
git clone git@gitlab.com:apex-org/citadel-group/citadel.git ~/Documents/citadel
cd ~/Documents/citadel
nvm install
echo "Promoting permissions of docker user"
sudo usermod -aG docker $USER
echo
echo "This shell session now has docker permissions"
echo "but you need to log out and lo gin again to apply this globally"
echo 'or run `newgrp docker` in a existing session to gain permissions'
echo
echo "Happy coding"
sleep 1
code .
newgrp docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment