Skip to content

Commit

Permalink
Update relayer inventory config (#76)
Browse files Browse the repository at this point in the history
### What was the problem?

This PR resolves #LISK-1146

### How was it solved?

- [x] Updated relayer inventory config
- [x] Cleanup appspec.yml
- [x] Improve PR CI to check that docker images are built successfully

### How was it tested?

- Relayer setup: Local dev scripts
  - `sh scripts/lisk/docker/dev/composeStart.sh`
  - `sh scripts/lisk/docker/dev/composeStop.sh`
- Workflow changes: `act -C . -W ./.github/workflows/pr.yaml
--container-architecture linux/amd64 --pull --rm`
  • Loading branch information
sameersubudhi authored Oct 8, 2024
1 parent 98d4403 commit fa79cc8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 30 # `yarn test` takes longer time
timeout-minutes: 30 # `yarn test` takes long time
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -36,3 +36,18 @@ jobs:
- name: Test
shell: bash
run: yarn test

docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build the Docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: false
platforms: linux/amd64
2 changes: 0 additions & 2 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ files:
hooks:
ApplicationStop:
- location: scripts/lisk/docker/composeStop.sh
timeout: 330
ApplicationStart:
- location: scripts/lisk/docker/composeStart.sh
timeout: 300
12 changes: 6 additions & 6 deletions config/mainnet/relayerExternalInventory.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
"1135": {
"targetPct": 30,
"thresholdPct": 10,
"targetOverageBuffer": 3,
"unwrapWethThreshold": 0.025,
"unwrapWethTarget": 0.1,
"targetOverageBuffer": 1.5
"unwrapWethTarget": 0.1
}
},
"LSK": {
"1135": {
"targetPct": 30,
"thresholdPct": 10,
"targetOverageBuffer": 2.5
"thresholdPct": 15,
"targetOverageBuffer": 3
}
},
"USDT": {
"1135": {
"targetPct": 30,
"thresholdPct": 10,
"targetOverageBuffer": 1.5
"thresholdPct": 15,
"targetOverageBuffer": 3
}
}
}
Expand Down

0 comments on commit fa79cc8

Please sign in to comment.