From e63ec7f22af5ca88c28c1c27f7947f3e3f7d072c Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 3 Oct 2024 19:25:42 -0400 Subject: [PATCH] feat: add hway and sonr processes to dev environment --- deploy/devenv/process-compose.yaml | 35 +++++++++++++++++++++ deploy/testnet/process-compose.yaml | 5 +-- devbox.json | 2 +- devbox.lock | 48 +++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 deploy/devenv/process-compose.yaml diff --git a/deploy/devenv/process-compose.yaml b/deploy/devenv/process-compose.yaml new file mode 100644 index 000000000..559ef31b7 --- /dev/null +++ b/deploy/devenv/process-compose.yaml @@ -0,0 +1,35 @@ +version: "0.6" + +processes: + ipfs: + namespace: testnet + command: "sh scripts/setup_ipfs.sh" + background: true + availability: + restart: on_failure + max_restarts: 0 + + sonr: + namespace: testnet + command: "devbox run start:testnet" + restart: on_failure + max_restarts: 1 + depends: + - ipfs + + hway: + namespace: testnet + command: "devbox run start:hway" + restart: on_failure + max_restarts: 1 + depends: + - ipfs + - sonr + + tunnel: + namespace: public + command: "cloudflared tunnel run --token $TUNNEL_TOKEN" + restart: on_failure + max_restarts: 1 + depends: + - caddy diff --git a/deploy/testnet/process-compose.yaml b/deploy/testnet/process-compose.yaml index 159c7169f..cbdb46769 100644 --- a/deploy/testnet/process-compose.yaml +++ b/deploy/testnet/process-compose.yaml @@ -13,13 +13,14 @@ processes: namespace: testnet command: "devbox run start:testnet" restart: on_failure + env: max_restarts: 1 depends: - ipfs - motr: + hway: namespace: testnet - command: "devbox run start:motr" + command: "hway start" restart: on_failure max_restarts: 1 depends: diff --git a/devbox.json b/devbox.json index c744e18b6..3772c6c0f 100644 --- a/devbox.json +++ b/devbox.json @@ -12,7 +12,7 @@ ], "env": { "GOPATH": "$HOME/go", - "PATH": "$HOME/go/bin:$PATH", + "PATH": "./build:$HOME/go/bin:$PATH", "CHAIN_ID": "sonr-testnet-1", "DENOM": "usnr", "KEYRING": "test", diff --git a/devbox.lock b/devbox.lock index 4d7e30e6d..91471b6b2 100644 --- a/devbox.lock +++ b/devbox.lock @@ -193,6 +193,54 @@ } } }, + "gum@latest": { + "last_modified": "2024-09-10T15:01:03Z", + "resolved": "github:NixOS/nixpkgs/5ed627539ac84809c78b2dd6d26a5cebeb5ae269#gum", + "source": "devbox-search", + "version": "0.14.5", + "systems": { + "aarch64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/n1gqffrwdzr3vpsmwmwx3hmw814c1k6g-gum-0.14.5", + "default": true + } + ], + "store_path": "/nix/store/n1gqffrwdzr3vpsmwmwx3hmw814c1k6g-gum-0.14.5" + }, + "aarch64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/ggp10jr3l6higs0gqibp6ypjlf7yakpc-gum-0.14.5", + "default": true + } + ], + "store_path": "/nix/store/ggp10jr3l6higs0gqibp6ypjlf7yakpc-gum-0.14.5" + }, + "x86_64-darwin": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/jq8shghha81s1wg67fcjrfnf4hbliimn-gum-0.14.5", + "default": true + } + ], + "store_path": "/nix/store/jq8shghha81s1wg67fcjrfnf4hbliimn-gum-0.14.5" + }, + "x86_64-linux": { + "outputs": [ + { + "name": "out", + "path": "/nix/store/f199acwir08z47f3d5kf1fhmhajmd1ig-gum-0.14.5", + "default": true + } + ], + "store_path": "/nix/store/f199acwir08z47f3d5kf1fhmhajmd1ig-gum-0.14.5" + } + } + }, "ipfs@latest": { "last_modified": "2023-02-24T09:01:09Z", "resolved": "github:NixOS/nixpkgs/7d0ed7f2e5aea07ab22ccb338d27fbe347ed2f11#ipfs",