docker-laravel icon indicating copy to clipboard operation
docker-laravel copied to clipboard

install.sh does not function.

Open illmaren opened this issue 1 year ago • 1 comments

Started the install with a user "laravel" in a dir owned by this user.

used the command: sudo bash install.sh

[+] Running 1/0 ⠿ Container laravel_php Running 0.0s Creating a "laravel/laravel" project at "./" https://repo.packagist.org could not be fully loaded (rename(/tmp/cache/repo/https---repo.packagist.org/packages.json.65f2ea988f9502.48229225.tmp,/tmp/cache/repo/https---repo.packagist.org/packages.json): Operation not permitted), package information was loaded from the local cache and may be out of date Installing laravel/laravel (v11.0.2) Failed to download laravel/laravel from dist: /var/www/html/vendor/composer does not exist and could not be created: Now trying to download from source

  • Syncing laravel/laravel (v11.0.2) into cache
  • Installing laravel/laravel (v11.0.2): Cloning 075c38c9e7 from cache Install of laravel/laravel failed

In Filesystem.php line 332:

Could not delete /var/www/html/.:

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [ [ []]]

[+] Running 1/0 ⠿ Container laravel_php Running 0.0s

In RequireCommand.php line 143:

file_put_contents(./composer.json): Failed to open stream: Permission denied

illmaren avatar Mar 14 '24 12:03 illmaren

Hi @illmaren

I have not used this package anymore since Laravel Sail (https://laravel.com/docs/10.x/sail)

But it seems you are using a cached packagist (and Laravel 11 does not exist at the moment when the cache was created). Can you try to update composer and try again?

mvd81 avatar Mar 14 '24 13:03 mvd81