mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
feat: introduce docker-compose based setup
This commit is contained in:
parent
a0e24880c3
commit
f5a11061ac
75
devbox.json
75
devbox.json
@ -30,22 +30,65 @@
|
|||||||
},
|
},
|
||||||
"shell": {
|
"shell": {
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": ["air"],
|
"dev": [
|
||||||
"build:docker": ["make local-image"],
|
"air"
|
||||||
"build:hway": ["make nebula", "make hway"],
|
],
|
||||||
"build:nebula": ["make nebula"],
|
"build:docker": [
|
||||||
"build:sonrd": ["make motr", "make build"],
|
"make local-image"
|
||||||
"build": ["make motr", "make build", "make hway"],
|
],
|
||||||
"gen:proto": ["make proto-gen"],
|
"build:hway": [
|
||||||
"gen:pkl": ["make pkl"],
|
"make nebula",
|
||||||
"gen:templ": ["make templ"],
|
"make hway"
|
||||||
"start:hway": ["make templ", "make hway", "make start-hway"],
|
],
|
||||||
"start:testnet": ["make templ", "make install", "make sh-testnet"],
|
"build:nebula": [
|
||||||
"start": ["process-compose up -d"],
|
"make nebula"
|
||||||
"stop": ["process-compose down"],
|
],
|
||||||
"test:e2e": ["make templ", "make test-e2e"],
|
"build:sonrd": [
|
||||||
"test:unit": ["make templ", "make test-unit"],
|
"make motr",
|
||||||
"test": ["make templ", "make test"]
|
"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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user