-
Notifications
You must be signed in to change notification settings - Fork 492
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
I cannot create new app with mariadb service #701
Comments
It should be possible with
or
Is this documented somewhere? (If yes, we should probably add an alias) |
|
@lukasinko I created a PR on the Sail Server Side, which should fix the problem: laravel/sail-server#23 |
@Jubeki I don't think it is solved, now there is and error error in middle of lines:
|
@lukasinko I can't explain this |
Hello @Jubeki , please check the generated script. I think this part need to be fixed: $ curl -s -o "example-app.sh" "https://laravel.build/example-app?with=mariadb"
$ cat example-app.sh
# ... skipped ...
docker run --rm \
--pull=always \
-v "$(pwd)":/opt \
-w /opt \
laravelsail/php83-composer:latest \
bash -c "laravel new example-app --no-interaction && cd example-app && php ./artisan sail:install --with=mariadb11 "
cd example-app
# Allow build with no additional services..
if [ "mariadb11" == "none" ]; then
./vendor/bin/sail build
else
./vendor/bin/sail pull mariadb11 # <=== THIS PART NEED TO BE FIXED ?
./vendor/bin/sail build
fi Pay attention to the line: ./vendor/bin/sail pull mariadb11 I think it should be: ./vendor/bin/sail pull mariadb Because the generated $ cat example-app/docker-compose.yml
services:
laravel.test:
build:
#... skipped ...
depends_on:
- mariadb
mariadb: # <===== THIS IS THE CORRESPONDING SERVICE NAME :) NOT 'mariadb11'
image: 'mariadb:11'
#... skipped ... Please note the syntax for $ example-app/vendor/bin/sail pull --help
#...skipped...
usage: podman-compose pull [-h] [--force-local] [services ...]
positional arguments:
services services to pull
options:
-h, --help show this help message and exit
--force-local Also pull unprefixed images for services which have a build section
$ podman-compose pull --help
usage: podman-compose pull [-h] [--force-local] [services ...]
positional arguments:
services services to pull
options:
-h, --help show this help message and exit
--force-local Also pull unprefixed images for services which have a build section So, it needs Service Name (NOT Repo Name) corresponding to the @lukasinko, please reopen this issue :). Thank You. |
At this point I am not sure, if all the complex replacements due to the different mariadb versions is worth it, or if it should be reverted to only a single mariadb version (like with mysql 8 where there is no mysql 5.7). @driesvints what is your take on this? Should I send in a PR fixing the Sail-Server-Script or reverting the mariadb changes and only allow a single MariaDB version (probably in this case the newest one 11). |
yes let's go for mariadb 11 only |
Sail Version
1.0.0
Laravel Version
10.4.1
PHP Version
8.1.4
Operating System
macOS
OS Version
8.1.4
Description
I cannot create new app with mariadb service.
Probably due to recent change to mariadb10/mariadb11 ?
Steps To Reproduce
Using
curl -s "https://laravel.build/example-app?with=mariadb" | bash
I get
ERROR Invalid services [mariadb].
.The text was updated successfully, but these errors were encountered: