forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(persistence-fabric): rewrite the plugin
- Rewrite fabric persistence plugin to match persistence ethereum plugin methods and behavior. - Change DB schema for persistence. - Add tests and sample data to the new plugin. Add them to project CI. Depends on hyperledger-cacti#3298 Signed-off-by: Michal Bajer <[email protected]>
- Loading branch information
Showing
33 changed files
with
4,478 additions
and
1,607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
--- | ||
env: | ||
NODEJS_VERSION: v18.18.2 | ||
RUN_TRIVY_SCAN: true | ||
RUN_TRIVY_SCAN: true | ||
jobs: | ||
ActionLint: | ||
uses: ./.github/workflows/actionlint.yaml | ||
|
@@ -1025,7 +1025,7 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
- run: ./tools/ci.sh | ||
|
||
- name: Ensure .tmp Directory Exists | ||
run: mkdir -p .tmp/benchmark-results/plugin-ledger-connector-besu/ | ||
|
||
|
@@ -1115,7 +1115,7 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
- run: ./tools/ci.sh | ||
|
||
cpl-connector-stellar: | ||
continue-on-error: false | ||
needs: | ||
|
@@ -1676,7 +1676,7 @@ jobs: | |
with: | ||
node-version: ${{ env.NODEJS_VERSION }} | ||
- uses: actions/[email protected] | ||
|
||
- id: yarn-cache | ||
name: Restore Yarn Cache | ||
uses: actions/[email protected] | ||
|
@@ -1766,6 +1766,31 @@ jobs: | |
node-version: ${{ env.NODEJS_VERSION }} | ||
- uses: actions/[email protected] | ||
|
||
- id: yarn-cache | ||
name: Restore Yarn Cache | ||
uses: actions/[email protected] | ||
with: | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
path: ./.yarn/ | ||
restore-keys: | | ||
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | ||
- run: ./tools/ci.sh | ||
cpp-fabric: | ||
continue-on-error: false | ||
env: | ||
FULL_BUILD_DISABLED: true | ||
JEST_TEST_PATTERN: packages/cactus-plugin-persistence-fabric/src/test/typescript/(unit|integration|benchmark)/.*/*.test.ts | ||
JEST_TEST_RUNNER_DISABLED: false | ||
TAPE_TEST_RUNNER_DISABLED: true | ||
needs: build-dev | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Use Node.js ${{ env.NODEJS_VERSION }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODEJS_VERSION }} | ||
- uses: actions/[email protected] | ||
|
||
- id: yarn-cache | ||
name: Restore Yarn Cache | ||
uses: actions/[email protected] | ||
|
@@ -2038,7 +2063,7 @@ jobs: | |
with: | ||
node-version: ${{ env.NODEJS_VERSION }} | ||
- uses: actions/[email protected] | ||
|
||
- id: yarn-cache | ||
name: Restore Yarn Cache | ||
uses: actions/[email protected] | ||
|
@@ -2267,7 +2292,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: ghcr.io/hyperledger/cactus-corda-all-in-one-obligation | ||
run: DOCKER_BUILDKIT=1 docker build ./tools/docker/corda-all-in-one/ -f ./tools/docker/corda-all-in-one/corda-v4_8/Dockerfile -t cactus-corda-all-in-one-obligation | ||
|
||
ghcr-dev-container-vscode: | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
|
@@ -2298,14 +2323,14 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: ghcr.io/hyperledger/cactus-example-supply-chain-app | ||
run: DOCKER_BUILDKIT=1 docker build . -f ./examples/cactus-example-supply-chain-backend/Dockerfile -t cactus-example-supply-chain-app | ||
|
||
ghcr-fabric-all-in-one: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: ghcr.io/hyperledger/cactus-fabric-all-in-one | ||
run: DOCKER_BUILDKIT=1 docker build ./tools/docker/fabric-all-in-one/ -f ./tools/docker/fabric-all-in-one/Dockerfile_v1.4.x | ||
|
||
ghcr-fabric2-all-in-one: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
@@ -2335,14 +2360,14 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: ghcr.io/hyperledger/cactus-quorum-all-in-one | ||
run: DOCKER_BUILDKIT=1 docker build ./tools/docker/quorum-all-in-one/ -f ./tools/docker/quorum-all-in-one/Dockerfile | ||
|
||
ghcr-quorum-multi-party-all-in-one: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: ghcr.io/hyperledger/cactus-quorum-multi-party-all-in-one | ||
run: DOCKER_BUILDKIT=1 docker build ./tools/docker/quorum-multi-party-all-in-one/ -f ./tools/docker/quorum-multi-party-all-in-one/Dockerfile -t cactus-quorum-multi-party-all-in-one | ||
|
||
name: Cactus_CI | ||
'on': | ||
pull_request: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM node:16 | ||
|
||
ENV PACKAGE_PATH=/opt/cactus-plugin-persistence-fabric | ||
|
||
WORKDIR ${PACKAGE_PATH} | ||
|
||
# CMake is required by one of npm dependencies (install other packages in this step as well in the future) | ||
RUN apt-get update && apt-get install -y cmake && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./dist/yarn.lock ./package.json ./ | ||
RUN yarn install --production --ignore-engines --non-interactive --cache-folder ./.yarnCache && \ | ||
rm -rf ./.yarnCache | ||
|
||
COPY ./dist ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.