Code Monkey home page Code Monkey logo

pcf-fs-crb's Introduction

PCF File System CRB

Build Twitter URL

Overview

FS CRB abstracts various types of persistent stores that keeps point-in-time copies of application data and provides the key capability of storing and retrieving application data. The CRB service provides capabilities such as:

  • Store application data on a storage system
  • Store and manage copy metadata
  • Provide a catalog of all application data copies and their metadata
  • Allow copy data to be retrieved based on specified copy metadata
  • Data transfer using SFTP

API

The functionality above is described using OpenAPI specification by swagger.yaml through Swagger framework.

Functional Tests

functionaltests contains the functional tests that validate the functionality of the CRB using REST API.

How to build

The CRB binary is built using a Docker container which has the required build tools.

  • git clone https://github.com/ocopea/pcf-fs-crb.git crb.

    Note: You must name the destination folder crb as go uses folder names as package names.

  • cd crb

  • Build the docker image. Run

    docker build -t ocopea-crb-build-tool .
    
  • Build the binary. Run

    docker run -v <path-to-crb-directory>:/go/src/crb --name ocopea-crb-build-tool ocopea-crb-build-tool
    

    For example,

    docker run -v /go/src/crb:/go/src/crb --name ocopea-crb-build-tool ocopea-crb-build-tool
    

    The CRB binary crb-server will be saved at the cmd/crb-server/ folder.

How to run

  • Login to PCF.

  • Create the crb-mysql service which is needed by the CRB app to store copy metadata. Run

    cf create-service p-mysql <service plan> crb-mysql
    
  • Deploy the CRB app. Run

    cf push -f <path-to-manifest>
    

    For example,

    cf push -f /go/src/crb/manifest.yml
    
  • After the app is deployed, make sure the crb-mysql service is bound to the app successfully. Run

    cf s
    

    Here is the sample output:

  Getting services in org pcfdev-org / space pcfdev-space as admin...
  OK

  name        service   plan   bound apps   last operation
  crb-mysql   p-mysql   1gb    crb-server   create succeeded

pcf-fs-crb's People

Contributors

akarmia-zz avatar rpellows avatar vjtirumalai avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pcf-fs-crb's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.