hello i just tried to install the latest b2c demo ...
# docker
b
hello i just tried to install the latest b2c demo with docker on my windows wsl setup. when i try to bootstrap the sdk i get this erro:
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
what am i doing wrong?
h
Hi Timo, You are not the first who discovered that problem today. So it is quite new behavour. Would you be able to try some earlier docker/sdk versions?
b
yes sure
which version would you suggest?
h
Let’s try 1.7.1
Just as experiment
b
its still the same
maybe theres a missing step in the docs?
h
No. It is some kind of bug exactly on Windows
I assume something was changed in WSL or Docker Desktop
b
okay im not in a rush. i was just experementing if its worth using windows with the wsl setup. normaly im using a mac
but it would be nice to test it out soon
h
Ok. Let’s try to figure out.
ls -al docker/deployment/default
ls -al docker/deployment/_tmp
So file is there. Good.
b
yes but in this temp dir
h
docker run -i --rm -v $(pwd)/docker/deployment/_tmp:/data/deployment spryker_docker_sdk ls -al /data/deployment
b
Copy code
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker run -i --rm -v $(pwd)/docker/deployment/_tmp:/data/deployment spryker_docker_sdk ls -al /data/deployment
total 4
drwxr-xr-x 2 root    root      40 Mar 26 19:48 .
drwxr-xr-x 1 spryker spryker 4096 Mar 26 20:41 ..
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$
h
My response
So volume does not work
docker run -i --rm -v $(pwd)/docker:/data/deployment spryker_docker_sdk ls -al /data/deployment
Let’s try this
b
Copy code
drwxr-xr-x 3 root    root      60 Mar 26 19:48 .
drwxr-xr-x 1 spryker spryker 4096 Mar 26 20:43 ..
drwxr-xr-x 3 root    root      60 Mar 26 19:48 deployment
h
ls -al docker
b
Copy code
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ ls -al docker
total 20
drwxrwxrwx 1 timo timo  512 Mar 26 21:29 .
drwxrwxrwx 1 timo timo  512 Mar 26 16:45 ..
-rw-rw-rw- 1 timo timo  221 Mar 26 21:29 .dockerignore.default
drwxrwxrwx 1 timo timo  512 Mar 26 21:29 .git
-rw-rw-rw- 1 timo timo   83 Mar 26 16:45 .gitignore
-rw-rw-rw- 1 timo timo 1768 Mar 26 16:45 .travis.yml
-rw-rw-rw- 1 timo timo 3983 Mar 26 16:45 CONTRIBUTING.md
-rw-rw-rw- 1 timo timo 3532 Mar 26 16:45 LICENSE
-rw-rw-rw- 1 timo timo 1963 Mar 26 21:27 README.md
drwxrwxrwx 1 timo timo  512 Mar 26 21:29 bin
drwxrwxrwx 1 timo timo  512 Mar 26 21:29 ci
drwxrwxrwx 1 timo timo  512 Mar 26 16:45 context
drwxrwxrwx 1 timo timo  512 Mar 26 21:29 deployment
drwxrwxrwx 1 timo timo  512 Mar 26 21:27 generator
drwxrwxrwx 1 timo timo  512 Mar 26 21:29 images
-rwxrwxrwx 1 timo timo 2598 Mar 26 21:29 sdk
btw im using docker desktop 2.2.0.4 with engine 19.03.8
h
See the difference? Only deployment folder is visible in the volume inside container
Is it possible to install 2.2.0.3?
b
sure if i find the link 😄
b
yes already found it
give me a minute or five
thank you very much
😎 1
h
Sure. Do not forget to swith to master in docker/sdk
But it will take time forsure
b
okay good to know
i hit the perfect timing to try it out it seems 😂
h
))
There are not all surprises you would have. Watch docker-sync. It is tricky.
Would you able to confirm it works on 2.2.0.3?
b
im currently uninstalling it. i cant just downgrade the version
ill give you my feedback as soon as im ready
h
👍
b
it seems to work now
okay never mind
Untitled
heres the new output from your commands
h
Thanks, Timo, for help in investigation. Good luck with your experimenting.
b
at the last step from boot the same error occures
h
docker -v
b
Docker version 19.03.8, build afacb8b7f0
inside the ubuntu shell
h
Can you check Docker Desktop version?
b
yes there its 19.03.5
h
I am asking because 2.2.0.4 upgraded to 19.03.8. So if you have 2.2.0.3 it must be 19.03.5.
It seems proper version was not installed.
but docker -v returns 19.03.8. Right?
b
okay then i have to downgrade in the ubuntu wsl think too
i dont get the concept fully
why do i have to install it two times
h
I am not sure about WSL.
I do not think it is shipped with docker inside.
Please, try to exit session and open terminal again. And then check
docker -v
b
still .8
can you tell me how to install a specific version of docker in ubuntu?
i dont do these kind of things often
h
Me too. I, personally, have not used WSL at all.
b
i used this guide
h
Yep it seems we need to downgrade docker in ubuntu too.
try
sudo apt-get install docker-ce=*19.03.5~ce-0~ubuntu*
Now I do not want to upgrade Docker for Mac. 😬
b
Copy code
timo@DESKTOP-RFFOEP5:~$ sudo apt-get install docker-ce=19.03.5~ce-0~ubuntu
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '19.03.5~ce-0~ubuntu' for 'docker-ce' was not found
version not found
i did a apt-get update before
Copy code
timo@DESKTOP-RFFOEP5:~$ apt-cache madison docker-ce
 docker-ce | 5:19.03.8~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:19.03.7~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:19.03.6~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:19.03.5~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:19.03.4~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:19.03.3~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:19.03.2~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:19.03.1~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:19.03.0~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.9~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.8~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.7~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.6~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.5~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.4~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.3~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.2~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.1~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 5:18.09.0~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 18.06.3~ce~3-0~ubuntu | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 18.06.2~ce~3-0~ubuntu | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 18.06.1~ce~3-0~ubuntu | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 18.06.0~ce~3-0~ubuntu | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
 docker-ce | 18.03.1~ce~3-0~ubuntu | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
