Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi, I'm trying to setup a local docker based environment on win10 and WSL. I'm getting an error whil

U015HHFCU1M
U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet
edited July 2020 in Docker

Hi,
I'm trying to setup a local docker based environment on win10 and WSL. I'm getting an error while doing docker/sdk bootstrap deploy.dev.yml

[...]
 => => naming to [docker.io/library/spryker_docker_sdk](http://docker.io/library/spryker_docker_sdk)                                                                                                    0.0s
PHP Fatal error:  Uncaught Symfony\Component\Yaml\Exception\ParseException: File "/data/deployment/project.yml" does not exist. in /data/vendor/symfony/yaml/Parser.php:53
Stack trace:
#0 /data/index.php(20): Symfony\Component\Yaml\Parser->parseFile('/data/deploymen...')
#1 {main}
  thrown in /data/vendor/symfony/yaml/Parser.php on line 53

Any ideas what would be the reason?

Comments

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    If i remember correcty, the unison/ocaml is a little bit out of date for newest docker.

    https://sprykercommunity.slack.com/archives/CMYFJCG2E/p1585815987058700

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet
  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    I have a working WSL-Installation with Ubuntu 20.04 and the described Ocaml/Unison versions

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    I would recommend to update Win10 to v2004, enable WSL2 and use docker there.
    In this case you can use docker/sdk without ocaml\unison\docker-sync.

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    do you have tested this?

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited July 2020

    Yes.
    I couldn't install docker with docker-sync\ocaml\unison in previous version of win10 and wsl.

         message  Unison 2.51.2 (ocaml 4.06.0): Contacting server...
    Connected [//DESKTOP-8OG87P1//c/spryker/b2c-demo-shop -> //f896c0927970//app_sync]
    Looking for changes
      Waiting for changes from server
    Fatal error: Fatal error during unmarshaling (input_value: ill-formed message),
    possibly because client and server have been compiled with differentversions of the OCaml compiler.
    

    Just followed https://docs.docker.com/docker-for-windows/wsl/.
    And then installed everything in wsl2 as in linux (except installing docker): just git clone repositories, docker/sdk bootstrap deploy.dev.yml, docker/sdk up. The last step still was to add hosts in Windows.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    PHPStorm and VSCode can then connect remotely to the wsl2.

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    that sound cool 🙂
    my problem is, my company is currently blocking 2004, but with 1909 i am working pretty fine here..

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    The experience can vary unfortunately.

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet

    Unfortunately I cannot install wsl2. Our corporate PC are not updated yet.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Then if you are not able to fix the problem or no one will suggest anything, I would recommend to switch to our vagrant-based devvm.

    That was the only option for me when I had issues with docker-sync mentioned above.

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet

    I was able to pass the issue above but I got another one.
    I'm executing docker/sdk up and the process progresses until following pops up:

    chmod: cannot access '/data/config/Zed/*.key': No such file or directory
    Composer could not find a composer.json file in /data
    To initialize a project, please create a composer.json file as described in the <https://getcomposer.org/> "Getting Started" section
    
  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    do you have a b2c, b2b or the suite checked out?

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet

    @U015HHFCU1M What version of docker/sdk do you use?

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet

    I have a b2b.

  • U015HHFCU1M
    U015HHFCU1M Posts: 81 🧑🏻‍🚀 - Cadet
    edited July 2020

    docker/sdk is cloned from 1.14.3 tag

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet

    Ok. Let’s try to rise it up.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet
    1. Let’s upgrade docker/sdk to 1.15.0. It has some features that would helps us.
    2. docker/sdk boot deploy.dev.yml
    3. docker/sdk up
      When the error persist: docker/sdk sync logs
  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet

    And, also, please, list the console output here via attached file. Thanks.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 🧑🏻‍🚀 - Cadet

    By the way, how have you solved "/data/deployment/project.yml" does not exist issue?