-
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.
feat: docker-compose-deploy template, shell config for AWS and GCP
- Loading branch information
Showing
5 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
Submodule docker-compose-deploy
added at
daf5b7
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ | |
[submodule ".github/template/terraform-prepare"] | ||
path = .github/template/terraform-prepare | ||
url = [email protected]:acrois/terraform-prepare | ||
[submodule ".github/template/docker-compose-deploy"] | ||
path = .github/template/docker-compose-deploy | ||
url = [email protected]:acrois/docker-compose-deploy |
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,17 @@ | ||
Host gcp-* | ||
ProxyCommand gcloud compute start-iap-tunnel $(cut -c 4- <<< "%h") %p --listen-on-stdin --verbosity=warning | ||
StrictHostKeyChecking no | ||
|
||
Host aws-* | ||
ProxyCommand aws ssm start-session --target $(cut -c 4- <<< "%h") --document-name AWS-StartSSHSession --parameters portNumber=%p | ||
StrictHostKeyChecking no | ||
|
||
Host i-* mi-* | ||
ProxyCommand aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p | ||
StrictHostKeyChecking no | ||
|
||
Host * * | ||
ControlMaster auto | ||
ControlPersist 900 | ||
# Alternative: /tmp/%r@%h-%p | ||
ControlPath /tmp/u-%i-ssh-%C |
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,3 +1,11 @@ | ||
#/usr/bin/env sh | ||
echo -e "\nsource $HOME/scripts/config/.profile\n" >> ~/.profile | ||
source ~/.profile | ||
#!/usr/bin/env sh | ||
|
||
DEST="$HOME/.profile" | ||
|
||
if [ -f "$HOME/.bash_profile" ]; then | ||
DEST="$HOME/.bash_profile"; | ||
fi | ||
|
||
# echo $DEST; | ||
echo "\nsource $HOME/scripts/config/.profile\n" >> $DEST; | ||
source $DEST; |