chore: switch to rippleci Docker container (#2534)

* fix docker container

* fix attempt

* use fix for browser tests too

* update contributing

* fix tests

* fix integration tests issues

* use variable for docker image
This commit is contained in:
Mayukha Vadari
2023-10-24 14:50:52 -04:00
committed by GitHub
parent e0d12141c7
commit c47aa58354
5 changed files with 75 additions and 68 deletions

View File

@@ -9,6 +9,9 @@ on:
pull_request:
workflow_dispatch:
env:
RIPPLED_DOCKER_IMAGE: rippleci/rippled:2.0.0-b3
jobs:
build-and-lint:
runs-on: ubuntu-latest
@@ -105,7 +108,7 @@ jobs:
- name: Run docker in background
run: |
docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/config/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env "ENV_ARGS=-a --start" --env GITHUB_ACTIONS=true --env CI=true xrpllabsofficial/xrpld:1.12.0-b1
docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/opt/ripple/etc/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env GITHUB_ACTIONS=true --env CI=true ${{ env.RIPPLED_DOCKER_IMAGE }} /opt/ripple/bin/rippled -a --conf /opt/ripple/etc/rippled.cfg
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
@@ -162,7 +165,7 @@ jobs:
- name: Run docker in background
run: |
docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/config/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env "ENV_ARGS=-a --start" --env GITHUB_ACTIONS=true --env CI=true xrpllabsofficial/xrpld:1.12.0-b1
docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/opt/ripple/etc/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env GITHUB_ACTIONS=true --env CI=true ${{ env.RIPPLED_DOCKER_IMAGE }} /opt/ripple/bin/rippled -a --conf /opt/ripple/etc/rippled.cfg
- name: Setup npm version 9
run: |