PRAGMA S3
Roll to build and install Scality Cloudserver and its dependencies.
Building and running S3 requires node.js v.6.x and npm v3. Compiling S3 modules with npm requires python27 and gcc v 4.7+ which is provided with devtoolset-3
devoolset-3 RPMs are downloaded from people.centos.org repository
NOTE: RedHat RPMs for nodejs and nodesource repo RPM are available from RPM nodesource repository that can be used for direct downloads of specific versions:
Link from the Scality Cloudserver points to the nodejs github instructions for downloading and building nodejs. These instructions are now used in this roll src/nodejs/
Summary of instructions
-
download nodejs setup script v.6 (as current S3 requires).
curl -sL https://rpm.nodesource.com/setup_6.x > setup_6.sh
-
Edit the downloaded script stash in nodejs/patch-files. Edited version does:
- download nodejs repository
- setup yum to use it locally (do not install for the system)
- download nodejs RPM
All dependencies, build or fetched per above instructions are saved in Google drive
and are downloaded in bootstrap.sh
when building the roll.
- Download Command line tool for managing Amazon S3 and CloudFront services (s3cmd)
See http://s3tools.org/download
wget https://sourceforge.net/projects/s3tools/files/s3cmd/2.0.0/s3cmd-2.0.0.tar.gz
Scality Cloudserver is downloaded and saved in Google drive as a S3.tar.gz. The file is fetched during bootstrap step. Need to pin a release in S3 to use.
Checkout roll distribution from git repo
# git clone https://github.com/pragmagrid/PS3
# cd PS3/
To build a roll, first execute a script that builds nodejs and installs prerequisites.
# ./bootstrap.sh
Then proceeed with building the roll:
The resulting ISO file PS3-*.iso can be added to the frontend.
TBA
TBS