Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Commit

Permalink
Update and link ssh agent docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lmakarov committed Oct 10, 2016
1 parent 77f4001 commit e99ce44
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Tools available inside the **cli** container:
- [Enabling Varnish support](/docs/varnish.md)
- [Enabling Apache Solr support](/docs/apache-solr.md)
- [Using Sass](/docs/sass.md)
- [Using custom ssh keys (with or without passwords) via ssh-agent](/docs/ssh-agent.md)

<a name="troubleshooting"></a>
## Troubleshooting
Expand Down
16 changes: 13 additions & 3 deletions docs/ssh-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,25 @@ Required dsh version: `1.20.0+`
# Setup

1. Make sure dsh version is `1.20.0` or higher.
2. `dsh reset ssh-agent` (only necessary when updating from older versions)
3. Add the following configuration option to the `cli` service in your projects `docker-compose.yml` file
2. `dsh reset ssh-agent` (only necessary when updating from older versions).
3. Add the following configuration option to the `cli` service in your projects `docker-compose.yml` file:

For Compose file format version 1
```yml
cli:
...
volumes_from:
- ssh-agent
...
```
4. Update container configuration with `dsh up`

For Compose file format version 2
```yml
cli:
...
volumes_from:
- container:ssh-agent
...
```
4. Reset the cli container `dsh reset cli`.
5. See `dsh help ssh-agent` for more usage information.

0 comments on commit e99ce44

Please sign in to comment.