1
0
mirror of https://github.com/fluencelabs/fluence-js.git synced 2025-03-31 14:31:04 +00:00

Run rust-peer using docker-compose ()

* Add docker-compose

* Run rust-peer using docker compose
This commit is contained in:
Anatoly Laskaris 2022-09-01 15:37:57 +03:00 committed by GitHub
parent 9de5aaeb36
commit 2fbde339b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 33 deletions

12
.github/e2e/docker-compose.yml vendored Normal file

@ -0,0 +1,12 @@
services:
fluence-1:
image: ${RUST_PEER_IMAGE}
ports:
- 1210:1210
- 4310:4310
command:
- -t=1210
- -w=4310
- --local
- -k=gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj
- --aqua-pool-size=2

@ -1,9 +1,5 @@
name: Run tests
defaults:
run:
working-directory: .
on:
push:
@ -15,8 +11,11 @@ jobs:
matrix:
node-version: [16.x, 17.x]
env:
RUST_PEER_IMAGE: fluencelabs/fluence
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.2
with:
@ -28,10 +27,19 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Run container with Fluence node
run: |
docker pull fluencelabs/fluence
docker run -d --rm -e RUST_LOG="info" -p 1210:1210 -p 4310:4310 fluencelabs/fluence -t 1210 -w 4310 -k gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj --local --aqua-pool-size 2
- name: Setup docker-compose
uses: KengoTODA/actions-setup-docker-compose@v1.0.9
with:
version: 'v2.10.0'
- name: Pull image
run: docker pull ${RUST_PEER_IMAGE}
- name: Run rust-peer
uses: isbang/compose-action@v1.1.0
with:
compose-file: ".github/e2e/docker-compose.yml"
down-flags: "--volumes"
- name: Install deps
run: pnpm i