Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Steps to docker image work on Windows #179

Open
coreilabs opened this issue Jul 21, 2017 · 3 comments
Open

Steps to docker image work on Windows #179

coreilabs opened this issue Jul 21, 2017 · 3 comments
Labels

Comments

@coreilabs
Copy link

Can you help me? I'm a newbie and this steps https://github.com/timegridio/dockerfiles not work on windows

@alariva
Copy link
Member

alariva commented Jul 21, 2017

Hi @coreilabs

What is the exact error you are facing? Any error message you can copy/paste for review?

@coreilabs
Copy link
Author

coreilabs commented Jul 21, 2017

in .env what the path I need to put? on windows environment
STORAGE_PATH=c:\timegrid-master\

@scscgit
Copy link

scscgit commented Aug 26, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants