-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from cryptape/release/v0.4.0
Release/v0.4.0
- Loading branch information
Showing
28 changed files
with
810 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tmp/ | ||
cita-test-chain/ | ||
server/grafana_data/ | ||
server/prometheus_data/ | ||
.vscode/ | ||
.build-version | ||
test/dummy/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.3.0 | ||
0.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,15 @@ | ||
# container hostname | ||
# citamon_agent_cita_exporter HostName | ||
HOSTNAME=nodehostname | ||
|
||
# prometheus_node_exporter HostPort and ContainerPort | ||
HOST_HOSTPORT=1920 | ||
HOST_CONTAINERPORT=9100 | ||
|
||
# process_node_exporter HostPort and ContainerPort | ||
PROCESS_HOSTPORT=1921 | ||
PROCESS_CONTAINERPORT=9256 | ||
|
||
# rabbitmq_node_exporter HostPort and ContainerPort | ||
RABBITMQ_HOSTPORT=1922 | ||
RABBITMQ_CONTAINERPORT=1922 | ||
|
||
# prometheus_citaMonitorAgent_exporter HostPort and ContainerPort | ||
AGENT_HOSTPORT=1923 | ||
AGENT_CONTAINERPORT=1920 | ||
|
||
# CITA node ip and port | ||
NODE_IP=1.1.1.1 | ||
NODE_PORT=1337 | ||
|
||
# CITA node directory analysis | ||
NODE_DIR=/data/cita_secp256k1_sha3/test-chain/0 | ||
SOFT_PATH=/data/cita_secp256k1_sha3/ | ||
|
||
# CITA NODE INFO | ||
CITA_NODENAME=node_3 | ||
CITA_CHAIN_ID=opc-devnet/3 | ||
CITA_NETWORKPORT=4003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
## 一个基础的 python 运行环境 | ||
FROM python:3 | ||
## 设置工作目录 | ||
FROM ubuntu:18.04 | ||
WORKDIR /config | ||
## 将当前系统文件夹内容复制到容器的 app 目录 | ||
ADD . /config | ||
## 安装必要的依赖包 | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
python3 \ | ||
python3-pip \ | ||
libcurl4-openssl-dev \ | ||
&& apt-get clean \ | ||
&& apt-get autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip3 install -r requirements.txt | ||
RUN mv cita-cli /bin/cita-cli && chmod +x /bin/cita-cli | ||
ENV PORT=1920 | ||
## 运行命令 | ||
ENV PORT=1923 | ||
CMD "python3" "cita_monitor_agent.py" "$NODE_IP_PORT" "$PORT" "$NODE_DIR" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
prometheus-client==0.5.0 | ||
flask | ||
psutil | ||
flask==1.0.3 | ||
psutil==5.6.3 |
Oops, something went wrong.