Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Zenko CloudServer, an open-source Node.js implementation of the Amazon S3 protocol on the front-end and backend storage capabilities to multiple clouds, including Azure and Google.

License

NotificationsYou must be signed in to change notification settings

scality/cloudserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7,253 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zenko CloudServer logo

Docker PullsDocker Pulls

Build Status

Public Build StatusPrivate Build Status

Overview

CloudServer (formerly S3 Server) is an open-source Amazon S3-compatibleobject storage server that is part ofZenko,Scality’s Open Source Multi-Cloud Data Controller.

CloudServer provides a single AWS S3 API interface to access multiplebackend data storage both on-premise or public in the cloud.

CloudServer is useful for Developers, either to run as part of acontinous integration test environment to emulate the AWS S3 service locallyor as an abstraction layer to develop object storage enabledapplication on the go.

Docker

Run your Zenko CloudServer with Docker

Contributing

In order to contribute, please follow theContributing Guidelines.

Installation

Dependencies

Building and running the Zenko CloudServer requires node.js 10.x and yarn v1.17.x. Up-to-date versions can be found atNodesource.

Clone source code

git clone https://github.com/scality/cloudserver.git

Install js dependencies

Go to the ./cloudserver folder,

yarn install --frozen-lockfile

If you get an error regarding installation of the diskUsage module,please install g++.

If you get an error regarding level-down bindings, try clearing your yarn cache:

yarn cache clean

Install typescript

To use CloudServer, subaclient is needed. This package need typescript to be compiled.

npm install -g typescript

Run it with a file backend

yarn start

This starts a Zenko CloudServer on port 8000. Two additional ports 9990 and9991 are also open locally for internal transfer of metadata and data,respectively.

The default access key is accessKey1 witha secret key of verySecretKey1.

By default the metadata files will be saved in thelocalMetadata directory and the data files will be savedin the localData directory within the ./S3 directory on yourmachine. These directories have been pre-created within therepository. If you would like to save the data or metadata indifferent locations of your choice, you must specify them with absolute paths.So, when starting the server:

mkdir -m 700$(pwd)/myFavoriteDataPathmkdir -m 700$(pwd)/myFavoriteMetadataPathexport S3DATAPATH="$(pwd)/myFavoriteDataPath"export S3METADATAPATH="$(pwd)/myFavoriteMetadataPath"yarn start

Run it with a memory backend

If you want to run the Zenko CloudServer with an in-memory backend,you can do so by setting theS3DATA environment variable tomemory.This is useful for testing purposes or when you don't need persistent storage.

export S3DATA=memyarn start

Run it with multiple data backends

export S3DATA='multiple'yarn start

This starts a Zenko CloudServer on port 8000.The default access key is accessKey1 witha secret key of verySecretKey1.

With multiple backends, you have the ability tochoose where each object will be saved by settingthe following header with a locationConstraint ona PUT request:

'x-amz-meta-scal-location-constraint':'myLocationConstraint'

If no header is sent with a PUT object request, thelocation constraint of the bucket will determinewhere the data is saved. If the bucket has no locationconstraint, the endpoint of the PUT request will beused to determine location.

See the Configuration section in our documentationhereto learn how to set location constraints.

Run it with an in-memory backend

yarn run mem_backend

This starts a Zenko CloudServer on port 8000.The default access key is accessKey1 witha secret key of verySecretKey1.

Run it with Vault user management

Note: Vault is proprietary and must be accessed separately.

export S3VAULT=vaultyarn start

This starts a Zenko CloudServer using Vault for user management.

About

Zenko CloudServer, an open-source Node.js implementation of the Amazon S3 protocol on the front-end and backend storage capabilities to multiple clouds, including Azure and Google.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

[8]ページ先頭

©2009-2026 Movatter.jp