Can anyone help me with something, I’m trying to run a web server over the cardano-node docker image. I have some solutions in mind but I would like to have some feedback from you.
Approach # 1
Build a new image over the cardano-node docker image that install node and runs my server code.
My questions around this are:
Where can I find the cardano-node Dockerfile? I need to know what is already set up and what is the underlying Linux distro.
Related to the previous one, how can I install Node over the cardano-node image? I have tried multiple mechanisms like apt-get and nothing works.
Approach # 2
Create my web server in a different docker image and make the container communicate with the cardano-node container. Questions: - How can I communicate my webserver container with the cardano-node container so I can run the cardano-cli commands?
You would want to extend an existing docker image to get access to cardano-cli. Have a look at the incubator project for the cardano-node docker stuff. The base image is debian
The cli communicates with the node via the IPC socket. If the node exposes the socket through a volume like this …
… another container that references the same volume would only need to have the cli binary (and your stuff) i.e. your stuff does not have to run in the same container as the node