Skip to content

Commit d6878d5

Browse files
author
mike dupont
committed
readme
1 parent aec092a commit d6878d5

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

README.md

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
edocker
1+
22
`bash runlocaldocker2.sh`
33
```
4-
]0;root@ip-10-0-4-156: /opt/agentroot@ip-10-0-4-156:/opt/agent# git pull
5-
gcodeit pull
4+
5+
root@ip-10-0-4-156:/opt/agent# git pull
6+
git pull
67
remote: Enumerating objects: 4, done.
78
remote: Counting objects: 100% (4/4), done.
89
remote: Total 4 (delta 3), reused 4 (delta 3), pack-reused 0 (from 0)
@@ -14,7 +15,7 @@ Fast-forward
1415
notes.org | 38 ++++++++++++++++++++++++++++++++++++++
1516
runlocaldocker2.sh | 3 ++-
1617
2 files changed, 40 insertions(+), 1 deletion(-)
17-
]0;root@ip-10-0-4-156: /opt/agentroot@ip-10-0-4-156:/opt/agent# bash ./runlocaldocker2.sh
18+
root@ip-10-0-4-156:/opt/agent# bash ./runlocaldocker2.sh
1819
bash ./runlocaldocker2.sh
1920
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
2021
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
@@ -367,12 +368,18 @@ python ./ssh-ssm.py
367368

368369
## local git
369370

371+
* tunnel to aws
372+
373+
1. we can use this from cheaper hosting to create connections to aws, for ssm parameters.
374+
2. and for git
375+
3. allow you to share resources with agents from pc or phone
376+
377+
370378
```
371-
mkdir -p /opt/git/agent
372-
git init /opt/git/agent/
373-
git remote add local /opt/git/agent/.git/
374-
git commit -m 'readme' -a
375-
git push local
376-
chown ubuntu: -R /opt/git/agent/
377-
history >> hist
379+
python ./ssh-ssm.py
380+
```
381+
```
382+
aws ssm start-session --target i-06a744b2cf12e2356 --document-name AWS-StartPortForwardingSession --parameters '{"portNumber": ["22"], "localPortNumber": ["2222"]}'
378383
```
384+
385+

0 commit comments

Comments
 (0)