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

/srv/vendor does not exist and could not be created. #41

Open
veikoon opened this issue Jan 4, 2023 · 0 comments
Open

/srv/vendor does not exist and could not be created. #41

veikoon opened this issue Jan 4, 2023 · 0 comments

Comments

@veikoon
Copy link
Contributor

veikoon commented Jan 4, 2023

volumes:
- .:/srv

Successfully built 9c67cde3010d
Successfully tagged votix_votix:latest
WARNING: Image for service votix was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating votix_votix_run ... done
composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Package operations: 172 installs, 0 updates, 0 removals

In Filesystem.php line 254:

  /srv/vendor does not exist and could not be created.


install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

Lors du build le dossier /srv/vendor est impossible à créer puisque docker-compose monte le dossier local et les permissions ne sont pas suffisantes.

--> Solution de contournement : executer l'instance docker avec le user root

docker-compose run --user root --rm votix make install_dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant