Skip to content

Commit 3e26390

Browse files
author
Phil Frost
committed
Install awsudo on Strider
Summary: This isn't the most elegant way to manage what's installed on Strider, but it will work for now. Having awsudo on Strider will allow us to do `awsudo gbox`, allowing Vagrant to use IAM profiles (ref T142) which it would not otherwise know to do. Test Plan: Ran this in a branch without the conditionals. The resulting installation worked well enough for @marc to deploy geo-service with `awsudo gbox go [...]` Reviewers: #developers, marc Reviewed By: marc Subscribers: marc Maniphest Tasks: T142 Differential Revision: https://phabricator.paperg.com/D154
1 parent 04ceecc commit 3e26390

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

strider-custom.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"test": "strider/install"
3+
}

strider/install

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# Install awsudo on Strider.
4+
5+
set -e
6+
7+
venv="/usr/local/awsudo"
8+
9+
if [[ "$STRIDER_REPO_DOMAIN" == 'master.paperg.awsudo' ]]; then
10+
[[ ! -d "$venv" ]] && sudo virtualenv "$venv"
11+
sudo "${venv}/bin/pip" install --upgrade .
12+
[[ ! -e /usr/local/bin/awsudo ]] && sudo ln -s "${venv}/bin/awsudo" /usr/local/bin/awsudo
13+
[[ ! -e /usr/local/bin/awsrotate ]] && sudo ln -s "${venv}/bin/awsrotate" /usr/local/bin/awsrotate
14+
exit 0
15+
fi

0 commit comments

Comments
 (0)