user4251: 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 setup and what is the underlaying 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 webserver in a different docker image and make the container communicate with the cardano-node container.
Questions:

How can I communicate my web server container with the cardano-node container so I can run the cardano-cli commands?


user1142: NIX is used to build the image. There is no Dockerfile (as far as I know).
https://github.com/input-output-hk/cardano-node/blob/master/nix/docker/default.nix

You can establish cross-container communication via node.socket:
docker run -e NETWORK=mainnet -v node-ipc:/ipc inputoutput/cardano-node
docker run -e NETWORK=mainnet -v node-ipc:/ipc inputoutput/some-node-client

https://hub.docker.com/r/inputoutput/cardano-node

user4211: Approach 1 is the only one that makes sense to me in my limited knowledge of Containers. Containers, I understand, are different operating system context, not just different process so there isn't really IPC outside of the Docker api. The TCP/IP stack really shines here. Have a small web service with your Cardano-node / Cardano-cli which does basic things with the software and have an additional webserver act as the application level service, in my opinion.

4251: <p>Can anyone help me with something, I'm trying to run a web server over the cardano-node docker image.</p>
<p>I have some solutions in mind but I would like to have some feedback from you.</p>
<p>Approach # 1</p>
<p>Build a new image over the cardano-node docker image that install node and runs my server code.</p>
<p>My questions around this are:</p>
<ul>
<li>Where can I find the cardano-node Dockerfile? I need to know what is already setup and what is the underlaying Linux distro.</li>
<li>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.</li>
</ul>
<p>Approach # 2</p>
<p>Create my webserver in a different docker image and make the container communicate with the cardano-node container.</p>
<p>Questions:</p>
<ul>
<li>How can I communicate my web server container with the cardano-node container so I can run the cardano-cli commands?</li>
</ul>
 1142: <p>NIX is used to build the image. There is no Dockerfile (as far as I know).
<a href="https://github.com/input-output-hk/cardano-node/blob/master/nix/docker/default.nix" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-node/blob/master/nix/docker/default.nix</a></p>
<hr />
<p>You can establish cross-container communication via node.socket:</p>
<pre><code>docker run -e NETWORK=mainnet -v node-ipc:/ipc inputoutput/cardano-node
docker run -e NETWORK=mainnet -v node-ipc:/ipc inputoutput/some-node-client
</code></pre>
<p><a href="https://hub.docker.com/r/inputoutput/cardano-node" rel="nofollow noreferrer">https://hub.docker.com/r/inputoutput/cardano-node</a></p>
 4211: <p>Approach 1 is the only one that makes sense to me in my limited knowledge of Containers. Containers, I understand, are different operating system context, not just different process so there isn't really IPC outside of the Docker api. The TCP/IP stack really shines here. Have a small web service with your Cardano-node / Cardano-cli which does basic things with the software and have an additional webserver act as the application level service, in my opinion.</p>
