From 258395bb0fc06e62dbe0f4ef923588097d96482f Mon Sep 17 00:00:00 2001 From: ravnica44 Date: Fri, 6 Jun 2025 16:47:36 +0200 Subject: [PATCH 1/5] Update docker-compose.yaml This update introduces log rotation settings to the Drosera service in the Docker Compose file. Specifically, it limits the maximum log file size to 10 megabytes and retains up to 3 log files. This helps prevent excessive disk space usage from unbounded log growth and improves overall container log management. --- docker-compose.yaml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index b7629bb..ee97d8f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,15 +1,38 @@ version: '3' + services: drosera: image: ghcr.io/drosera-network/drosera-operator:latest container_name: drosera-node + ports: - "31313:31313" - "31314:31314" + volumes: - drosera_data:/data - command: node --db-file-path /data/drosera.db --network-p2p-port 31313 --server-port 31314 --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com --eth-backup-rpc-url https://holesky.drpc.org --drosera-address 0xea08f7d533C2b9A62F40D5326214f39a8E3A32F8 --eth-private-key ${ETH_PRIVATE_KEY} --listen-address 0.0.0.0 --network-external-p2p-address ${VPS_IP} --disable-dnr-confirmation true + + command: > + node + --db-file-path /data/drosera.db + --network-p2p-port 31313 + --server-port 31314 + --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com + --eth-backup-rpc-url https://holesky.drpc.org + --drosera-address 0xea08f7d533C2b9A62F40D5326214f39a8E3A32F8 + --eth-private-key ${ETH_PRIVATE_KEY} + --listen-address 0.0.0.0 + --network-external-p2p-address ${VPS_IP} + --disable-dnr-confirmation true + restart: always + logging: + driver: "json-file" + options: + max-size: "10m" # Maximum size of a log file before rotation + max-file: "3" # Maximum number of log files to keep + volumes: drosera_data: + From 2b039977890fa0aaf6c0eea521bd17e11fc40941 Mon Sep 17 00:00:00 2001 From: ravnica44 Date: Fri, 6 Jun 2025 16:58:59 +0200 Subject: [PATCH 2/5] Update README.md optimizations of various Bash shell commands --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8cc3eb3..3fd48c6 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ sudo docker run hello-world curl -L https://app.drosera.io/install | bash ``` ``` -source /root/.bashrc +echo 'export PATH="$HOME/drosera/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc ``` ``` droseraup @@ -62,7 +62,7 @@ droseraup curl -L https://foundry.paradigm.xyz | bash ``` ``` -source /root/.bashrc +echo 'export PATH="$HOME/.foundry/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc ``` ``` foundryup @@ -205,14 +205,15 @@ tar -xvf drosera-operator-v1.17.2-x86_64-unknown-linux-gnu.tar.gz * Currently the Operator CLI version is `v1.17.2`. Verify the latest version [here](https://github.com/drosera-network/releases/releases) * You have to get the link of `drosera-operator-v1.x.x-x86_64-unknown-linux-gnu.tar.gz` +# Move path to run it globally +`mv drosera-operator ~/drosera/bin/` +`echo 'export PATH="$HOME/drosera/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc` + Test the CLI with `./drosera-operator --version` to verify it's working. ```console # Check version ./drosera-operator --version -# Move path to run it globally -sudo cp drosera-operator /usr/bin - # Check if it is working drosera-operator ``` From dab1f92ad32960ba9eea1c6499f552b1c831fdce Mon Sep 17 00:00:00 2001 From: ravnica44 Date: Fri, 6 Jun 2025 17:05:59 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3fd48c6..9c9f513 100644 --- a/README.md +++ b/README.md @@ -206,9 +206,10 @@ tar -xvf drosera-operator-v1.17.2-x86_64-unknown-linux-gnu.tar.gz * You have to get the link of `drosera-operator-v1.x.x-x86_64-unknown-linux-gnu.tar.gz` # Move path to run it globally -`mv drosera-operator ~/drosera/bin/` -`echo 'export PATH="$HOME/drosera/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc` - +```bash +mv drosera-operator ~/drosera/bin/ +echo 'export PATH="$HOME/drosera/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc +``` Test the CLI with `./drosera-operator --version` to verify it's working. ```console # Check version From 574ad44d80217f380117128fe296e95b3eaea16d Mon Sep 17 00:00:00 2001 From: ravnica44 Date: Fri, 6 Jun 2025 17:07:14 +0200 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c9f513..cc57121 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ tar -xvf drosera-operator-v1.17.2-x86_64-unknown-linux-gnu.tar.gz * Currently the Operator CLI version is `v1.17.2`. Verify the latest version [here](https://github.com/drosera-network/releases/releases) * You have to get the link of `drosera-operator-v1.x.x-x86_64-unknown-linux-gnu.tar.gz` -# Move path to run it globally +## Move path to run it globally ```bash mv drosera-operator ~/drosera/bin/ echo 'export PATH="$HOME/drosera/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc From 836bd6759f29d1a945ffbbf4cc5d09847185d4db Mon Sep 17 00:00:00 2001 From: ravnica44 Date: Sun, 8 Jun 2025 17:29:42 +0200 Subject: [PATCH 5/5] Update docker-compose.yaml --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index ee97d8f..7541caf 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -30,7 +30,7 @@ services: logging: driver: "json-file" options: - max-size: "10m" # Maximum size of a log file before rotation + max-size: "100m" # Maximum size of a log file before rotation max-file: "3" # Maximum number of log files to keep volumes: