Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ application on the go.
## Contributing

In order to contribute, please follow the
[Contributing Guidelines](
https://github.com/scality/Guidelines/blob/master/CONTRIBUTING.md).
[Contributing Guidelines](https://github.com/scality/Guidelines/blob/master/CONTRIBUTING.md).

## Installation

Expand All @@ -49,12 +48,12 @@ Building and running the Zenko CloudServer requires node.js 10.x and yarn v1.17.
### Clone source code

```shell
git clone https://github.com/scality/S3.git
git clone https://github.com/scality/cloudserver.git
```

### Install js dependencies

Go to the ./S3 folder,
Go to the ./cloudserver folder,

```shell
yarn install --frozen-lockfile
Expand All @@ -69,6 +68,14 @@ 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.

```shell
npm install -g typescript
```

## Run it with a file backend

```shell
Expand All @@ -85,8 +92,8 @@ a secret key of verySecretKey1.
By default the metadata files will be saved in the
localMetadata directory and the data files will be saved
in the localData directory within the ./S3 directory on your
machine. These directories have been pre-created within the
repository. If you would like to save the data or metadata in
machine. These directories have been pre-created within the
repository. If you would like to save the data or metadata in
different locations of your choice, you must specify them with absolute paths.
So, when starting the server:

Expand All @@ -98,6 +105,17 @@ 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 the `S3DATA` environment variable to `memory`.
This is useful for testing purposes or when you don't need persistent storage.

```shell
export S3DATA=mem
yarn start
```

## Run it with multiple data backends

```shell
Expand Down
Loading