influxdata / sandbox

A sandbox for the full TICK stack
MIT License
486 stars 220 forks source link

ERROR: Cannot locate specified Dockerfile: .//Dockerfile #48

Closed ross1ch closed 5 years ago

ross1ch commented 5 years ago

PS C:\Program Files\docker\sandbox> ./sandbox up C:\WINDOWS\system32\cmd.exe /c ""C:\Program Files\docker\sandbox\sandbox.bat" 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... Press any key to continue . . . PS C:\Program Files\docker\sandbox>

It appears environment variable TYPE is not set as noted by others. If that is the case what would be the best way to address this issue? .yml files has the following: dockerfile: ./${TYPE}/Dockerfile .env file has no setting for TEMP .env-latest has the following; export TYPE=latest .env-nightly export TYPE=nightly

Would it make a difference if I clone the repo. I downloaded a zipfile.

GaryRogers commented 5 years ago

This is a problem in the sandbox.bat file. TYPE isn't defined. There's also a problem that ${INFLUXDB_TAG} (and other tags) aren't defined (they should be descend from TYPE, 'eh?)

I can get around this by hard-coding latest into the docker-compose.yaml file, but then I hit a snag with a source path in telegraf.

- /var/run/docker.sock:/var/run/docker.sock isn't a valid windows path.

I'll see if I can't get things running on Windows 10 and submit a PR.

Ach. didn't read down. Yeah, It's a problem with TYPE not getting set.

ross1ch commented 5 years ago

I spent some time with the sandbox files running on Windows 10 Pro in an effort to work around the TYPE and other arg issues. I have the TICK stacking running by 'hacking' the following files: docker-compose.yml file. Replaced $(TYPE) with latest. Removed all args statements for each service

Not very pretty but everything seems to be up and running.

PS C:\Users\ross1\documents\sandbox-master> ./sandbox up C:\WINDOWS\system32\cmd.exe /c ""C:\Users\ross1\documents\sandbox-master\sandbox.bat" up" Spinning up Docker Images... If this is your first time starting sandbox this might take a minute... Building influxdb Step 1/1 : FROM influxdb:latest ---> 623f651910b3 Successfully built 623f651910b3 Successfully tagged influxdb:latest Building telegraf Step 1/1 : FROM telegraf:latest latest: Pulling from library/telegraf 54f7e8ac135a: Already exists d6341e30912f: Already exists 087a57faf949: Already exists 94ca203dd3bb: Pull complete aa16ecb169ba: Pull complete 0ee261c35a21: Pull complete 95d41fc9ec27: Pull complete Digest: sha256:d6c4d766d752d1d183c0c6e4d59c9ac32347510b4f3410557550e2525e72376b Status: Downloaded newer image for telegraf:latest ---> db1f16f1c274 Successfully built db1f16f1c274 Successfully tagged telegraf:latest Building kapacitor Step 1/1 : FROM kapacitor:latest latest: Pulling from library/kapacitor 54f7e8ac135a: Already exists d6341e30912f: Already exists 087a57faf949: Already exists 2496c053f335: Pull complete 696c736f8b10: Pull complete 3592e8403701: Pull complete 566ed82b342f: Pull complete 3fdf86019bcc: Pull complete Digest: sha256:bc021c3db2f716327de05f6a6f2eb3a74424a9579be9afbae678cfdcb65b814b Status: Downloaded newer image for kapacitor:latest ---> dcb563c5444e Successfully built dcb563c5444e Successfully tagged kapacitor:latest Building chronograf Step 1/3 : FROM chronograf:latest latest: Pulling from library/chronograf a5a6f2f73cd8: Already exists 4a10410d20ef: Pull complete 8e8f24809784: Pull complete f3ce69897aed: Pull complete 824be26e598c: Pull complete 4e7945e23dbf: Pull complete Digest: sha256:cd035ea2f91f44eaa1e84775ad5ac6688efd1ee137672bdcc4e016c14b3c22c3 Status: Downloaded newer image for chronograf:latest ---> f48701874f56 Step 2/3 : ADD ./sandbox.src ./usr/share/chronograf/resources/ ---> c0d6401d2ca1 Step 3/3 : ADD ./sandbox-kapa.kap ./usr/share/chronograf/resources/ ---> 9935652e9e38 Successfully built 9935652e9e38 Successfully tagged chrono_config:latest Building documentation Step 1/6 : FROM alpine:3.4 3.4: Pulling from library/alpine d6a5679aa3cf: Pull complete Digest: sha256:e0826ea5cc99bf3ff9a9d9781e3ad97f73ac7eb2d4319a8f3b712ab5b369cb7c Status: Downloaded newer image for alpine:3.4 ---> 174b26fe09c7 Step 2/6 : EXPOSE 3010:3000 ---> Running in d1f12d530356 Removing intermediate container d1f12d530356 ---> 8dca7043eb21 Step 3/6 : RUN mkdir -p /documentation ---> Running in 60c80dc23599 Removing intermediate container 60c80dc23599 ---> c56f8b0e93f0 Step 4/6 : COPY builds/documentation /documentation/ ---> e9b2abe42626 Step 5/6 : COPY static/ /documentation/static ---> 7a623162342f Step 6/6 : CMD ["/documentation/documentation", "-filePath", "/documentation/"] ---> Running in 2b95ac1c5184 Removing intermediate container 2b95ac1c5184 ---> e1f33b555192 Successfully built e1f33b555192 Successfully tagged sandbox-master_documentation:latest sandbox-master_influxdb_1 is up-to-date Creating sandbox-master_documentation_1 ... done Creating sandbox-master_telegraf_1 ... done Creating sandbox-master_kapacitor_1 ... done Creating sandbox-master_chronograf_1 ... done Opening tabs in browser... Press any key to continue . . .

timhallinflux commented 5 years ago

hey guys...sorry, Windows edition is broken at the moment. We are working on putting this back together. Track the PR here: https://github.com/influxdata/sandbox/pull/49

timhallinflux commented 5 years ago

addressed and merged. Should be working on Windows 10 Pro.