README.md in contexto-0.1.0 vs README.md in contexto-0.1.1

- old
+ new

@@ -64,9 +64,31 @@ ┣━━━━━━━━━━━━━━╊━━━━━━━━━━━━━━╊━━━━━━━━━━━━━━┫ ┃ app ┃ RUNNING ┃ 10.2.1.218 ┃ ┗━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ ``` +### SSH + +You can also get Contexto to spit out an SSH command you can use to connect to +a specific container. + +To do so specify the cluster, servicec and container and the `--ssh` +flag. + +```shell +$ contexto -c sandbox -s backend-app -t app --ssh + + ** Contexto Contextualizes ** +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + +ssh -t -A bastion.empatico.xyz "ssh -t ec2-user@10.2.1.218 'docker exec -it \$(docker ps | grep ecs-sandbox-backend-app-.*-app | cut -d\ -f1) bin/rails c'" +``` + +## TODO + +1. Automate the SSH login process. +2. ??? + ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).