Steps to docker image work on Windows
coreilabs opened this issue · 3 comments
Can you help me? I'm a newbie and this steps https://github.com/timegridio/dockerfiles not work on windows
Hi @coreilabs
What is the exact error you are facing? Any error message you can copy/paste for review?
in .env what the path I need to put? on windows environment
STORAGE_PATH=c:\timegrid-master\
When running https://hub.docker.com/r/netpascal0123/timegrid instead of building my own docker, after trying to register a user, I got an error:
QueryException in Connection.php line 769:
When trying to build it myself via dockerfiles on Windows (even though I used Git Bash), there were issues with expanding $uid $user
, because Dockerfile isn't OS agnostic (and requires env to be expanded using %var%), so to avoid further issues, I went for virtualization instead.
When I tried to use WSL (Ubuntu under Subsystem for Linux on Windows 10), I had to first upgrade it to version 2 (for WSL, the Ubuntu installation, and the Docker Desktop's WSL Integration by enabling the distro), and then there as a problem with mysql-server (command apt-get install mysql-server -y
).
First I tried to replace mysql-server by mariadb-server as recommended on StackExchange, but there were further issues with other dependencies.
So I tried to downgrade the base docker image, because I noticed it uses FROM debian:latest
, which logically makes absolutely no sense. Version 9 still didn't work, but FROM debian:8
did.
However, on Step 18/20
there was another problem with migration, specifically
Seeded the Param Roles!
Updating...
[ErrorException]
get_headers(): php_network_getaddresses: getaddrinfo failed: Name or service not known
The command '/bin/sh -c /etc/init.d/mysql start && php artisan migrate --seed --database=testing && php artisan key:generate && php artisan migrate && php artisan db:seed && php artisan geoip:update && /etc/init.d/mysql stop' returned a non-zero code: 1
I give up.