From f5a11061aca6fd1990db0a634ab4de069995f7df Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 3 Oct 2024 20:47:21 -0400 Subject: [PATCH] feat: introduce docker-compose based setup --- devbox.json | 75 ++++++++++++++++++++++++++++++++++---------- process-compose.yaml | 35 --------------------- 2 files changed, 59 insertions(+), 51 deletions(-) delete mode 100644 process-compose.yaml diff --git a/devbox.json b/devbox.json index 89f1e4471..44b07c679 100644 --- a/devbox.json +++ b/devbox.json @@ -30,22 +30,65 @@ }, "shell": { "scripts": { - "dev": ["air"], - "build:docker": ["make local-image"], - "build:hway": ["make nebula", "make hway"], - "build:nebula": ["make nebula"], - "build:sonrd": ["make motr", "make build"], - "build": ["make motr", "make build", "make hway"], - "gen:proto": ["make proto-gen"], - "gen:pkl": ["make pkl"], - "gen:templ": ["make templ"], - "start:hway": ["make templ", "make hway", "make start-hway"], - "start:testnet": ["make templ", "make install", "make sh-testnet"], - "start": ["process-compose up -d"], - "stop": ["process-compose down"], - "test:e2e": ["make templ", "make test-e2e"], - "test:unit": ["make templ", "make test-unit"], - "test": ["make templ", "make test"] + "dev": [ + "air" + ], + "build:docker": [ + "make local-image" + ], + "build:hway": [ + "make nebula", + "make hway" + ], + "build:nebula": [ + "make nebula" + ], + "build:sonrd": [ + "make motr", + "make build" + ], + "build": [ + "make motr", + "make build", + "make hway" + ], + "gen:proto": [ + "make proto-gen" + ], + "gen:pkl": [ + "make pkl" + ], + "gen:templ": [ + "make templ" + ], + "start:hway": [ + "make templ", + "make hway", + "make start-hway" + ], + "start:testnet": [ + "make templ", + "make install", + "make sh-testnet" + ], + "start": [ + "process-compose up -d" + ], + "stop": [ + "process-compose down" + ], + "test:e2e": [ + "make templ", + "make test-e2e" + ], + "test:unit": [ + "make templ", + "make test-unit" + ], + "test": [ + "make templ", + "make test" + ] } } } diff --git a/process-compose.yaml b/process-compose.yaml deleted file mode 100644 index 559ef31b7..000000000 --- a/process-compose.yaml +++ /dev/null @@ -1,35 +0,0 @@ -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