Skip to content

Commit

Permalink
Merge pull request #29 from d3b-center/feature/add-dev-onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
devbyaccident authored Jan 25, 2022
2 parents 8953007 + af98702 commit 88b0c69
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 5 deletions.
31 changes: 31 additions & 0 deletions d3b_cli_igor/utils/scripts/onboarding_dev_mac
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
set -e
echo "
# _____ ____ _ _ _
# | __ \ / __ \ | | | (_)
# | | | | _____ _ | | | |_ __ | |__ ___ __ _ _ __ __| |_ _ __ __ _
# | | | |/ _ \ \ / | | | | '_ \| '_ \ / _ \ / _ | __/ _| | _ \ / _ | |
# | |__| | __/\ V / | |__| | | | | |_) | (_) | (_| | | | (_| | | | | | (_| |
# |_____/ \___| \_/ \____/|_| |_|_.__/ \___/ \__,_|_| \__,_|_|_| |_|\__, |
# __/ |
# |___/
for Mac"
echo "Install Sshuttle, ssm-tools, auth0-login"
pip3 install sshuttle aws-ssm-tools auth0-login
sshuttle --sudoers
echo "Install Hub from GitHub"
brew install hub
echo "Install AWSCLI"
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
rm -rf AWSCLIV2.pkg
echo "Install AWS Session Manager"
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/mac/sessionmanager-bundle.zip" -o "sessionmanager-bundle.zip"
unzip sessionmanager-bundle.zip
sudo ./sessionmanager-bundle/install -i /usr/local/sessionmanagerplugin -b /usr/local/bin/session-manager-plugin
rm -rf sessionmanager-bundle.zip
rm -rf sessionmanager-bundle
if [ -z ~/.aws ]; then
mkdir ~/.aws
touch ~/.aws/credentials
fi
30 changes: 30 additions & 0 deletions d3b_cli_igor/utils/scripts/onboarding_dev_ubuntu
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
set -e
echo "
# _____ ____ _ _ _
# | __ \ / __ \ | | | (_)
# | | | | _____ _ | | | |_ __ | |__ ___ __ _ _ __ __| |_ _ __ __ _
# | | | |/ _ \ \ / | | | | '_ \| '_ \ / _ \ / _ | __/ _| | _ \ / _ | |
# | |__| | __/\ V / | |__| | | | | |_) | (_) | (_| | | | (_| | | | | | (_| |
# |_____/ \___| \_/ \____/|_| |_|_.__/ \___/ \__,_|_| \__,_|_|_| |_|\__, |
# __/ |
# |___/
for Ubuntu"
echo "Install Sshuttle, ssm-tools, auth0-login"
pip3 install sshuttle aws-ssm-tools auth0-login
sshuttle --sudoers
sudo apt install hub
echo "Install AWSCLI"
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
rm -rf ./awscliv2.zip
sudo ./aws/install --update
rm -rf ./aws
echo "Install AWS Session Manager"
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
sudo dpkg -i session-manager-plugin.deb
rm -rf session-manager-plugin.deb
if [ -z ~/.aws ]; then
mkdir ~/.aws
touch ~/.aws/credentials
fi
5 changes: 3 additions & 2 deletions d3b_cli_igor/utils/scripts/onboarding_devops_mac
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ echo "
# | | __/ |
# |_| |___/
for Mac"
echo "Install Ansible, Checkov, Sshuttle"
echo "Install Ansible, Checkov, Sshuttle, ssm-tools, auth0-login"
terraform_version="1.0.8"
packer_version="1.7.4"
pip3 install ansible checkov sshuttle
pip3 install ansible checkov sshuttle aws-ssm-tools auth0-login
sshuttle --sudoers
echo "Install Hub from GitHub"
brew install hub
Expand All @@ -34,6 +34,7 @@ unzip ./packer_"${packer_version}"_darwin_amd64.zip
rm -rf packer_*.zip
cp ./packer /usr/local/bin/packer
rm -rf packer
echo "Install AWS Session Manager"
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/mac/sessionmanager-bundle.zip" -o "sessionmanager-bundle.zip"
unzip sessionmanager-bundle.zip
sudo ./sessionmanager-bundle/install -i /usr/local/sessionmanagerplugin -b /usr/local/bin/session-manager-plugin
Expand Down
7 changes: 4 additions & 3 deletions d3b_cli_igor/utils/scripts/onboarding_devops_ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ echo "
# |_____/ \___| \_/ \____/| .__/|___/ \____/|_| |_|_.__/ \___/ \__,_|_| \__,_|_|_| |_|\__, |
# | | __/ |
# |_| |___/
for Mac"
echo "Install Ansible, Checkov, Sshuttle"
for Ubuntu"
echo "Install Ansible, Checkov, Sshuttle, ssm-tools, auth0-login"
terraform_version="1.0.8"
packer_version="1.7.4"
pip3 install ansible checkov sshuttle
pip3 install ansible checkov sshuttle aws-ssm-tools auth0-login
sshuttle --sudoers
sudo apt install hub
echo "Install AWSCLI"
Expand All @@ -32,6 +32,7 @@ curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install packer
rm -rf packer
echo "Install AWS Session Manager"
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
sudo dpkg -i session-manager-plugin.deb
rm -rf session-manager-plugin.deb
Expand Down

0 comments on commit 88b0c69

Please sign in to comment.