Coder Social home page Coder Social logo

openshift-baasbox-cartridge's Introduction

BaasBox in Openshift

This code allows you to run a BaasBox instance in Openshift. It's not actually a cartridge but a code to get when creating your DIY application.

Next features have been implemented:

  • Java installation
  • Baasbox installation
  • Openshift start/stop scripts
  • Change default admin password
  • Users creation
  • Collections creation
  • Documents creation
  • Plugins upload

Installation

Create a DIY application getting this code as source:

$ rhc app create baasbox diy-0.1 --from-code https://github.com/soukron/openshift-baasbox-cartridge.git

Configuration

Change next files to fit your needs:

  • misc/database-init.sh:
    • _password2: it will be admin's password after initialization
    • _collections: array with names to be created as collections
    • _users: array with user accounts to be created
    • _genres and _movies: sample data to show documents creation with links between them and permissions
  • misc/plugins/:
    • every single file in this directory will be uploaded as a plugin and properly activated

Other

Database will be initialized when BaasBox is installed by default.

If you want to dump your database you can run next command from your console:

$ rhc ssh baasbox 'touch app-root/data/baasbox/.dbinit

Then restart your application to re-initialize it:

$ rhc app restart baasbox

Or push new changes to repository:

$ git push

Note that this process will dump all your data! Be careful!

License

GPL

openshift-baasbox-cartridge's People

Contributors

mzelzoghbi avatar soukron avatar

Watchers

 avatar  avatar

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.