Skip to content

Repository files navigation

Carbonio Storages CE

License AGPL 3 Project Carbonio

External files storage service for Carbonio CE. This Node.js application provides a REST API for storing, retrieving, and managing files, with Swagger documentation available at the root endpoint.

Quick Start

Prerequisites

  • Docker or Podman installed
  • Make

Building Packages

# Build packages for Ubuntu 22.04
make build TARGET=ubuntu-jammy

# Build packages for Rocky Linux 9
make build TARGET=rocky-9

# Build packages for Ubuntu 24.04
make build TARGET=ubuntu-noble

Supported Targets

  • ubuntu-jammy - Ubuntu 22.04 LTS
  • ubuntu-noble - Ubuntu 24.04 LTS
  • rocky-8 - Rocky Linux 8
  • rocky-9 - Rocky Linux 9

Build Configuration

You can customize the build by setting environment variables:

# Use a specific container runtime
make build TARGET=ubuntu-jammy CONTAINER_RUNTIME=docker

# Use a different output directory
make build TARGET=rocky-9 OUTPUT_DIR=./my-packages

Local Development

Prerequisites

Node 22 is required to build the application. Alternatively, nvm may be used:

nvm install

pnpm is used as the package manager (managed via corepack):

corepack enable
corepack prepare pnpm@latest --activate

Build and Run from Source

pnpm install --frozen-lockfile
pnpm run build
pnpm run start

The Storages CE server will be available at http://localhost:5794/.

Testing

pnpm run test
pnpm run test:watch
pnpm run test:coverage

Container Image

A container image is available on Docker Hub.

To run the application:

docker run -it --rm -d -p 5794:10000 -e STORAGES_BIND_ADDRESS="0.0.0.0" --name storages-ce zextras/storages-ce

Server Configuration

The following environment variables can be provided when starting the Storages CE server:

Variable Description Default
STORAGES_CONF_PATH Path to the configuration file
STORAGES_BIND_ADDRESS Address on which Storages CE will listen for API calls 127.0.0.1
STORAGES_PATH Folder inside which all files are stored
STORAGES_PORT Port the server listens on for HTTP connections
STORAGES_BASE_URL Suffix path at which the server is served
STORAGES_LOGGING_DIRNAME Folder for log files produced by Storages CE
STORAGES_HTTPS_KEY_PATH Path to HTTPS private key
STORAGES_HTTPS_CERT_PATH Path to HTTPS certificate

The full URL is constructed as: (http|https)://0.0.0.0:${STORAGES_PORT}/${STORAGES_BASE_URL}

API Documentation

Once the application is started, Swagger documentation is available at: http://localhost:5794/

Installation

This package is distributed as part of the Carbonio platform. To install:

Ubuntu (Jammy/Noble)

apt-get install carbonio-storages-ce

Rocky Linux (8/9)

yum install carbonio-storages-ce

Contributing

See CONTRIBUTING.md for information on how to contribute to this project.

License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE.md file for details.

Releases

Packages

Used by

Contributors

Languages