diff --git a/.fluence/env.yaml b/.fluence/env.yaml deleted file mode 100644 index cacea2c5..00000000 --- a/.fluence/env.yaml +++ /dev/null @@ -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 diff --git a/.fluence/provider-secrets.yaml b/.fluence/provider-secrets.yaml deleted file mode 100644 index 3d79c1bd..00000000 --- a/.fluence/provider-secrets.yaml +++ /dev/null @@ -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" diff --git a/.fluence/schemas/env.json b/.fluence/schemas/env.json deleted file mode 100644 index 9c03303a..00000000 --- a/.fluence/schemas/env.json +++ /dev/null @@ -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 -} diff --git a/.github/docker-compose.yaml b/.github/docker-compose.yaml new file mode 100644 index 00000000..19ba74a1 --- /dev/null +++ b/.github/docker-compose.yaml @@ -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 diff --git a/.github/secrets/nox-0.txt b/.github/secrets/nox-0.txt new file mode 100644 index 00000000..e283612f --- /dev/null +++ b/.github/secrets/nox-0.txt @@ -0,0 +1 @@ +t/7R5m9TprvbWFwr2ZKe8hm6UW84ulDq4pVbDvHUCdw= \ No newline at end of file diff --git a/.github/secrets/nox-1.txt b/.github/secrets/nox-1.txt new file mode 100644 index 00000000..622ec1bb --- /dev/null +++ b/.github/secrets/nox-1.txt @@ -0,0 +1 @@ ++5VkzeaILY+Emk9zsLKJ82dzzF3fMmlFkNhkJVwDMdo= \ No newline at end of file diff --git a/.github/secrets/nox-2.txt b/.github/secrets/nox-2.txt new file mode 100644 index 00000000..ba55daa2 --- /dev/null +++ b/.github/secrets/nox-2.txt @@ -0,0 +1 @@ +YNq7A6KlPhdyJwq7y3meTIPUVQ34HFwW21MlsDjpxsM= \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b79a0d4a..088430c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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