Skip to content

Commit

Permalink
Merge pull request #70 from konsulting/feature/ssh-agent
Browse files Browse the repository at this point in the history
Add SSH agent
  • Loading branch information
rdarcy1 committed Oct 10, 2019
2 parents 5e38657 + 1d02d42 commit 3ee5ba8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- {{ $home }}:/srv/app
- {{ $libraryPath }}/config/user/ssh:/root/.ssh
- {{ $libraryPath }}/config/node/bash_history:/home/node/.bash_history
- {{ $libraryPath }}/config/user/bashrc:/root/.bashrc
networks:
- porter
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- {{ $libraryPath }}/config/{{ $version->cli_name }}/php.ini:/etc/php/{{ $version->version_number }}/cli/php.ini
- {{ $libraryPath }}/config/{{ $version->cli_name }}/xdebug.ini:/etc/php/{{ $version->version_number }}/cli/conf.d/xdebug.ini
- {{ $libraryPath }}/config/{{ $version->cli_name }}/bash_history:/root/.bash_history
- {{ $libraryPath }}/config/user/bashrc:/root/.bashrc
environment:
- HOST_MACHINE_NAME={{ $host_machine_name }}
- RUNNING_ON_PORTER=true
2 changes: 2 additions & 0 deletions resources/stubs/config/user/bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eval $(ssh-agent -s)
alias key='ssh-add /root/.ssh/id_rsa'

0 comments on commit 3ee5ba8

Please sign in to comment.