I am walking through the Spryker bootcamp and am t...
# docker
l
I am walking through the Spryker bootcamp and am trying to install the b2c demo shop in development mode via Docker on Windows. Looks all good till I am trying to run "docker/sdk bootstrap deploy.dev.yml" where I get following error. Looking into the "/data/deployment" folder I am missing the project.yml file it is trying to read for some reason.
Copy code
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
a
I would recommend to try with WSL2 using attached installation guide. It's still not public as we are testing it at the moment. But after that hopefully it will be published as an alternative because many people have problems using published installation guide.
👍 2
l
@average-branch-45579 Thank for the new guide. I was able to complete the docker setup and the containers are running. However I am getting a 404 trying to load up the site. Any suggestions?
p
@late-stone-42490 can you please ping the endpoint and show its ip? also please share the WSL2 environment
ip address
output. Thanks
l
Copy code
C:\>ping zed.de.spryker.local

Pinging zed.de.spryker.local [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>
Copy code
gkirschner@IT-BO-197:~/development/b2c-demo-shop$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 12:d8:25:c5:9f:b5 brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether ca:01:d8:36:50:df brd ff:ff:ff:ff:ff:ff
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:93:da:ab brd ff:ff:ff:ff:ff:ff
    inet 172.18.39.142/28 brd 172.18.39.143 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fe93:daab/64 scope link
       valid_lft forever preferred_lft forever
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
gkirschner@IT-BO-197:~/development/b2c-demo-shop$
p
Please adjust the IP from 127.0.0.1 in your etc/hosts to 172.18.39.142
l
Switched out the IP but getting page is not working after
@polite-intern-55963 @average-branch-45579 I did not install any of the other prerequisites in the current official Windows Docker prerequisites guide i.e. OCaml or Unison. Are any of the steps in https://documentation.spryker.com/docs/docker-installation-prerequisites-windows still required with Valerii’s latest guide?
a
Nope, my version of installation guide should be enough on its own.
👍 1
At least it works for me this way.
p
can you please run
netstat -tlpn
on your ubuntu?
l
@polite-intern-55963 Getting
Copy code
gkirschner@IT-BO-197:~$ netstat -tlpn
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6       0      0 :::5672                 :::*                    LISTEN      -
p
sudo netstat -tlpn
please
l
shows the same log i think
Copy code
gkirschner@IT-BO-197:~$ sudo netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6       0      0 :::5672                 :::*                    LISTEN      -
p
then there is nothing running that could serve anything
l
Is this an issue with IIS or within Ubuntu?
p
did you
docker/sdk boot deploy.dev.yml && docker/sdk up
?
try
docker ps
l
Copy code
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                    PORTS                                                                                                                                        NAMES
b626768d97a1        spryker_b2c_dev_gateway:dev                           "/docker-entrypoint.…"   39 minutes ago      Up 38 minutes             0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:5672->5672/tcp, 0.0.0.0:9200->9200/tcp, 0.0.0.0:16379->16379/tcp   spryker_b2c_dev_gateway_1
975b1146bfe3        spryker_b2c_dev_run_frontend:dev                      "/entrypoint.sh ngin…"   39 minutes ago      Up 38 minutes             80/tcp                                                                                                                                       spryker_b2c_dev_frontend_1
2480a77cc5bc        spryker_b2c_dev_run_app:dev-zed_us                    "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_zed_us_1aa3457b77365        spryker_b2c_dev_run_app:dev-zed_eu                    "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_zed_eu_1947ac2356f4a        spryker_b2c_dev_run_app:dev-glue_us                   "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_glue_us_1
bba81622862e        spryker_b2c_dev_run_app:dev-yves_eu                   "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_yves_eu_1
554cb3827f26        spryker_b2c_dev_run_app:dev-glue_eu                   "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_glue_eu_1
3ed8856aa9c6        spryker_b2c_dev_run_app:dev-yves_us                   "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_yves_us_1
292a3130e5ca        spryker_b2c_dev_run_cli:dev                           "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000/tcp                                                                                                                                     spryker_b2c_dev_cli_1
65506f119d7f        rediscommander/redis-commander:latest                 "/usr/bin/dumb-init …"   5 days ago          Up 39 minutes (healthy)   8081/tcp                                                                                                                                     spryker_b2c_dev_redis-gui_1
638fa5f3149b        spryker/rabbitmq:3.7.14                               "docker-entrypoint.s…"   5 days ago          Up 39 minutes (healthy)   4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 25672/tcp                                                                                          spryker_b2c_dev_broker_1fb6612203204        redis:5.0-alpine                                      "docker-entrypoint.s…"   5 days ago          Up 39 minutes (healthy)   6379/tcp                                                                                                                                     spryker_b2c_dev_key_value_store_1
292578538ee4        redis:5.0-alpine                                      "docker-entrypoint.s…"   5 days ago          Up 39 minutes (healthy)   6379/tcp                                                                                                                                     spryker_b2c_dev_session_1
984811428d45        spryker/jenkins:2.176                                 "/sbin/tini -- /usr/…"   5 days ago          Up 39 minutes (healthy)   8080/tcp, 50000/tcp                                                                                                                          spryker_b2c_dev_scheduler_1
2f13a1ff71cc        postgres:9.6-alpine                                   "docker-entrypoint.s…"   5 days ago          Up 39 minutes (healthy)   5432/tcp                                                                                                                                     spryker_b2c_dev_database_1
481c5fecf10f        <http://docker.elastic.co/elasticsearch/elasticsearch:6.8.4|docker.elastic.co/elasticsearch/elasticsearch:6.8.4>   "/usr/local/bin/dock…"   5 days ago          Up 39 minutes (healthy)   9200/tcp, 9300/tcp                                                                                                                           spryker_b2c_dev_search_16572e9200aa4        swaggerapi/swagger-ui:v3.24.3                         "sh /usr/share/nginx…"   5 days ago          Up 39 minutes (healthy)   80/tcp, 8080/tcp                                                                                                                             spryker_b2c_dev_swagger_1
65a34f12e59e        mailhog/mailhog:v1.0.0                                "MailHog"                5 days ago          Up 39 minutes (healthy)   1025/tcp, 8025/tcp                                                                                                                           spryker_b2c_dev_mail_catcher_1
c97b2f21c8d6        spryker_b2c_dev_dashboard                             "docker-entrypoint.s…"   5 days ago          Up 39 minutes             3000/tcp, 6689/tcp                                                                                                                           spryker_b2c_dev_dashboard_1
2eeed2b9ef0f        bpack/socat                                           "socat UNIX-LISTEN:/…"   5 days ago          Up 39 minutes                                                                                                                                                          spryker_b2c_dev_cli_ssh_relay_1
yes docker seems to be up and running
p
@late-stone-42490 please do a complete reset of your docker environment by
Copy code
docker sdk/down
sudo docker system prune -a
sudo docker system prune --volumes
sudo docker network prune -a
The fact that your docker seems to be up, but your ubuntu not reporting any ports used is strange. After everything is reset, bring it up again check with netstat again
l
@polite-intern-55963 Thanks for the further debug steps. Still getting same error on page refresh, but netstat has another entry.
Copy code
gkirschner@IT-BO-197:~/development/b2c-demo-shop$ sudo netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6       0      0 :::5432                 :::*                    LISTEN      -
tcp6       0      0 :::34651                :::*                    LISTEN      4305/node
tcp6       0      0 :::5672                 :::*                    LISTEN      -
c
May I bump this thread back to life? QUESTION: Where in SPRYKER config is the equivalent of the docker run -p 88:80 command run? (Or maybe it isn't run).
My problem is similar to Georgie's above. What I want to do is to be able to connect from my windows machine into the container running in docker. Normally if I had some app in a container that was configured to listen to port 80 then I could do something like "docker run -p 88:80 myappimagename and then I could get to the app on port 88 from outside the container (like from windows).
In the b2c demo shop I cannot find where the docker run is done.
(Also I don't know if I should be changing the docker run command, but for a test to verify if this is the nature of the networking problem...)
In short, the question is: "Where could I modify the Spryker config to map a port for use outside of the container?" And is this allowed?
(if this isn't feasible, then maybe it isn't possible to do development on windows using containers??? Has anyone else come to that conclusion? Or overcome it?) -- Like does everyone who needs to use a windows workstation end up going the Virtual Machine route instead of Docker Containers?
Thanks in advance for any clues! 🙂
Oh boy, I'm sorry, I just found out it was a problem with my windows -- I still had an IIS instance running from a project I finished some time ago (it was restarting by default), and once I noticed and stopped it, my Spryker in Docker started working on port 80. Well, maybe that will help somebody else someday.
p
@late-stone-42490
Yes, the problem was not really reproducible. Please also check whether you have a webserver running, please.
c
IIS is a webserver -- that was the problem!
(And I'll tell Georgie when I see him in the morning here).
✅ 1
p
Yes, i am aware. Just telling Georgie to look for webservers as well 😄
c
Attack of the webservers, lol.
Great to have it working though!