Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Commit

Permalink
try docker volumes to avoid issues with file perms
Browse files Browse the repository at this point in the history
  • Loading branch information
gabiudrescu committed Jan 6, 2020
1 parent 1a92dd5 commit 4ad46b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ matrix:

script:
- docker-compose --version
- docker-compose pull --ignore-pull-failures || true
- docker-compose build --pull
- docker-compose up -d
- docker-compose -f docker-compose.yml -f etc/travis/docker-compose.override.yml pull --ignore-pull-failures || true
- docker-compose -f docker-compose.yml -f etc/travis/docker-compose.override.yml build --pull
- docker-compose -f docker-compose.yml -f etc/travis/docker-compose.override.yml up -d

- sleep 60

- docker-compose logs --no-color --tail=10000
- docker-compose -f docker-compose.yml -f etc/travis/docker-compose.override.yml logs --no-color --tail=100000

- curl http://localhost/
-
Expand Down
17 changes: 17 additions & 0 deletions etc/travis/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.4'

services:
php:
volumes:
- php-data:/home/www-data/vendor:rw,cached

nodejs:
volumes:
- node-data:/home/node/application/node-modules:rw,cached
ports:
- "35729:35729"
- "8080:8080"

volumes:
php-data:
node-data:

0 comments on commit 4ad46b6

Please sign in to comment.