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

cannot find docker-compose.yml #2

Open
amenk opened this issue Jan 23, 2022 · 1 comment
Open

cannot find docker-compose.yml #2

amenk opened this issue Jan 23, 2022 · 1 comment

Comments

@amenk
Copy link

amenk commented Jan 23, 2022

With these versions:

    "laravel/lumen-framework": "^8.3.1",
    "mahdiraad/lumen-sail": "dev-master"

on PHP8

 Do you want to run "sail:install" instead?  (yes/no) [no]:
 > yes


In SailInstallCommand.php line 40:
                                                                                                                                          
  copy(/home/me/mine/workspace/discover/vendor/laravel/sail/stubs/docker-compose.yml): failed to open stream: No such file or directory  

Looks like sail ships now with a docker-compose.stub

Simply changing the path in

vendor/mahdiraad/lumen-sail/src/Console/Commands/SailInstallCommand.php:40

to

	copy(base_path('vendor/laravel/sail/stubs/docker-compose.stub'), base_path('docker-compose.yml'));

does not help:

$ vendor/bin/sail up
ERROR: yaml.scanner.ScannerError: while scanning a simple key
  in "./docker-compose.yml", line 24, column 1
could not find expected ':'
  in "./docker-compose.yml", line 25, column 1
ERROR: yaml.scanner.ScannerError: while scanning a simple key
  in "./docker-compose.yml", line 24, column 1
could not find expected ':'
  in "./docker-compose.yml", line 25, column 1
ERROR: yaml.scanner.ScannerError: while scanning a simple key
  in "./docker-compose.yml", line 24, column 1
could not find expected ':'
  in "./docker-compose.yml", line 25, column 1
@amenk
Copy link
Author

amenk commented Jan 23, 2022

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