Skip to content

Commit

Permalink
Bug: fix permission issues with composer access .ssh files
Browse files Browse the repository at this point in the history
  • Loading branch information
satrun77 committed Oct 21, 2016
1 parent b5cb1d5 commit dc7689d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
6 changes: 6 additions & 0 deletions src/resources/docker/laravel/composer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ FROM composer/composer:php5

MAINTAINER Mohamed Alsharaf <[email protected]>

RUN echo " IdentityFile /var/www/.ssh/id_rsa" >> /etc/ssh/ssh_config

USER root

ENV COMPOSER_HOME=/var/www/composer

WORKDIR /var/www/html
7 changes: 3 additions & 4 deletions src/resources/docker/laravel/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ services:
composer:
build: ./composer/
volumes:
- ~/.composer:/composer
- ~/.ssh:/root/.ssh
- ~/.composer:/var/www/composer
- ~/.ssh:/var/www/.ssh
- ~/.netrc:/root/.netrc
volumes_from:
- app
- ./site:/var/www/html

app:
image: php:5.6-fpm
Expand Down
7 changes: 3 additions & 4 deletions src/resources/docker/sample.env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ files:
composer:
build: ./composer/
volumes:
- ~/.composer:/composer
- ~/.ssh:/root/.ssh
- ~/.composer:/var/www/composer
- ~/.ssh:/var/www/.ssh
- ~/.netrc:/root/.netrc
volumes_from:
- app
- ./site:/var/www/html
solr:
build: ./solr/
Expand Down
6 changes: 6 additions & 0 deletions src/resources/docker/ss/composer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ FROM composer/composer:php5

MAINTAINER Mohamed Alsharaf <[email protected]>

RUN echo " IdentityFile /var/www/.ssh/id_rsa" >> /etc/ssh/ssh_config

USER root

ENV COMPOSER_HOME=/var/www/composer

WORKDIR /var/www/html/public
7 changes: 3 additions & 4 deletions src/resources/docker/ss/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ services:
composer:
build: ./composer/
volumes:
- ~/.composer:/composer
- ~/.ssh:/root/.ssh
- ~/.composer:/var/www/composer
- ~/.ssh:/var/www/.ssh
- ~/.netrc:/root/.netrc
volumes_from:
- app
- ./site:/var/www/html

solr:
build: ./solr/
Expand Down

0 comments on commit dc7689d

Please sign in to comment.