Last active
February 3, 2021 16:40
-
-
Save diestrin/f0599e59c24cbec0333c24100630f88a to your computer and use it in GitHub Desktop.
Citadel Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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