Skip to content

[Docker][database] the maker does not work because of the YamlSourceManipulator #777

Closed
@lyrixx

Description

@lyrixx

I used https://github.com/dunglas/symfony-docker but I edit the files to use .yaml instead of .yml (see the PR).

But I get an error when running the maker:

>…m/lyrixx/SFLive-Paris2016-Workflow(docker +) bin/console make:docker:data -v

- Docker Compose Setup-
-----------------------

 We found your existing docker-compose.yaml: Let's update it!

 Which database service will you be creating?:
  [0] MySQL
  [1] MariaDB
  [2] Postgres
 > 2

 For a list of supported versions, check out https://hub.docker.com/_/postgres

 What version would you like to use? [alpine]:
 > 



In YamlSourceManipulator.php line 868:
                                                                     
  [Symfony\Bundle\MakerBundle\Util\YamlManipulationFailedException]  
  Cannot find the original value "80:80"                             
                                                                     

Exception trace:
  at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Util/YamlSourceManipulator.php:868
 Symfony\Bundle\MakerBundle\Util\YamlSourceManipulator->findEndPositionOfValue() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Util/YamlSourceManipulator.php:568
 Symfony\Bundle\MakerBundle\Util\YamlSourceManipulator->advanceBeyondValue() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Util/YamlSourceManipulator.php:215
 Symfony\Bundle\MakerBundle\Util\YamlSourceManipulator->updateData() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Util/YamlSourceManipulator.php:207
 Symfony\Bundle\MakerBundle\Util\YamlSourceManipulator->updateData() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Util/YamlSourceManipulator.php:207
 Symfony\Bundle\MakerBundle\Util\YamlSourceManipulator->updateData() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Util/YamlSourceManipulator.php:207
 Symfony\Bundle\MakerBundle\Util\YamlSourceManipulator->updateData() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Util/YamlSourceManipulator.php:88
 Symfony\Bundle\MakerBundle\Util\YamlSourceManipulator->setData() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Util/ComposeFileManipulator.php:72
 Symfony\Bundle\MakerBundle\Util\ComposeFileManipulator->addDockerService() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Maker/MakeDockerDatabase.php:131
 Symfony\Bundle\MakerBundle\Maker\MakeDockerDatabase->generate() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/vendor/symfony/maker-bundle/src/Command/MakerCommand.php:104
 Symfony\Bundle\MakerBundle\Command\MakerCommand->execute() at /home/gregoire/dev/github.com/lyrixx/symfony/src/Symfony/Component/Console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at /home/gregoire/dev/github.com/lyrixx/symfony/src/Symfony/Component/Console/Application.php:938
 Symfony\Component\Console\Application->doRunCommand() at /home/gregoire/dev/github.com/lyrixx/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/gregoire/dev/github.com/lyrixx/symfony/src/Symfony/Component/Console/Application.php:266
 Symfony\Component\Console\Application->doRun() at /home/gregoire/dev/github.com/lyrixx/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:82
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/gregoire/dev/github.com/lyrixx/symfony/src/Symfony/Component/Console/Application.php:142
 Symfony\Component\Console\Application->run() at /home/gregoire/dev/github.com/lyrixx/SFLive-Paris2016-Workflow/bin/console:43

make:docker:database [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

ping @dunglas

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug Fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions