Skip to content

Commit

Permalink
syntax and bump v0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hard-nett committed Dec 29, 2024
1 parent 1b9274a commit 3b6c31d
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 22 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ O-line has a generic base image which can download the required binary at runtim

This generic image provides the O-line scripts and configuration helpers, and nothing else. Set the `BINARY_URL` environment variable to a `.zip`, `.tar` or `.tar.gz` URL, and configure `PROJECT`, `PROJECT_DIR` and `PROJECT_BIN`. Alternatively provide a [Chain Registry](https://github.com/cosmos/chain-registry) `CHAIN_JSON` to configure everything automatically (where data is available).

Image URL: `ghcr.io/terp-network/o-line:v0.0.11-generic`
Image URL: `ghcr.io/terp-network/o-line:v0.0.12-generic`

```yaml
services:
node:
image: ghcr.io/terpnetwork/o-line:v0.0.11-generic
image: ghcr.io/terpnetwork/o-line:v0.0.12-generic
env:
- MONIKER=my-moniker-1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand All @@ -45,7 +45,7 @@ tagged with the form `$COSMOS_OMNIBUS_VERSION-$PROJECT-$PROJECT_VERSION`.

|Project|Version|Image| |
|---|---|---|---|
|[terp-network](https://github.com/terpnetwork/terp-core)|`v4.2.2`|`terpnetwork/o-line:v0.0.11`|[Example](./terpnetwork)|
|[terp-network](https://github.com/terpnetwork/terp-core)|`v4.2.2`|`terpnetwork/o-line:v0.0.12`|[Example](./terpnetwork)|

## Example configurations

Expand Down Expand Up @@ -221,7 +221,7 @@ See [Cosmos docs](https://docs.tendermint.com/master/nodes/configuration.html) f

### Creating New ghcr.io image:
```sh
git tag v0.0.10 && git push --tags
git tag v0.0.12 && git push --tags
```

<!-- Adding a new chain is easy:
Expand Down
2 changes: 1 addition & 1 deletion _examples/load-balanced-rpc-nodes/node_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
node:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=my-moniker-1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down
6 changes: 3 additions & 3 deletions _examples/snapshot_backup/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ version: "2.0"

services:
node:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=my-moniker-1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
- MINIMUM_GAS_PRICES=0.05uthiol
- FASTSYNC_VERSION=v0
- SNAPSHOT_PATH=<bucket/path>
- SNAPSHOT_TIME=00:00:00
- SNAPSHOT_PATH=snapshots
- SNAPSHOT_TIME=00:00:10
# - SNAPSHOT_DAY=* #(1-7)
- SNAPSHOT_SIZE=214748364800 # 200GB in bytes
- ADDRBOOK_URL=https://server-3.itrocket.net/mainnet/terp/addrbook.json
Expand Down
4 changes: 2 additions & 2 deletions _examples/statesync/snapshot-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
node1:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=public-node-1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand All @@ -26,7 +26,7 @@ services:
# data:
# mount: /root/.akash
node2:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=public-node-2
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down
2 changes: 1 addition & 1 deletion _examples/statesync/statesync-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
node1:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=private_node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down
6 changes: 3 additions & 3 deletions _examples/validator-and-private-sentries/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
# validator:
# image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
# image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
# env:
# - MONIKER=validator
# - CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down Expand Up @@ -34,7 +34,7 @@ services:
# # data:
# # mount: /root/.akash
node1:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=private_node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down Expand Up @@ -63,7 +63,7 @@ services:
# data:
# mount: /root/.akash
node2:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=private_node_2
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down
4 changes: 2 additions & 2 deletions _examples/validator-and-public-sentries/sentries-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
node1:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=private_node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand All @@ -30,7 +30,7 @@ services:
# data:
# mount: /root/.akash
node2:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=private_node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
validator:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=validator
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down
2 changes: 1 addition & 1 deletion _examples/validator-and-tmkms/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
node:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=my-moniker-1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/refs/heads/master/terpnetwork/chain.json
Expand Down
5 changes: 3 additions & 2 deletions snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,18 @@ while true; do
systemctl start caddy.service &
caddy_pid=$!
echo "$TIME: Snapshot available at http://localhost:80/terp_latest.tar.gz"
fi

echo "$TIME: Restarting terpd"
exec $SNAPSHOT_CMD &
PID=$!
sleep 1s
else
if ! kill -0 $PID; then
echo "$TIME: Process has died. Exiting"
break;
fi
fi

sleep 1s
done

# todo: after n snapshots created prune k # of snapshots by saving to jackal storage provider
2 changes: 1 addition & 1 deletion terpnetwork/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2.0"

services:
node:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
env:
- MONIKER=my-moniker-1
- CHAIN_ID=morocco-1
Expand Down
2 changes: 1 addition & 1 deletion terpnetwork/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.4'

services:
node_1:
image: ghcr.io/terpnetwork/o-line:v0.0.11-terpnetwork-v4.2.2
image: ghcr.io/terpnetwork/o-line:v0.0.12-terpnetwork-v4.2.2
ports:
- '26656:26656' # peer
- '26657:26657' # rpc
Expand Down

0 comments on commit 3b6c31d

Please sign in to comment.