Skip to content

Commit

Permalink
Add bashrc to initiate ssh agent for node and php cli containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Keoghan committed Oct 10, 2019
1 parent 5e38657 commit 1d02d42
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 1d02d42

Please sign in to comment.