Skip to content

TBD: Add interactive persistent storage setup to ocean-node-quickstart.sh #1359

@bogdanfazakas

Description

@bogdanfazakas

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:

  1. Asks if the user wants to enable persistent storage:
    Do you want to enable persistent storage on your Ocean Node? [ y/n ]

  2. If yes, asks for the storage type (localfs or s3):
    Select storage type:
    [1] Local filesystem (default)
    [2] S3-compatible object storage

  3. 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"}}'
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions