Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Loading status checks…
update init scripts
mchyzer
committed
May 29, 2020
1 parent
4a1fb27
commit 6a2e1b0
Showing
3 changed files
with
99 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ami: amzn2-ami-hvm-2.0.20190508-x86_64-gp2 | ||
t3a-large | ||
network ends in 688 | ||
subnet ends in 4a6 | ||
auto assign public ip | ||
storage 30gig | ||
security group: gte-training | ||
tag env training | ||
|
||
user data script from https://github.internet2.edu/docker/grouper_training/raw/$GROUPER_GTE_BRANCH/internal/userdata.sh | ||
|
||
ssh -i gte-training-master.pem ec2-user@3.136.154.33 | ||
|
||
instance i-043829afce57f6da6 | ||
3.21.41.203 | ||
|
||
|
||
pip install awscli --user | ||
aws ec2 describe-instances | jq '[.Reservations | .[] | .Instances | .[] | select(.State.Name!="terminated") | select((.Tags[]|select(.Key=="env")|.Value) =="training")] | .[] | .InstanceId' | xargs -n 1 -I{} aws ec2 get-console-output --instance-id {} | fmt | grep student | awk -F\\ '{print $1}' | awk -F , '{print $1 "\t" $2 "\t" $3 "\t\t\tssh -L 8443:localhost:8443 -l student"$1}' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
#!/bin/bash | ||
yum -y update | ||
|
||
export GROUPER_GTE_BRANCH=202006-post | ||
#export GROUPER_GTE_DOCKER_BRANCH=$GROUPER_GTE_BRANCH | ||
export GROUPER_GTE_DOCKER_BRANCH=202006 | ||
|
||
yum -y install wget | ||
cd /root | ||
wget "https://github.internet2.edu/docker/grouper_training/raw/$GROUPER_GTE_BRANCH/internal/mkstudent.sh" | ||
chmod +x mkstudent.sh | ||
/root/mkstudent.sh | ||
usermod -G wheel,docker student | ||
docker pull rabbitmq:management | ||
/home/student/start-rabbitmq.sh |