mvd81 / docker-laravel

Repo to setup a new Laravel project with Docker (compose)
24 stars 10 forks source link

install.sh does not function. #3

Open illmaren opened 8 months ago

illmaren commented 8 months ago

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

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

mvd81 commented 8 months ago

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?