Skip to content

Commit 4a9cf1f

Browse files
committed
node persistent storage
1 parent 5960b12 commit 4a9cf1f

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

compose-files/node.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ services:
3636
MAX_REQ_PER_MINUTE: 320
3737
MAX_CONNECTIONS_PER_MINUTE: 320
3838
ADDRESS_FILE: "/ocean-contracts/artifacts/address.json"
39-
DOCKER_COMPUTE_ENVIRONMENTS: "[{\"socketPath\":\"/var/run/docker.sock\",\"resources\":[{\"id\":\"disk\",\"total\":1}],\"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}]}}]"
39+
DOCKER_COMPUTE_ENVIRONMENTS: "[{\"socketPath\":\"/var/run/docker.sock\",\"environments\":[{\"resources\":[{\"id\":\"disk\",\"total\":1}],\"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}]}}]}]"
40+
PERSISTENT_STORAGE: '{"enabled":true,"type":"localfs","options":{"folder":"/persistent-storage"}}'
4041
volumes:
4142
- ${OCEAN_ARTIFACTS_FOLDER}:/ocean-contracts/artifacts/
4243
- /var/run/docker.sock:/var/run/docker.sock
44+
- ${NODE_PERSISTENT_STORAGE_FOLDER}:/persistent-storage

start_ocean.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ COMPOSE_DIR="${DIR}/compose-files"
3030
export TYPESENSE_VERSION=${TYPESENSE_VERSION:-0.25.1}
3131
export AQUARIUS_VERSION=${AQUARIUS_VERSION:-v5.1.5}
3232
export ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION:-8.5.1}
33-
export NODE_VERSION=${NODE_VERSION:-main}
33+
export NODE_VERSION=${NODE_VERSION:-pr-1329}
3434
export CONTRACTS_VERSION=${CONTRACTS_VERSION:-v2.4.1}
3535

3636

@@ -84,6 +84,9 @@ chmod 777 ${OCEAN_FTP_FOLDER}
8484
# FTP local user (no anonymous); set FTP_USER/FTP_PASS to override
8585
export FTP_USER="${FTP_USER:-ftpuser}"
8686
export FTP_PASS="${FTP_PASS:-ftppass}"
87+
export NODE_PERSISTENT_STORAGE_FOLDER="${OCEAN_HOME}/persistent-storage/"
88+
mkdir -p ${NODE_PERSISTENT_STORAGE_FOLDER}
89+
chmod 777 ${NODE_PERSISTENT_STORAGE_FOLDER}
8790
# Specify which ethereum client to run or connect to: development
8891
export CONTRACTS_NETWORK_NAME="development"
8992

0 commit comments

Comments
 (0)