Post build configuration clarifications request #19
Replies: 4 comments 9 replies
-
From your question i've notice that my diagram can be misleading. I will fix that, I think I wasn't settle yet on what port I would used when a draw that one..! Real configuration below: Grafana and Monitor RolesYes, this is it. When cardano-node is running, it stream metrics on port 12798. Prometheus read from that feed and save it to its database. Then Grafana display a dashboard using data from your prometheus data source. Actually you can configure prometheus to read from different node, so you wouldn't require to run a prometheus container along with each of your node. But it would require more configuration so I choose to leave it that way. Regarding the Config folder path for the Grafana and MonitorThis step is optional, it only allow you to override the default configuration. Regarding the Grafana and Monitor imagesFrom the log you sent me, I can see that there's been an issue with ubuntu repositories. The Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hi Pascal, Just to let you know that the link for the Installation of db-sync & graphql is broken: I assume I need to install these also. All the best, |
Beta Was this translation helpful? Give feedback.
-
Hi Pascal, I have few more questions, I would greatly appreciate if you could find some time and clarify these for me. Understanding the interaction with a Docker containerI have to admit I still have difficulty understanding how to interact with the container once created, mostly from the point of view of copying files from the container out or to bring in certain files.
Creating the Node Producer KeysIn my case I plan to create these keys on my Docker container of Node Producer Pi while is completely disconnected from internet.
Would be this recommended Note #!/bin/bash USERNAME="root" TESTNET_MAGIC=42 CNODE_BIN="/root/.cabal/bin" SLOT_PER_PERIOD=3600 cardano-cli shelley node issue-op-cert --kes-verification-key-file kes.vkey --cold-signing-key-file node.skey --operational-certificate-issue-counter node.counter --kes-period $KES_PERIOD --out-file node.cert should look like that:
Thanks a lot for your time and patience, |
Beta Was this translation helpful? Give feedback.
-
Hi Pascal, I tried to use docker-compose but I get the following error: Recreating cardano_node ... error ERROR: for cardano_node Cannot start service cardano_node: OCI runtime failed: container_linux.go:367: starting container process caused exec: "start-producer.sh": executable file not found in $PATH: unknown I copied the start-producer.sh in the folders: ~/cardano and also in ~/cardano/config All the best, |
Beta Was this translation helpful? Give feedback.
-
Hi Pascal,
I created a new thread in order to focus on the post build required configuration.
I would like to clarify with your help few of the issues I encountered.
Please receive my thanks in advance for your time and help.
Grafana and Monitor Roles
This is more of a question to double check my understanding.
After looking at your diagram the following is my understanding:
Regarding the Config folder path for the Grafana and Monitor
As in my last question I assume the required configuration files are outside of the container.
If that is the case should I create the config folder in this path? :
Regarding the Grafana and Monitor images
The Grafana docker image was built successfully.
During the Docker build for the Monitor image the following error was encountered:
sudo docker build -t cardano_monitor:latest ./Dockerfiles/monitor
Sending build context to Docker daemon 6.144kB
Step 1/35 : FROM ubuntu:focal
---> 306e6575a9e4
Step 2/35 : LABEL name="cardano_monitor"
---> Running in a8ce0c1aa406
Removing intermediate container a8ce0c1aa406
---> 39f5feb92535
Step 3/35 : LABEL description="Monitoring tools for Cardano node and its host"
---> Running in 2a156b07f114
Removing intermediate container 2a156b07f114
---> 0f89c901b641
Step 4/35 : LABEL maintainer="https://github.com/pascallapointe"
---> Running in 9ad753e15c65
Removing intermediate container 9ad753e15c65
---> 1382f2960d41
Step 5/35 : WORKDIR /cardano
---> Running in 6c5e5cb9b6fc
Removing intermediate container 6c5e5cb9b6fc
---> 8321d0cc194f
Step 6/35 : RUN apt-get update
---> Running in 309bd68d5646
Err:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Temporary failure resolving 'ports.ubuntu.com'
Reading package lists...
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal/InRelease Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRelease Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease Temporary failure resolving 'ports.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container 309bd68d5646
---> c29dd19a1e0e
Step 7/35 : RUN apt-get install -y wget
---> Running in 46bf5cf9479c
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package wget
The command '/bin/sh -c apt-get install -y wget' returned a non-zero code: 100
on the subsequent run the following was the error:
sudo docker build -t cardano_monitor:latest ./Dockerfiles/monitor
Sending build context to Docker daemon 6.144kB
Step 1/35 : FROM ubuntu:focal
---> 306e6575a9e4
Step 2/35 : LABEL name="cardano_monitor"
---> Using cache
---> 39f5feb92535
Step 3/35 : LABEL description="Monitoring tools for Cardano node and its host"
---> Using cache
---> 0f89c901b641
Step 4/35 : LABEL maintainer="https://github.com/pascallapointe"
---> Using cache
---> 1382f2960d41
Step 5/35 : WORKDIR /cardano
---> Using cache
---> 8321d0cc194f
Step 6/35 : RUN apt-get update
---> Using cache
---> c29dd19a1e0e
Step 7/35 : RUN apt-get install -y wget
---> Running in 0520d480293f
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package wget
The command '/bin/sh -c apt-get install -y wget' returned a non-zero code: 100
Beta Was this translation helpful? Give feedback.
All reactions