Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cant make my docker installation work #4

Open
miorioUR opened this issue Nov 15, 2022 · 3 comments
Open

I cant make my docker installation work #4

miorioUR opened this issue Nov 15, 2022 · 3 comments

Comments

@miorioUR
Copy link

Hello!

My name is Miguel, i am making a thesis about code-based BI and im trying different tools. Even if i can install evidence in local, i need to have it on docker for comparisons.
I am not experienced with docker so i dont know why i am getting this troubles on installation.

Any help is appreciated.

evidence docker installation error

@ud3sh
Copy link
Member

ud3sh commented Nov 15, 2022

Hi @miorioUR, looking at your first two screenshots on top, I suspect that your docker container cannot access the web?
I installed Docker using Docker desktop, and by default, the containers have web access via the host https://www.docker.com/products/docker-desktop/

Alternatively, if the reason for you using docker is because you can't run multiple evidence projects on port 3000 (for comparison like you say), you can specify a custom port when you startup an evidence project. Eg if you'd like to start it on port 3001 instead of 3000, you can do the following.

npm install && npm run dev -- --port 3001

@miorioUR
Copy link
Author

I am already working with local evidence. I just want to have it on docker for research purposes and thesis documentation/comparisons. In case this turns complex, dont worry about getting this issue closed, i can take this topic apart.

I always use Docker Desktop as my default docker launcher.

I work on Windows but with a Linux console. That console have problems with web access. For example, in order to use DNS services i can rely on echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null and not using 0.0.0.0 (as it doesnt work) but this conf doesn't help in this context.

Thats why i tried from powershell too, where this web access problem doesn't happen, but in this casse i keep ending at

Running command => npm install && npm run dev -- --host 0.0.0.0
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /evidence-workspace/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/evidence-workspace/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Hope this info is useful or makes it easier. Thanks for the attention

@mheptinstall
Copy link

On Windows using PowerShell the command in the readme won't work:

docker run -v=$(pwd):/evidence-workspace -p=3000:3000 -it --rm evidencedev/devenv:latest --init

You need to replace $(pwd) with a path e.g

docker run -v=D:\evidence:/evidence-workspace -p=3000:3000 -it --rm evidencedev/devenv:latest --init

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

No branches or pull requests

3 participants