-
Notifications
You must be signed in to change notification settings - Fork 145
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
Information gap for custom ethereum node(s) name #152
Comments
Hi @Diiaablo95 Thanks for sharing your problem. Sorry for the late reply. On eventeum you can bundle your docker image with your own yml file, building your docker via your own build, or overriding default config via Spring standard ways. Spring can override variables via 2 main possibilities:
If you define an external config on SPRING_CONFIG_LOCATION, will work. https://www.baeldung.com/spring-properties-file-outside-jar I hope this info helps. |
Hello, yes I see that this solves the first of the two issues, thanks. But what about the latter one? |
Its Strange, At io.builders we are using config files with 3 different node names with no issues. Can you share the full yml file? |
Hello.
I have to say that I have spent several hours trying to figure out the reason of the problem.
Basically, I was trying to configure everything in a yaml file, instead of relying on default values and Docker env variables. Anyway, I came across two main errors that are not properly documented in the README:
There are examples of config files in the README, but nowhere it is mentioned how to pass those files to the eventeum container. I had to log into the container and debug the application to see that additional configuration can be passed by creating a
CONF
env variable pointing to the mounted yaml config file. I am no Spring expert, so I do not know if that is default behaviour for Spring applications, but it would be nice to specify HOW to pass a custom configuration file.An even bigger information gap regards the configuration of the Ethereum node(s) to listen to. If the
ETHEREUM_NODE_URL
is passed to the Docker container, everything seems to be working fine. As soon as I try to configure the node in the config file, by giving it a custom name, the event filters were not working anymore (at the end a listing of the not working ethereum configuration). I solved it by calling the nodedefault
, and apparently everything seems to be working again. So please also mention either that the node must be calleddefault
(in which case I do not know how eventeum would behave in case of two nodes), or what are all the steps to configure custom nodes (with custom names) in the config file.Thanks!
Eventeum docker compose config:
Not working Ethereum config:
Working Ethereum config:
The text was updated successfully, but these errors were encountered: