Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed code-server not mounting codebase #5

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions build/docker-compose/docker-compose.code-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ services:
- CODE_SERVER_PASSWORD
volumes:
# Mount and serve contents of Drupal site.
- type: volume
source: drupal-root
target: /var/www/drupal
volume:
nocopy: true
- ../../codebase:/var/www/drupal:delegated
# Mount and serve Drupal files.
- type: volume
source: drupal-sites-data
Expand Down Expand Up @@ -79,14 +75,13 @@ services:
- traefik.enable=false
volumes:
# Allow code-server to serve Drupal / override it.
- drupal-root:/var/www/drupal
- ../../codebase:/var/www/drupal:delegated
deploy:
resources:
limits:
memory: ${DRUPAL_MEMORY_LIMIT:-5G}
reservations:
memory: 2G
volumes:
drupal-root: {}
drupal-sites-data: {}
code-server-data: {}
10 changes: 10 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,13 @@ A log of the error is needed for the fix to review. A full description of the is
To fix this:

* Run `make fix_views`

## For Windows, error when executing make on trying to composer install within drupal container
**Error:**
```bash
docker-compose exec -T drupal with-contenv bash -lc 'composer install'
s6-envdir: fatal: unable to envdir: No such file or directory
```
To fix this:
* edit the Makefile and replace the `docker-compose exec -T drupal with-contenv bash -lc 'composer install'` line with `docker-compose exec -T drupal composer install`
* rerun make