Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
527 commits
Select commit Hold shift + click to select a range
8cca32e
Import v0.0.6 of ddo.js. (#898)
mariacarmina Apr 17, 2025
cdbe6e8
cleanups
bogdanfazakas Apr 17, 2025
d526062
Merge pull request #918 from oceanprotocol/fix/transferencoding+conte…
bogdanfazakas Apr 17, 2025
0f6f222
Add maxJobDuration into paid compute task. (#921)
mariacarmina Apr 25, 2025
c3ae21b
Refactor processor in indexer (#922)
giurgiur99 Apr 25, 2025
c30b26c
use latest contracts (#911)
alexcos20 Apr 28, 2025
2b01f32
use Ocean as default token (#929)
alexcos20 Apr 29, 2025
2de1a4f
Generate unique job id. (#931)
mariacarmina Apr 29, 2025
b3b441c
chore: new policy server
AdriGeorge Apr 30, 2025
910cd4d
fix: fix
AdriGeorge May 1, 2025
69c36c4
fix: fix
AdriGeorge May 1, 2025
3066de2
Fix undefined stream (#932)
giurgiur99 May 2, 2025
7bbcb7c
Update Dockerfile
alexcos20 May 2, 2025
9cb4464
fix: ci
AdriGeorge May 2, 2025
8770dec
fix: logs
AdriGeorge May 2, 2025
c7d77ab
fix: ci
AdriGeorge May 2, 2025
54963e1
fix: fix
AdriGeorge May 2, 2025
2d39bad
fix: ci
AdriGeorge May 2, 2025
b2fb7e1
fix: ci
AdriGeorge May 2, 2025
0f7aacf
fix: eof
AdriGeorge May 2, 2025
48474eb
Integrate credentials checks for service and asset levels in initiali…
mariacarmina May 7, 2025
dba3198
skip lint.
mariacarmina May 7, 2025
dcd9e43
Update ci docker logs.
mariacarmina May 7, 2025
fba187a
Fix lint.
mariacarmina May 7, 2025
5e8b77e
Added credentials check for free start compute. Use download endpoint…
mariacarmina May 8, 2025
b6212cb
log error.
mariacarmina May 8, 2025
62873e0
Check if did is provided on free start compute.
mariacarmina May 8, 2025
8a510b1
cleanup logs.
mariacarmina May 8, 2025
d321dc6
Merge pull request #37 from OceanProtocolEnterprise/feat/ddoHandlerV2
AdriGeorge May 9, 2025
9d1a39c
Integrate commands for compute from policy server.
mariacarmina May 12, 2025
fd0e7ac
Fix condition in the test.
mariacarmina May 12, 2025
8a81c81
Debug result.
mariacarmina May 12, 2025
3fa443b
cleanup.
mariacarmina May 12, 2025
e5f7638
print ddo test.
mariacarmina May 12, 2025
ace914c
Updated test.
mariacarmina May 12, 2025
1547a98
cleanup function.
mariacarmina May 12, 2025
07e6e22
fix: add logs
AdriGeorge May 19, 2025
bb1c3ad
Bump nanoid from 3.3.7 to 3.3.11 in /controlpanel (#912)
dependabot[bot] May 19, 2025
9dab448
Bump elliptic from 6.6.0 to 6.6.1 in /controlpanel (#913)
dependabot[bot] May 19, 2025
728774d
Bump send and serve-static in /controlpanel (#914)
dependabot[bot] May 19, 2025
1a97128
Bump @babel/runtime from 7.24.4 to 7.27.0 in /controlpanel (#917)
dependabot[bot] May 19, 2025
7138c31
Bump @babel/helpers from 7.24.1 to 7.27.0 in /controlpanel (#915)
dependabot[bot] May 19, 2025
9db7674
Bump base-x from 3.0.9 to 3.0.11 (#933)
dependabot[bot] May 19, 2025
7f239f3
fix: logs
AdriGeorge May 20, 2025
430a140
fix: remove logs
AdriGeorge May 20, 2025
89ccfd8
fix: update ethers v
AdriGeorge May 20, 2025
fed76d7
Merge branch 'main' into feature/credentials-check-for-compute
mariacarmina May 21, 2025
bc2ee4d
remove initialize compute command. Update initializeCompute handler.
mariacarmina May 21, 2025
cefed63
Enhance code.
mariacarmina May 21, 2025
656b69b
Define dedicated type for policy server when it comes on the handler …
mariacarmina May 22, 2025
04ae7e7
Fix type of policy server on http requests.
mariacarmina May 22, 2025
f2e3034
Add algoCustomData.json file into c2d (#942)
Breta01 May 28, 2025
e25a483
Check wallet signature (#947)
giurgiur99 May 29, 2025
c9faa2f
Fix consistency for job id generation within codebase. (#934)
mariacarmina May 29, 2025
ebd1317
sync
AdriGeorge May 30, 2025
8b57967
fix: build
AdriGeorge May 30, 2025
3b4c42e
Fix conflicts.
mariacarmina May 30, 2025
6e5240c
chore: sync
AdriGeorge Jun 2, 2025
8c29a8b
fix: lint
AdriGeorge Jun 2, 2025
3926a47
fix: ci
AdriGeorge Jun 2, 2025
dc402a8
fix: ci
AdriGeorge Jun 2, 2025
5656a4f
fix: tests
AdriGeorge Jun 2, 2025
a541140
fix: console
AdriGeorge Jun 2, 2025
8975648
fix: tests
AdriGeorge Jun 2, 2025
6a3c8f5
fix: tests
AdriGeorge Jun 2, 2025
2f98604
fix: ci cd
AdriGeorge Jun 3, 2025
bc21da1
fix: ci
AdriGeorge Jun 3, 2025
b7b8698
fix: ci
AdriGeorge Jun 3, 2025
b35071a
fix: tests
AdriGeorge Jun 3, 2025
6b32375
add log
AdriGeorge Jun 3, 2025
edcdedd
fix: logs
AdriGeorge Jun 3, 2025
696953e
fix: test and logs
AdriGeorge Jun 3, 2025
be9a5e9
fix: tests
AdriGeorge Jun 3, 2025
4cca11d
chore: return schema
AdriGeorge Jun 6, 2025
0839f35
fix: schema
AdriGeorge Jun 6, 2025
7814746
fix: typesense get schema
AdriGeorge Jun 6, 2025
cfbaf40
fix: typesense schema
AdriGeorge Jun 6, 2025
e34958e
fix: tests
AdriGeorge Jun 6, 2025
c58f5b2
Merge pull request #954 from oceanprotocol/feat/get-schema-name
AdriGeorge Jun 6, 2025
61b595d
fix: tests
AdriGeorge Jun 6, 2025
36bc330
Fix CI envs for system tests. (#955)
mariacarmina Jun 10, 2025
52283a1
fix: ddojs
AdriGeorge Jun 11, 2025
e8cc695
allow rawcode (#956)
giurgiur99 Jun 12, 2025
5fbd0fe
Auth token routes (#952)
giurgiur99 Jun 12, 2025
36dfdac
fix: console
AdriGeorge Jun 12, 2025
e8f6f2f
fix: update event
AdriGeorge Jun 12, 2025
88c7ed5
fix: update indexedMetadata event
AdriGeorge Jun 12, 2025
d6678dc
Merge pull request #960 from oceanprotocol/feat/update-event
AdriGeorge Jun 12, 2025
2c66a2c
optional rawcode (#962)
giurgiur99 Jun 12, 2025
0be52b1
fix: remove logs
AdriGeorge Jun 13, 2025
4544b33
Update publisherTrustedAlgorithmPublishers and publisherTrustedAlgori…
mariacarmina Jun 13, 2025
6784cb7
Merge pull request #43 from OceanProtocolEnterprise/feat/sync-nodes
AdriGeorge Jun 16, 2025
9ee90df
allow no dataset initialize (#966)
giurgiur99 Jun 17, 2025
ed12a92
fix: ddo chain id
AdriGeorge Jun 18, 2025
64fae5e
Merge branch 'main' into feature/credentials-check-for-compute
mariacarmina Jun 18, 2025
8cb5955
fix: chain
AdriGeorge Jun 19, 2025
0eb95bb
fix: metadata
AdriGeorge Jun 19, 2025
e2ffe7a
fix: merge
AdriGeorge Jun 19, 2025
9e0f995
fix: add logs
AdriGeorge Jun 19, 2025
f7466e1
fix: logs
AdriGeorge Jun 19, 2025
eb752d2
fix: logs
AdriGeorge Jun 19, 2025
2b79435
fix: logs
AdriGeorge Jun 19, 2025
78a5965
fix: logs
AdriGeorge Jun 19, 2025
2c92355
fix: logs
AdriGeorge Jun 19, 2025
484fa50
fix: logs
AdriGeorge Jun 19, 2025
8317f92
fix: test
AdriGeorge Jun 23, 2025
03e4294
fix: removed logs
AdriGeorge Jun 23, 2025
a919d84
Use signature or auth token for routes (#968)
giurgiur99 Jun 24, 2025
a2a9793
Fix commands usage for policy server.
mariacarmina Jun 24, 2025
65cb51a
fix: logs
AdriGeorge Jun 25, 2025
8c61711
fix: logs
AdriGeorge Jun 25, 2025
60258f5
Fix conflicts.
mariacarmina Jun 25, 2025
198f0e3
Fix arguments.
mariacarmina Jun 26, 2025
eb432d3
Add support for nvidia/amd gpus (#928)
alexcos20 Jun 30, 2025
9711be4
Refactor trusted algortihms and trusted publishers checks.
mariacarmina Jul 1, 2025
5df5bde
Use another branch from cli.
mariacarmina Jul 2, 2025
ecef864
chore: sync
AdriGeorge Jul 3, 2025
a164007
fix: ci
AdriGeorge Jul 3, 2025
0d37ead
chore: sync
AdriGeorge Jul 3, 2025
48c0316
fix: tests
AdriGeorge Jul 3, 2025
4a02b76
fix: remove logs
AdriGeorge Jul 3, 2025
3226891
fix: ci tests
AdriGeorge Jul 3, 2025
5456d3b
fix: ci tests
AdriGeorge Jul 3, 2025
eba1917
Metadata in compute jobs (#976)
giurgiur99 Jul 9, 2025
19afc71
Refactor trusted algortihms and trusted publishers checks. (#973)
mariacarmina Jul 9, 2025
ba189bb
Merge pull request #46 from OceanProtocolEnterprise/feature/refactor-…
AdriGeorge Jul 9, 2025
4f0d41f
resolve conflicts.
mariacarmina Jul 9, 2025
5ab79f9
Fix review.
mariacarmina Jul 9, 2025
1d14e9c
Use ddo.js for DDO fields manipulation.
mariacarmina Jul 10, 2025
b142f89
Update for free start compute.
mariacarmina Jul 10, 2025
ce88067
Update datasets samples.
mariacarmina Jul 10, 2025
dae8fa7
Update branch for cli.
mariacarmina Jul 10, 2025
a13bfb4
chore: stage
AdriGeorge Jul 10, 2025
37e6454
fix: lint
AdriGeorge Jul 10, 2025
d13b8ab
fix: log
AdriGeorge Jul 10, 2025
611c06c
fix: tests
AdriGeorge Jul 11, 2025
b2fca2d
fix: tests
AdriGeorge Jul 11, 2025
5c0f8ca
remove cli custom branch. (#977)
mariacarmina Jul 11, 2025
14e9ebd
Fix datasets samples.
mariacarmina Jul 11, 2025
e338882
Merge branch 'main' into feature/credentials-check-for-compute
mariacarmina Jul 11, 2025
12e1b73
fix: tests
AdriGeorge Jul 11, 2025
5477ba2
Fix samples and ci.
mariacarmina Jul 11, 2025
ccdc8d0
fix: tests
AdriGeorge Jul 11, 2025
e5a7d9f
fix: fix
AdriGeorge Jul 11, 2025
c9f6910
Update ddo.js.
mariacarmina Jul 11, 2025
faa9da0
Update lock.
mariacarmina Jul 11, 2025
7e7a3d9
Updated ddo schemas version.
mariacarmina Jul 13, 2025
5ea33f6
Fix samples.
mariacarmina Jul 13, 2025
e5f2068
Add engines for test.
mariacarmina Jul 13, 2025
219e97b
Bring all tests back.
mariacarmina Jul 13, 2025
4123778
Merge branch 'feature/credentials-check-for-compute' of https://githu…
AdriGeorge Jul 14, 2025
b706e0b
fix: tests
AdriGeorge Jul 14, 2025
bfbdfb1
fix: ci
AdriGeorge Jul 14, 2025
7819425
fix: fix
AdriGeorge Jul 15, 2025
268f9c0
fix: fix
AdriGeorge Jul 15, 2025
fcd6eda
fix: fix
AdriGeorge Jul 15, 2025
ae2e1c5
fix: fix
AdriGeorge Jul 15, 2025
be6dc31
fix: add logs
AdriGeorge Jul 17, 2025
c848cb9
fix: fix
AdriGeorge Jul 17, 2025
df1beb6
fix: fix
AdriGeorge Jul 17, 2025
f4eb27c
fix: fix
AdriGeorge Jul 18, 2025
fb37344
Merge pull request #47 from OceanProtocolEnterprise/feature/integrate…
AdriGeorge Jul 23, 2025
2c191b6
chore: sync nodes
AdriGeorge Jul 24, 2025
cd570cb
chore: sync nodes
AdriGeorge Jul 24, 2025
b8a0440
fix: lint
AdriGeorge Jul 24, 2025
741b52d
fix: fix
AdriGeorge Jul 25, 2025
71dc2e3
fix: tests
AdriGeorge Jul 25, 2025
9278d51
Merge pull request #48 from OceanProtocolEnterprise/feat/sync-nodes-july
AdriGeorge Jul 25, 2025
26d41c1
chore: sync initiate
AdriGeorge Jul 28, 2025
2b8c5ea
fix: fix
AdriGeorge Jul 29, 2025
325ffe1
Merge pull request #49 from OceanProtocolEnterprise/feat/syncInitiate
AdriGeorge Jul 29, 2025
172c305
chore: sync
AdriGeorge Jul 30, 2025
927317a
Merge pull request #50 from OceanProtocolEnterprise/feat/sync-node-30-07
AdriGeorge Jul 30, 2025
66dc099
chore: validate-algo-for-dataset-initialize
AdriGeorge Jul 31, 2025
13a37e5
fix: logs
AdriGeorge Jul 31, 2025
93dc15b
fix: logs
AdriGeorge Jul 31, 2025
4ca2533
Merge pull request #51 from OceanProtocolEnterprise/feature/validate-…
AdriGeorge Aug 4, 2025
eb8512c
chore: sync august
AdriGeorge Aug 29, 2025
7112765
fix: lint
AdriGeorge Aug 29, 2025
53775a8
fix: log
AdriGeorge Sep 1, 2025
3180c6e
fix: remove logs
AdriGeorge Sep 1, 2025
f1614ed
Merge pull request #53 from OceanProtocolEnterprise/feat/sync-august
AdriGeorge Sep 1, 2025
c0ca1c1
fix: logs
AdriGeorge Sep 19, 2025
79d3b7f
fix: add logs
AdriGeorge Sep 23, 2025
72cb15e
fix: remove logs
AdriGeorge Sep 23, 2025
7c3fcec
chore: algoCheck
AdriGeorge Sep 30, 2025
2776834
fix: logs
AdriGeorge Sep 30, 2025
8a4b589
fix: add logs
AdriGeorge Oct 1, 2025
8d86dca
fix: fix
AdriGeorge Oct 1, 2025
33965dc
fix: logs
AdriGeorge Oct 1, 2025
b9ec3ab
add configLog and check errors
alexcos20 Oct 1, 2025
17d361c
Merge pull request #57 from OceanProtocolEnterprise/bug/fix_c2d_provi…
AdriGeorge Oct 2, 2025
a706a49
fix: removed logs
AdriGeorge Oct 2, 2025
0f887d7
Merge pull request #56 from OceanProtocolEnterprise/feat/algoChecksum
AdriGeorge Oct 2, 2025
4151f73
chore: sync
AdriGeorge Oct 6, 2025
a9f5da5
fix: tests
AdriGeorge Oct 6, 2025
476071b
fix: tests
AdriGeorge Oct 6, 2025
369fad2
fix: tests
AdriGeorge Oct 6, 2025
2da15b4
Merge pull request #59 from OceanProtocolEnterprise/feta/sync-6-10
AdriGeorge Oct 7, 2025
68109b6
fix: add logs
AdriGeorge Oct 7, 2025
a085acc
fix: remove logs
AdriGeorge Oct 7, 2025
9441f09
fix: logs
AdriGeorge Oct 10, 2025
3276960
fix: logs
AdriGeorge Oct 10, 2025
20b8c77
fix: logs
AdriGeorge Oct 10, 2025
117fc35
fix: logs
AdriGeorge Oct 10, 2025
b80c21a
fix: logs
AdriGeorge Oct 10, 2025
ea01de0
fix: logs
AdriGeorge Oct 10, 2025
adb165c
fix: removed logs
AdriGeorge Oct 10, 2025
12cd997
fix: logs
AdriGeorge Oct 10, 2025
a050461
fix: logs
AdriGeorge Oct 27, 2025
619aee2
fix: logs
AdriGeorge Oct 27, 2025
2ae1e57
fix: logs
AdriGeorge Oct 27, 2025
6d5a403
fix: fix chain
AdriGeorge Oct 27, 2025
a66cb4e
chore: sync
AdriGeorge Oct 29, 2025
b288856
fix: fix time lock
AdriGeorge Oct 30, 2025
bea62c5
Merge pull request #62 from OceanProtocolEnterprise/feat/sync-29-10
AdriGeorge Oct 30, 2025
5238998
chore: sync 3 11
AdriGeorge Nov 3, 2025
6ee2513
Merge pull request #63 from OceanProtocolEnterprise/feat/sync-3-11
AdriGeorge Nov 3, 2025
4df9a1f
chore: fix validate algo
AdriGeorge Nov 4, 2025
8b48164
Merge pull request #64 from OceanProtocolEnterprise/feat/validate-alg…
AdriGeorge Nov 4, 2025
124d18f
fix: logs
AdriGeorge Nov 10, 2025
8d203b1
fix: logs
AdriGeorge Nov 10, 2025
12b7750
usr data in query
AdriGeorge Nov 10, 2025
92e0d75
fix: test
AdriGeorge Nov 10, 2025
f54647f
fix: fix
AdriGeorge Nov 10, 2025
908b2f6
fix: lint
AdriGeorge Nov 10, 2025
6591c59
Merge pull request #65 from OceanProtocolEnterprise/feat/userdata-dow…
AdriGeorge Nov 10, 2025
8baeefc
chore: user data on compute
AdriGeorge Nov 12, 2025
3b04f3a
fix: logs
AdriGeorge Nov 12, 2025
74dd212
fix: remove logs
AdriGeorge Nov 12, 2025
cf2358f
Merge pull request #66 from OceanProtocolEnterprise/feat/compute-user…
AdriGeorge Nov 12, 2025
a4fee4a
chore: sync 28-11-25
AdriGeorge Nov 28, 2025
19d9150
fix: logs
AdriGeorge Nov 28, 2025
7b664ab
fix: removed logs
AdriGeorge Nov 28, 2025
6193070
Merge pull request #67 from OceanProtocolEnterprise/feat/sync-28-11-25
AdriGeorge Nov 28, 2025
78f85ad
fix: escrow
AdriGeorge Dec 2, 2025
58c9546
fix: fix
AdriGeorge Dec 2, 2025
5a45a8b
fix: escrow
AdriGeorge Dec 2, 2025
81eb7ed
fix: add logs
AdriGeorge Dec 8, 2025
2e59698
fix: remove logs
AdriGeorge Dec 8, 2025
45c7c00
fix: fix
AdriGeorge Dec 8, 2025
d9f9c8e
chore: sync
AdriGeorge Dec 11, 2025
da43c53
fix: fix
AdriGeorge Dec 11, 2025
9e84141
fix: lint
AdriGeorge Dec 11, 2025
9818fb5
fix: revert test algo
AdriGeorge Dec 11, 2025
c5ff08c
fix: test
AdriGeorge Dec 11, 2025
494ae1e
fix: test
AdriGeorge Dec 11, 2025
cc8d878
fix: fix
AdriGeorge Dec 11, 2025
622f883
Merge pull request #68 from OceanProtocolEnterprise/feat/sync-dec
AdriGeorge Dec 11, 2025
6eb5ede
fix docker tests & build only x64
alexcos20 Dec 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
/dist/*
!/dist/dashboard
/dist
logs
c2d_storage
.env.local
.env
19 changes: 16 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,25 @@ export FEE_AMOUNT=
export ADDRESS_FILE=
export NODE_ENV=
export AUTHORIZED_DECRYPTERS=
export AUTHORIZED_DECRYPTERS_LIST=
export OPERATOR_SERVICE_URL=
export POLICY_SERVER_URL
export INTERFACES=
export ALLOWED_VALIDATORS=
export ALLOWED_VALIDATORS_LIST=
export AUTHORIZED_PUBLISHERS=
export AUTHORIZED_PUBLISHERS_LIST=
export INDEXER_INTERVAL=
export ALLOWED_ADMINS=
export DASHBOARD=true
export ALLOWED_ADMINS_LIST=
export CONTROL_PANEL=true
export RATE_DENY_LIST=
export MAX_REQ_PER_SECOND=
export MAX_REQ_PER_MINUTE=
export MAX_CHECKSUM_LENGTH=
export LOG_LEVEL=
export HTTP_API_PORT=
export VALIDATE_UNSIGNED_DDO=
export JWT_SECRET=

## p2p

Expand All @@ -55,4 +63,9 @@ export P2P_ENABLE_AUTONAT=
export P2P_ENABLE_CIRCUIT_RELAY_SERVER=
export P2P_ENABLE_CIRCUIT_RELAY_CLIENT=
export P2P_BOOTSTRAP_NODES=
export P2P_FILTER_ANNOUNCED_ADDRESSES=
export P2P_FILTER_ANNOUNCED_ADDRESSES=

## compute
export DOCKER_COMPUTE_ENVIRONMENTS=


2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @alexcos20
- @alexcos20
92 changes: 55 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.16.0'
node-version: 'v20.19.0'
- name: Cache node_modules
uses: actions/cache@v3
env:
Expand All @@ -42,7 +42,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: ['18.20.4', 'v20.16.0', 'v22.5.1']
node: ['18.20.4', 'v20.19.0', 'v22.5.1']

steps:
- uses: actions/checkout@v4
Expand All @@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.16.0'
node-version: 'v20.19.0'
- name: Cache node_modules
uses: actions/cache@v3
env:
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.16.0'
node-version: 'v20.19.0'
- name: Cache node_modules
uses: actions/cache@v3
env:
Expand All @@ -126,36 +126,27 @@ jobs:
- name: Run Barge
working-directory: ${{ github.workspace }}/barge
run: |
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &
bash -x start_ocean.sh --no-node --with-typesense 2>&1 > start_ocean.log &
- run: npm ci
- run: npm run build
- run: docker image ls
- name: Delete default runner images
run: |
docker image rm node:20
docker image rm node:20-alpine
docker image rm node:18
docker image rm node:18-alpine
docker image rm debian:10
docker image rm debian:11
docker image rm ubuntu:22.04
docker image rm ubuntu:20.04
docker image rm moby/buildkit:latest
rm -rf /usr/share/swift/
- name: Wait for contracts deployment and C2D cluster to be ready
- name: Wait for contracts deployment
working-directory: ${{ github.workspace }}/barge
run: |
for i in $(seq 1 250); do
sleep 10
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
sleep 5
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
done
- name: docker logs
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-typesense-1
if: ${{ failure() }}
- name: integration tests
run: npm run test:integration:cover
env:
OPERATOR_SERVICE_URL: '["http://172.15.0.13:31000"]'
# OPERATOR_SERVICE_URL: '["http://172.15.0.13:31000"]'
PRIVATE_KEY: ${{ secrets.NODE1_PRIVATE_KEY }}
NODE1_PRIVATE_KEY: ${{ secrets.NODE1_PRIVATE_KEY }}
NODE2_PRIVATE_KEY: ${{ secrets.NODE2_PRIVATE_KEY }}
Expand All @@ -170,7 +161,7 @@ jobs:
ASSET_PURGATORY_URL: 'https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-assets.json'
ACCOUNT_PURGATORY_URL: 'https://raw.githubusercontent.com/oceanprotocol/list-purgatory/main/list-accounts.json'
- name: docker logs
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-typesense-1
if: ${{ failure() }}
- uses: actions/upload-artifact@v4
with:
Expand All @@ -187,7 +178,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'v20.16.0'
node-version: 'v20.19.0'

- name: Cache node_modules
uses: actions/cache@v3
Expand All @@ -206,7 +197,6 @@ jobs:
with:
repository: 'oceanprotocol/barge'
path: 'barge'

- name: Login to Docker Hub
if: ${{ env.DOCKERHUB_PASSWORD && env.DOCKERHUB_USERNAME }}
run: |
Expand All @@ -219,34 +209,24 @@ jobs:
- name: Run Barge
working-directory: ${{ github.workspace }}/barge
run: |
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &

bash -x start_ocean.sh --no-node --with-typesense 2>&1 > start_ocean.log &
- run: npm ci
- run: npm run build
- run: docker image ls
- name: Delete default runner images
run: |
docker image rm node:20
docker image rm node:20-alpine
docker image rm node:18
docker image rm node:18-alpine
docker image rm debian:10
docker image rm debian:11
docker image rm ubuntu:22.04
docker image rm ubuntu:20.04
docker image rm moby/buildkit:latest
rm -rf /usr/share/swift/

- name: Wait for contracts deployment and C2D cluster to be ready
working-directory: ${{ github.workspace }}/barge
run: |
for i in $(seq 1 250); do
sleep 10
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
done

- name: docker logs
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
run: docker logs ocean-contracts-1 && docker logs ocean-typesense-1
if: ${{ failure() }}

- name: Checkout Ocean Node
Expand All @@ -261,7 +241,7 @@ jobs:
run: |
npm ci
npm run build
npm run start &
npm run start > ocean-node.log 2>&1 &
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
IPFS_GATEWAY: http://172.15.0.16:8080/
Expand All @@ -278,6 +258,9 @@ jobs:
P2P_ENABLE_AUTONAT: 'false'
ALLOWED_ADMINS: '["0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"]'
DB_TYPE: 'elasticsearch'
MAX_REQ_PER_MINUTE: 320
MAX_CONNECTIONS_PER_MINUTE: 320
DOCKER_COMPUTE_ENVIRONMENTS: '[{"socketPath":"/var/run/docker.sock","resources":[{"id":"disk","total":10}],"storageExpiry":604800,"maxJobDuration":3600,"fees":{"8996":[{"prices":[{"id":"cpu","price":1}]}]},"free":{"maxJobDuration":60,"maxJobs":3,"resources":[{"id":"cpu","max":1},{"id":"ram","max":1},{"id":"disk","max":1}]}}]'
- name: Check Ocean Node is running
run: |
for i in $(seq 1 90); do
Expand All @@ -294,7 +277,6 @@ jobs:
with:
repository: 'oceanprotocol/ocean-cli'
path: 'ocean-cli'
ref: 'main'
- name: Setup Ocean CLI
working-directory: ${{ github.workspace }}/ocean-cli
run: |
Expand All @@ -303,3 +285,39 @@ jobs:
- name: Run system tests
working-directory: ${{ github.workspace }}/ocean-cli
run: npm run test:system
env:
AVOID_LOOP_RUN: true
- name: Show Ocean Node logs on failure
if: failure()
working-directory: ${{ github.workspace }}/ocean-node
run: |
echo "=== Ocean Node Logs ==="
if [ -f ocean-node.log ]; then
cat ocean-node.log
else
echo "No ocean-node.log file found"
fi
echo "=== Docker Logs ==="
docker logs ocean-contracts-1 || echo "No ocean-contracts-1 container"
docker logs ocean-typesense-1 || echo "No ocean-typesense-1 container"
echo "=== System Processes ==="
ps aux | grep -E "(node|ocean)" || echo "No node/ocean processes found"

control_panel_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.19.0'
- name: Cache node_modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-control-panel-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-control-panel-${{ env.cache-name }}-
- run: npm ci
- name: Build control panel
run: npm run build:controlpanel
57 changes: 50 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
- linux/arm/v7
# - linux/arm64
# - linux/arm/v7
steps:
- name: Prepare
run: |
Expand All @@ -38,11 +39,11 @@ jobs:
uses: docker/setup-buildx-action@v3
with:
platforms: ${{ matrix.platform }}
#- name: Login to Docker Hub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}

- name: Set Docker metadata
id: ocean_node_meta
Expand Down Expand Up @@ -81,3 +82,45 @@ jobs:
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

merge:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
needs:
- build
steps:
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set Docker metadata
id: ocean_node_meta
uses: docker/metadata-action@v5
with:
images: |
ocnenterprise/ocean-node
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=ref,event=pr
# type=semver,pattern={{major}}.{{minor}}
# type=semver,pattern={{major}}
# type=sha
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf 'ocnenterprise/ocean-node@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ocnenterprise/ocean-node:${{ steps.ocean_node_meta.outputs.version }}
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Dahsboard
dashboard/.env
# Control panel
controlpanel/.env

# Docker compose
**/docker-compose.yml

# Logs
logs
Expand Down Expand Up @@ -94,7 +97,7 @@ out
.nuxt

/dist/*
!/dist/dashboard
!/dist/controlpanel

# Gatsby files
.cache/
Expand Down Expand Up @@ -155,3 +158,4 @@ html-report.html
# databases
*.sqlite
databases/*
c2d_storage/*
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.16.0
v20.19.0
Loading
Loading