-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scripting for instance-agnostic setup
- Loading branch information
1 parent
b5b0dd9
commit 14033a5
Showing
9 changed files
with
54 additions
and
22 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
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
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,2 @@ | ||
curl https://raw.githubusercontent.com/vpatryshev/presheaf/master/$1 >$1 | ||
chmod a+x,a+r $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
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,15 @@ | ||
export INSTANCE_ID="i-08d6410cc134f48ce" | ||
export INSTANCE_URL="ec2-54-213-94-189.us-west-2.compute.amazonaws.com" | ||
export INSTANCE_IP="54.213.94.189" | ||
export INSTANCE_USER=ubuntu | ||
export METHERE="$INSTANCE_USER@$INSTANCE_IP" | ||
export INSTANCE_HOME=/home/ubuntu | ||
export CACHE=$INSTANCE_HOME/diagrams | ||
export HOMETHERE="$METHERE:$INSTANCE_HOME" | ||
export KEYNAME="presheaf_aws" | ||
export KEYFILE=~/.ssh/$KEYNAME.pem | ||
export SSH="ssh -i ~/.ssh/presheaf_aws.pem $1 ubuntu@$INSTANCE_URL" | ||
export SSH="ssh -i ~/.ssh/presheaf_aws.pem $METHERE" | ||
export WEBAPPS="/opt/tomcat/webapps" | ||
export SCP="./sendFile" | ||
|
||
|
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,2 +1,2 @@ | ||
source ./instance | ||
scp -i $KEYFILE $1 ubuntu@$INSTANCE_URL:/home/ubuntu/`basename $1` | ||
scp -i $KEYFILE $1 $HOMETHERE/download/`basename $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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
13 | ||
14 |