Remove fluence local up from CI

This commit is contained in:
Akim Mamedov 2024-03-04 23:17:43 +07:00
parent 4f18222a04
commit 477a12d889
8 changed files with 133 additions and 58 deletions

View File

@ -1,9 +0,0 @@
# yaml-language-server: $schema=schemas/env.json
# Defines user project preferences
# Documentation: https://github.com/fluencelabs/cli/tree/main/docs/configs/env.md
version: 0
fluenceEnv: local

View File

@ -1,18 +0,0 @@
# yaml-language-server: $schema=schemas/provider-secrets.json
# Defines secrets config used for provider set up
# Documentation: https://github.com/fluencelabs/cli/tree/main/docs/configs/provider-secrets.md
version: 0
noxes:
nox-0:
networkKey: t/7R5m9TprvbWFwr2ZKe8hm6UW84ulDq4pVbDvHUCdw=
signingWallet: "0x3785b85a34b65082664bdb2ccb47fba6aab6984b7c16b36ad54145eecc368e4c"
nox-1:
networkKey: +5VkzeaILY+Emk9zsLKJ82dzzF3fMmlFkNhkJVwDMdo=
signingWallet: "0xd9a5eee84979d0cf118f82f7c97ca6980e6a21db0c7271a3d59248841ed04d83"
nox-2:
networkKey: YNq7A6KlPhdyJwq7y3meTIPUVQ34HFwW21MlsDjpxsM=
signingWallet: "0x16e3984df2918538c5dbba032f00a5ecd5900b9c43a36b38ed89b6be1820a9ba"

View File

@ -1,28 +0,0 @@
{
"$id": "https://fluence.dev/schemas/env.yaml",
"title": "env.yaml",
"type": "object",
"description": "Defines user project preferences",
"properties": {
"fluenceEnv": {
"title": "Fluence environment",
"description": "Fluence environment to connect to",
"type": "string",
"enum": [
"dar",
"stage",
"local",
"custom"
],
"nullable": true
},
"version": {
"type": "integer",
"const": 0
}
},
"required": [
"version"
],
"additionalProperties": false
}

129
.github/docker-compose.yaml vendored Normal file
View File

@ -0,0 +1,129 @@
# yaml-language-server: $schema=schemas/docker-compose.json
# The Compose file is a YAML file defining a multi-containers based application.
# Documentation: https://github.com/fluencelabs/cli/tree/main/docs/configs/docker-compose.md
version: "3"
volumes:
ipfs: null
nox-0: null
nox-1: null
nox-2: null
secrets:
nox-0:
file: secrets/nox-0.txt
nox-1:
file: secrets/nox-1.txt
nox-2:
file: secrets/nox-2.txt
services:
ipfs:
image: ipfs/kubo
ports:
- 5001:5001
- 4001:4001
environment:
IPFS_PROFILE: server
volumes:
- ipfs:/data/ipfs
healthcheck:
test: ipfs id || exit 1
interval: 8s
timeout: 10s
retries: 20
nox-0:
image: docker.fluence.dev/nox:feat-vm-425-aquavm-mem-limits-from-config-2_5056_1
ports:
- 7771:7771
- 9991:9991
environment:
WASM_LOG: debug
FLUENCE_MAX_SPELL_PARTICLE_TTL: 9s
FLUENCE_ROOT_KEY_PAIR__PATH: /run/secrets/nox-0
RUST_LOG: chain_connector=debug,run-console=trace,aquamarine::log=debug,network=trace,worker_inactive=trace
command:
- --config=/run/configs/nox-0_Config.toml
- --dev-mode
- --external-maddrs
- /dns4/nox-0/tcp/7771
- /dns4/nox-0/tcp/9991/ws
- --allow-private-ips
- --local
depends_on:
ipfs:
condition: service_healthy
volumes:
- ./configs/nox-0_Config.toml:/run/configs/nox-0_Config.toml
- nox-0:/.fluence
secrets:
- nox-0
healthcheck:
test: curl -f http://localhost:18080/health
interval: 5s
timeout: 2s
retries: 10
nox-1:
image: docker.fluence.dev/nox:feat-vm-425-aquavm-mem-limits-from-config-2_5056_1
ports:
- 7772:7772
- 9992:9992
environment:
WASM_LOG: debug
FLUENCE_MAX_SPELL_PARTICLE_TTL: 9s
FLUENCE_ROOT_KEY_PAIR__PATH: /run/secrets/nox-1
RUST_LOG: chain_connector=debug,run-console=trace,aquamarine::log=debug,network=trace,worker_inactive=trace
command:
- --config=/run/configs/nox-1_Config.toml
- --external-maddrs
- /dns4/nox-1/tcp/7772
- /dns4/nox-1/tcp/9992/ws
- --allow-private-ips
- --bootstraps=/dns/nox-0/tcp/7771
depends_on:
ipfs:
condition: service_healthy
volumes:
- ./configs/nox-1_Config.toml:/run/configs/nox-1_Config.toml
- nox-1:/.fluence
secrets:
- nox-1
healthcheck:
test: curl -f http://localhost:18080/health
interval: 5s
timeout: 2s
retries: 10
nox-2:
image: docker.fluence.dev/nox:feat-vm-425-aquavm-mem-limits-from-config-2_5056_1
ports:
- 7773:7773
- 9993:9993
environment:
WASM_LOG: debug
FLUENCE_MAX_SPELL_PARTICLE_TTL: 9s
FLUENCE_ROOT_KEY_PAIR__PATH: /run/secrets/nox-2
RUST_LOG: chain_connector=debug,run-console=trace,aquamarine::log=debug,network=trace,worker_inactive=trace
command:
- --config=/run/configs/nox-2_Config.toml
- --dev-mode
- --external-maddrs
- /dns4/nox-2/tcp/7773
- /dns4/nox-2/tcp/9993/ws
- --allow-private-ips
- --bootstraps=/dns/nox-0/tcp/7771
depends_on:
ipfs:
condition: service_healthy
volumes:
- ./configs/nox-2_Config.toml:/run/configs/nox-2_Config.toml
- nox-2:/.fluence
secrets:
- nox-2
healthcheck:
test: curl -f http://localhost:18080/health
interval: 5s
timeout: 2s
retries: 10

1
.github/secrets/nox-0.txt vendored Normal file
View File

@ -0,0 +1 @@
t/7R5m9TprvbWFwr2ZKe8hm6UW84ulDq4pVbDvHUCdw=

1
.github/secrets/nox-1.txt vendored Normal file
View File

@ -0,0 +1 @@
+5VkzeaILY+Emk9zsLKJ82dzzF3fMmlFkNhkJVwDMdo=

1
.github/secrets/nox-2.txt vendored Normal file
View File

@ -0,0 +1 @@
YNq7A6KlPhdyJwq7y3meTIPUVQ34HFwW21MlsDjpxsM=

View File

@ -80,9 +80,7 @@ jobs:
run: fluence local init --no-input
- name: Run nox network
run: fluence local up
env:
FCLI_V_NOX: docker.fluence.dev/nox:feat-vm-425-aquavm-mem-limits-from-config-2_5056_1
run: docker compose -f .github/docker-compose.yaml up -d
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4