influxdata / sandbox

A sandbox for the full TICK stack
MIT License
484 stars 219 forks source link

Windows 10 Error building InfluxDb #47

Closed purusartha closed 5 years ago

purusartha commented 5 years ago

Docker version 18.06.1-ce installed

I am doing a git clone of the sandbox, then running sandbox up from inside a command prompt and get the following error:

D:\Source\Repos\influxtestbench\sandbox>sandbox up Spinning up Docker Images... If this is your first time starting sandbox this might take a minute... WARNING: The TYPE variable is not set. Defaulting to a blank string. Building influxdb ERROR: Cannot locate specified Dockerfile: .//Dockerfile Opening tabs in browser...

The dockerfile it is looking for is inside the latest||nightly folders, but still does not work.Help please.

gstamatakis commented 5 years ago

same problem if someone has a solution please give us a hint

jarruda commented 5 years ago

Same error.

Windows 10 1803 / 17134.407

Docker Desktop Community Version 2.0.0.0-win78 (28905) Channel: stable Build: c404a62

jarruda commented 5 years ago

The issue appears to be that the Windows sandbox.bat file doesn't set any of the environment variables from .env or .env-latest. This is what the WARNING re: TYPE about.

Setting the environment variables in those files has gotten me to the building portion. I'm failing because Docker for Windows is failing to let me share a volume (https://github.com/docker/for-win/issues/2549).

ross1ch commented 5 years ago

I have the same problem in Windows 10 with the 'TYPE' variable.

PS C:\users\ross1\documents\sandbox-master> docker-compose config WARNING: The TYPE variable is not set. Defaulting to a blank string. services: chronograf: build: args: CHRONOGRAF_TAG: chronograf:latest context: C:\users\ross1\documents\sandbox-master\images\chronograf dockerfile: .//Dockerfile

Can I get a little more info on properly setting this env variable?

timhallinflux commented 5 years ago

Working to address here: https://github.com/influxdata/sandbox/pull/49

timhallinflux commented 5 years ago

addressed. Should be working on Windows 10 Pro.