are any of these okay?
h
Copy code
19.03.5~3-0~ubuntu-bionic
b
those arent markes as stable 🙄
h
Copy code
docker-ce | 5:19.03.5~3-0~ubuntu-bionic | <https://download.docker.com/linux/ubuntu> bionic/stable amd64 Packages
b
sudo apt-get install docker-ce-cli=5:19.03.5~3-0~ubuntu-bionic
timo@DESKTOP-RFFOEP5:~$ docker -v Docker version 19.03.5, build 633a0ea838
sudo apt-get install docker-ce=5:19.03.5~3-0~ubuntu-bionic
those two did the job now i try bootstrap again
still hasnt fixed the error
im getting crazy 😭
h
Copy code
docker run -i --rm -v $(pwd)/docker:/data/deployment spryker_docker_sdk ls -al /data/deployment
b
drwxr-xr-x 3 root    root      60 Mar 26 21:40 .
drwxr-xr-x 1 spryker spryker 4096 Mar 26 21:42 ..
drwxr-xr-x 3 root    root      60 Mar 26 21:40 deployment
h
Copy code
docker run -i --rm -v $(pwd)/docker:/data/deployment -u 1000:1000 spryker_docker_sdk ls -al /data/deployment
b
Copy code
total 4
drwxr-xr-x 3 root    root      60 Mar 26 21:40 .
drwxr-xr-x 1 spryker spryker 4096 Mar 26 21:46 ..
drwxr-xr-x 3 root    root      60 Mar 26 21:40 deployment
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$
h
Copy code
docker run -i --rm -v $(pwd)/docker:/data/deployment -u 1000:1000 spryker_docker_sdk ls -al /data/deployment
b
Copy code
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker run -i --rm -v $(pwd)/docker:/data/deployment -u 1000:1000 spryker_docker_sdk ls -al /data/deployment
total 4
drwxr-xr-x 3 root    root      60 Mar 26 21:40 .
drwxr-xr-x 1 spryker spryker 4096 Mar 26 21:48 ..
drwxr-xr-x 3 root    root      60 Mar 26 21:40 deployment
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$
h
I wonder why it shows only one folder from many that exist.
Copy code
docker run -i --rm -v $(pwd)/docker:/data/deployment spryker_docker_sdk ls -al /data/deployment/deployment
b
i dont know
Copy code
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker run -i --rm -v $(pwd)/docker:/data/deployment spryker_docker_sdk ls -al /data/deployment/deployment
total 0
drwxr-xr-x 3 root root 60 Mar 26 21:40 .
drwxr-xr-x 3 root root 60 Mar 26 21:40 ..
drwxr-xr-x 2 root root 40 Mar 26 21:40 _tmp
h
Copy code
docker run -i --rm -v $(pwd)/docker:/data/deployment spryker_docker_sdk ls -al /data/deployment/deployment/_tmp
b
Copy code
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker run -i --rm -v $(pwd)/docker:/data/deployment spryker_docker_sdk ls -al /data/deployment/deployment/_tmp
total 0
drwxr-xr-x 2 root root 40 Mar 26 21:40 .
drwxr-xr-x 3 root root 60 Mar 26 21:40 ..
h
😳
b
i dont really get whats going on here -.-
h
Copy code
docker run -i --rm -v $(pwd)/docker:/data/deployment alpine ls -al /data/deployment/deployment/_tmp
b
Copy code
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker run -i --rm -v $(pwd)/docker:/data/deployment alpine ls -al /data/deployment/deployment/_tmp
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
aad63a933944: Pull complete                                                                                             Digest: sha256:b276d875eeed9c7d3f1cfa7edb06b22ed22b14219a7d67c52c56612330348239
Status: Downloaded newer image for alpine:latest
total 0
drwxr-xr-x    2 root     root            40 Mar 26 21:40 .
drwxr-xr-x    3 root     root            60 Mar 26 21:40 ..
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$
h
Ok. So definitely no docker/sdk part. Just explicitly docker stuff. Let’s try to restart OS, if you do not mind.
b
already tried that after the docker downgrade
h
docker Desktop you mean?
b
both
but i can do it again
h
I do not know what I can believe in now….
b
restart done docker demon is starting now
i was hoping to start using docker from now on. but this scares me
should i try bootstrap again?
h
It was stable enough. But this is something outstanding…
Let’s try
what is your
$(pwd)
b
/home/timo/b2c-demo-shop
still same error
h
Copy code
docker run -i --rm -mount type=volume,source=$(pwd)/docker,destination=/data/deployment alpine ls -al /data/deployment/deployment/_tmp
b
Copy code
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker run -i --rm -mount type=volume,source=$(pwd)/docker,destination=/data/deployment alpine ls -al /data/deployment/deployment/_tmp
invalid argument "ount" for "-m, --memory" flag: invalid size: 'ount'
See 'docker run --help'.
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker run -i --rm --mount type=volume,source=$(pwd)/docker,destination=/data/deployment alpine ls -al /data/deployment/deployment/_tmp
docker: Error response from daemon: create /home/timo/b2c-demo-shop/docker: "/home/timo/b2c-demo-shop/docker" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.
h
Ah.. my bad…
Copy code
docker volume create --name my_test_volume --opt type=none --opt device=$(pwd)/docker --opt o=bind
docker volume inspect my_test_volume
Copy code
docker run -i --rm -mount type=volume,source=my_test_volume,destination=/data/deployment alpine ls -al /data/deployment/deployment/_tmp
b
Copy code
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker volume create --name my_test_volume --opt type=none --opt device=$(pwd)/docker --opt o=bind
my_test_volume
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$ docker volume inspect my_test_volume
[
    {
        "CreatedAt": "2020-03-26T22:11:02Z",
        "Driver": "local",
        "Labels": {},
        "Mountpoint": "/var/lib/docker/volumes/my_test_volume/_data",
        "Name": "my_test_volume",
        "Options": {
            "device": "/home/timo/b2c-demo-shop/docker",
            "o": "bind",
            "type": "none"
        },
        "Scope": "local"
    }
]
timo@DESKTOP-RFFOEP5:~/b2c-demo-shop$
h
I assume something is missed in link between Windows and WSL. But who knows. I will try to reach our devops with this.