S
S
Sland Show2019-03-02 20:56:18
go
Sland Show, 2019-03-02 20:56:18

Why does the config not work through Docker?

There is one tula - vistecture . I want to feed her a config locally to get a microservices visualization as a result. But the trouble is that all the documentation is an unfortunate README on github, which is also written as a riddle.
I'm trying to execute the corresponding command with the docker (which, moreover, they are focused on Linux, and I have win10 ...):

docker run -v $(pwd):/workspace -p 8080:8080 aoepeople/vistecture vistecture --config=/workspace serve

In my case, it LIKELY should look like this:
docker run -p 8080:8080 aoepeople/vistecture vistecture --config=/example serve

But it gives me an error while I'm in this folder :
2019/03/02 17:48:54 stat demoproject: no such file or directory

Based on my understanding, the tool is written in Go. Is there a way to run it locally? And what is my fail?
UPD :
In my understanding, the trouble is that I can't feed vistecture --config to the right config directory. In my case, this is the example folder , which Tula refuses to accept.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-03-02
@SlandShow

why did you ignore the Volume connection in your version?
You need to do something like (I could be wrong, I didn’t have anything to do with docker in Windows, there seems to be some kind of specificity there):
docker run -p 8080:8080 -vc:\Users\username\Documents\whereyourproject\config_folder:/example aoepeople/vistecture vistecture --config=/example serve
I replaced the Linux construct $(pwd) , which probably won't work in Windows, with the full path to the config folder, substitute your own there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question