-
Notifications
You must be signed in to change notification settings - Fork 252
Cloudserver custom build instructions
Rahul Padigela edited this page Sep 18, 2019
·
6 revisions
Every S3 Connector(S3C) release has a corresponding tag in Git for Cloudserver. So a release, for example, S3C 7.4.4.7 has a tag 7.4.4.7 in Cloudserver’s git repository. The following instructions can be used to have a custom build of Cloudserver, this build writes metadata and data to the file system for persistence.
This requires docker installed on the machine. Docker can be installed by following the instructions at https://www.docker.com/products/docker-desktop
git clone [email protected]:scality/cloudserver.git && cd cloudserver
git checkout tags/<release number> (for example for release 7.4.4.7 use git checkout tags/7.4.4.7)
echo node_modules >> .dockerignore
docker build ./ -t cloudserver:7.4.4.7
docker run -d --name cloudserver -p 8000:8000 cloudserver:7.4.4.7
This requires Node.js version 6.x installed on the host machine.
git clone [email protected]:scality/cloudserver.git && cd cloudserver
git checkout tags/<release number> (for example for release 7.4.4.7 use git checkout tags/7.4.4.7)
npm install
npm start
This will have Cloudserver running on port 8000 on the loopback interface, so http://localhost:8000 can be used as an endpoint. The default credentials are
AWS_ACCESS_KEY_ID: accessKey1
AWS_SECRET_ACCESS_KEY: verySecretKey1