Hi, I'm trying to setup a local docker based envir...
# docker
r
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
Copy code
[...]
 => => naming to <http://docker.io/library/spryker_docker_sdk|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?
b
If i remember correcty, the unison/ocaml is a little bit out of date for newest docker. https://sprykercommunity.slack.com/archives/CMYFJCG2E/p1585815987058700
I have a working WSL-Installation with Ubuntu 20.04 and the described Ocaml/Unison versions
a
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.
b
do you have tested this?
a
Yes. I couldn't install docker with docker-sync\ocaml\unison in previous version of win10 and wsl.
Copy code
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.
PHPStorm and VSCode can then connect remotely to the wsl2.
b
that sound cool 🙂 my problem is, my company is currently blocking 2004, but with 1909 i am working pretty fine here..
a
The experience can vary unfortunately.
r
Unfortunately I cannot install wsl2. Our corporate PC are not updated yet.
a
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.
r
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:
Copy code
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
b
do you have a b2c, b2b or the suite checked out?
h
@red-whale-92071 What version of docker/sdk do you use?
r
I have a b2b.
docker/sdk is cloned from 1.14.3 tag
h
Ok. Let’s try to rise it up.
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
And, also, please, list the console output here via attached file. Thanks.
By the way, how have you solved
"/data/deployment/project.yml" does not exist
issue?