-
Notifications
You must be signed in to change notification settings - Fork 28
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
Cannot see nodes/services/any in the UI #61
Comments
Hello @simongareste , Indeed, by default, on docker, environment variables are not exported. The reason why it works without docker is that consul-templaterb uses by default I am gonna check for the issues you mentioned: about |
Indeed, thank you for you bug report: there was a bug fixed by 3a1dea9 (a missing resource containing the decorator) in the Dockerfile. I released a new Docker version 1.26.2 - should work on your machine now. I will work with this new version, human tested a few seconds ago! Sorry for such lame bug (to be fair, we don't use docker for this app in our real-world deployments, that's why). To test again: Thanks a lot for the bug report and feel free to create Pull Request if you modify the templates and want your changes included in the default version. You can also have a look at https://github.com/criteo/consul-templaterb/blob/master/samples/consul-ui/decorators.js.erb to customize your UI (for instance, linking some metadata of your Consul nodes/services with internal services of yours). |
Hi, Indeed, with the javascript fixed it works as expected (I wasn't clear in my previous post, I did had everything working in the container, except the view displayed in my browser - the files were all valid, my env variable was correctly interpretated). However, I believe you still have an issue in the repository, as the Gemfile.lock provided here states
whereas the docker image ruby:2.5 comes with bundler 1.17.2. Because of this, building the image by directly building the Dockerfile upon clone won't work :
I see a few options to fix this:
|
@simongareste Arf... dependencies management with Ruby... I'll have a look, thank you! Since you seem to know more than I do about dependency managemen with Ruby and Docker, would you like to create a Pull-Request? |
Hi,
When builder the Dockerfile and going to the inferface, I can't see anything concerning my nodes or services in the UI. When I go inside the container and try to wget my nodes for example, I receive them (
wget $CONSUL_HTTP_ADDR/v1/catalog/nodes
works). While I'm in the container, I can see them in consul_services.json.Could it be because it tries to consult them directly, instead of asking the $CONSUL_HTTP_ADDR for information ?
If it still calls $CONSUL_HTTP_ADDR, then my network configuration is not the reason for this.
But then, when I try to build/launch from scratch (i.e without docker), running
bundle exec consul-templaterb -c http://192.168.1.27:8500 samples/consul-ui/*.erb
, the UI is still accessible, I see that the json files are filed (consul_nodes.json, consul_services.json), but I still don't see data present in the static html files of consul-ui (consul-templaterb/samples/consul-ui/consul-timeline-ui.html, built from the consul-templaterb/samples/consul-ui/consul-timeline-ui.html.erb file).Perhaps the following errors in the browser (FF 77) console is the reason?
If not, could you please explain me where I missed a step?
The text was updated successfully, but these errors were encountered: