The quickstart script (scripts/ocean-node-quickstart.sh) already walks operators through ports, C2D environments, TLS, and GPU detection interactively, but it never asks about persistent storage. The feature is fully implemented in the node and configurable via the PERSISTENT_STORAGE env var, but operators setting up with the quickstart have no way to enable it without manually editing the generated docker-compose.yml afterwards.
Proposed change
After the existing C2D and TLS prompts, add an interactive section that:
-
Asks if the user wants to enable persistent storage:
Do you want to enable persistent storage on your Ocean Node? [ y/n ]
-
If yes, asks for the storage type (localfs or s3):
Select storage type:
[1] Local filesystem (default)
[2] S3-compatible object storage
-
For localfs — suggest a default path and let the user override:
Enter the folder path for persistent storage (press Enter to accept default [./ocean-persistent-storage]):
- Mount the chosen path as a Docker volume in the generated compose file
- Set
PERSISTENT_STORAGE: '{"type":"localfs","options":{"folder":"/ocean-persistent-storage"}}'
- For
s3 — prompt for the required fields:
Enter S3 endpoint:
Enter S3 object key (bucket name / prefix):
Enter S3 access key ID:
Enter S3 secret access key:
- Set
PERSISTENT_STORAGE JSON with type: "s3" and all four fields
The quickstart script (
scripts/ocean-node-quickstart.sh) already walks operators through ports, C2D environments, TLS, and GPU detection interactively, but it never asks about persistent storage. The feature is fully implemented in the node and configurable via thePERSISTENT_STORAGEenv var, but operators setting up with the quickstart have no way to enable it without manually editing the generateddocker-compose.ymlafterwards.Proposed change
After the existing C2D and TLS prompts, add an interactive section that:
Asks if the user wants to enable persistent storage:
Do you want to enable persistent storage on your Ocean Node? [ y/n ]
If yes, asks for the storage type (
localfsors3):Select storage type:
[1] Local filesystem (default)
[2] S3-compatible object storage
For
localfs— suggest a default path and let the user override:Enter the folder path for persistent storage (press Enter to accept default [./ocean-persistent-storage]):
PERSISTENT_STORAGE: '{"type":"localfs","options":{"folder":"/ocean-persistent-storage"}}'s3— prompt for the required fields:Enter S3 endpoint:
Enter S3 object key (bucket name / prefix):
Enter S3 access key ID:
Enter S3 secret access key:
PERSISTENT_STORAGEJSON withtype: "s3"and all four fields