|
| 1 | +# Gasper |
| 2 | + |
| 3 | +> Your Cloud in a Binary |
| 4 | +
|
| 5 | +<img align="right" width="350px" height="400px" src="./docs/content/assets/logo/gasperlogo.svg"> |
| 6 | + |
| 7 | +[](https://travis-ci.org/sdslabs/gasper) |
| 8 | +[](https://gasper-docs.netlify.com/) |
| 9 | +[](https://goreportcard.com/report/github.com/sdslabs/gasper) |
| 10 | +[](https://github.com/sdslabs/gasper/blob/develop/LICENSE.md) |
| 11 | + |
| 12 | +Gasper is an intelligent Platform as a Service (PaaS) used for deploying and managing applications and databases in any cloud topology. |
| 13 | + |
| 14 | +## Contents |
| 15 | + |
| 16 | +* [Overview](#overview) |
| 17 | +* [Features](#features) |
| 18 | +* [Supported Languages](#supported-languages) |
| 19 | +* [Supported Databases](#supported-databases) |
| 20 | +* [Documentation](#documentation) |
| 21 | +* [Dependencies](#dependencies) |
| 22 | +* [Download](#download) |
| 23 | +* [Development](#development) |
| 24 | +* [Contributing](#contributing) |
| 25 | +* [Meet the A-Team](#meet-the-a-team) |
| 26 | +* [Contact](#contact) |
| 27 | + |
| 28 | +## Overview |
| 29 | + |
| 30 | +### The Dilemma |
| 31 | +Imagine you have a couple of *Bare Metal Servers* and/or *Virtual Machines* (collectively called nodes) at your disposal. Now you want to deploy a couple of applications/services to these nodes in such a manner so as to not put too much load on a single node. |
| 32 | + |
| 33 | +### Naive Approach |
| 34 | +Your 1st option is to manually decide which application goes to which node, then use ssh/telnet to manually |
| 35 | +setup all of your applications in each node one by one. |
| 36 | + |
| 37 | +### A Wise Choice |
| 38 | +But you are smarter than that, hence you go for the 2nd option which is [Kubernetes](https://kubernetes.io/). You setup Kubernetes in all of your |
| 39 | +nodes which forms a cluster, and now you can deploy your applications without worrying about load distribution. But |
| 40 | +Kubernetes requires a lot of configuration for each application(deployments, services, stateful-sets etc) not to mention |
| 41 | +pipelines for creating the corresponding docker image. |
| 42 | + |
| 43 | +### The Ultimatum |
| 44 | +Here comes (🥁drumroll please 🥁) **Gasper**, your 3rd option!<br> |
| 45 | +Gasper builds and runs applications in docker containers **directly from source code**. You no longer need to create application specific docker images and build pipelines, let Gasper do the heavylifting for you 😊. |
| 46 | +Gasper requires minimal parameters for deploying an application, so minimal that you can count them on fingers in one hand 🤚. Same goes for Gasper provisioned databases. Gone are the days of hard labour (writing configurations). |
| 47 | + |
| 48 | +## Features |
| 49 | + |
| 50 | +Fear not because the reduction in complexity doesn't imply the reduction in features. You can rest assured because Gasper has:- |
| 51 | + |
| 52 | +* Worker services for creating/managing databases and applications |
| 53 | +* Master service for:- |
| 54 | + * Checking the status of worker services |
| 55 | + * Intelligently distributing applications/databases among them |
| 56 | + * Transferring applications from one worker node to another in case of node failure |
| 57 | + * Removing dead worker nodes from the cloud |
| 58 | +* REST API interface for the entire ecosystem |
| 59 | +* Reverse-proxy service with HTTPS, HTTP/2, Websocket and gRPC support for accessing deployed applications |
| 60 | +* DNS service which automatically creates DNS entries for all applications which in turn are resolved inside containers |
| 61 | +* SSH service for providing ssh access directly to an application's docker container |
| 62 | +* Virtual terminal for interacting with your application's docker container from your browser |
| 63 | +* Dynamic addition/removal of nodes and services without configuration changes or restarts |
| 64 | +* Compatibility with Linux, Windows, MacOS, FreeBSD and OpenBSD |
| 65 | +* All of the above packaged with ❤️ in a **single binary** |
| 66 | + |
| 67 | +## Supported Languages |
| 68 | + |
| 69 | +Gasper currently supports applications of the following types:- |
| 70 | + |
| 71 | +* Static web pages |
| 72 | +* PHP |
| 73 | +* Python 2 |
| 74 | +* Python 3 |
| 75 | +* Node.js |
| 76 | +* Golang |
| 77 | +* Ruby |
| 78 | +* Rust |
| 79 | + |
| 80 | +It ain't much but it's honest work 🥳 |
| 81 | + |
| 82 | +## Supported Databases |
| 83 | + |
| 84 | +The following databases are supported by Gasper:- |
| 85 | + |
| 86 | +* MySQL |
| 87 | +* MongoDB |
| 88 | +* PostgreSQL |
| 89 | +* Redis |
| 90 | + |
| 91 | +It ain't.... (complete the rest yourself) |
| 92 | + |
| 93 | +## Documentation |
| 94 | + |
| 95 | +You can find the complete documentation of Gasper at [https://gasper-docs.netlify.app/](https://gasper-docs.netlify.app/) |
| 96 | + |
| 97 | +## Dependencies |
| 98 | + |
| 99 | +The only thing you need for running Gasper is [Docker](https://www.docker.com/). Here are the installation guides for:- |
| 100 | + |
| 101 | +* [Linux](https://runnable.com/docker/install-docker-on-linux) |
| 102 | +* [MacOS](https://docs.docker.com/docker-for-mac/install/) |
| 103 | +* [Windows](https://docs.docker.com/docker-for-windows/install/) |
| 104 | + |
| 105 | +If you perhaps need a higher degree of control over your entire cloud then you may setup [MongoDB](https://www.mongodb.com/download-center/community) and [Redis](https://redis.io/download) separately within your infrastructure and make the necessary changes in the `mongo` and `redis` sections of `config.toml`. |
| 106 | + |
| 107 | +## Download |
| 108 | + |
| 109 | +Assuming you have the [dependencies](#dependencies) installed, head over to Gasper's [releases](https://github.com/sdslabs/gasper/releases) page and grab the latest binary according to your operating system and system architecture |
| 110 | + |
| 111 | +Run the downloaded binary with the [sample configuration file](./config.sample.toml) |
| 112 | + |
| 113 | +```bash |
| 114 | +$ ./gasper --conf ./config.toml |
| 115 | +``` |
| 116 | + |
| 117 | +## Development |
| 118 | + |
| 119 | +You need to have [Golang 1.13.x](https://golang.org/dl/) or higher installed along with the mentioned [dependencies](#dependencies) |
| 120 | + |
| 121 | +Open your favourite terminal and perform the following tasks:- |
| 122 | + |
| 123 | +1. Cross-check your golang version. |
| 124 | + |
| 125 | + ```bash |
| 126 | + $ go version |
| 127 | + go version go1.13.5 darwin/amd64 |
| 128 | + ``` |
| 129 | + |
| 130 | +2. Clone this repository. |
| 131 | + |
| 132 | + ```bash |
| 133 | + $ git clone https://github.com/sdslabs/gasper |
| 134 | + ``` |
| 135 | + |
| 136 | +3. Go inside the cloned directory and list available *makefile* commands. |
| 137 | + |
| 138 | + ```bash |
| 139 | + $ cd gasper && make help |
| 140 | +
|
| 141 | + Gasper: Your cloud in a binary |
| 142 | +
|
| 143 | + install Install missing dependencies |
| 144 | + build Build the project binary |
| 145 | + tools Install development tools |
| 146 | + release Build release binaries |
| 147 | + start Start in development mode with hot-reload enabled |
| 148 | + clean Clean build files |
| 149 | + fmt Format entire codebase |
| 150 | + vet Vet entire codebase |
| 151 | + lint Check codebase for style mistakes |
| 152 | + test Run tests |
| 153 | + help Display this help |
| 154 | + ``` |
| 155 | + |
| 156 | +4. Setup project configuration and make changes if required. The configuration file is well-documented so you |
| 157 | +won't have a hard time looking around. |
| 158 | +
|
| 159 | + ```bash |
| 160 | + $ cp config.sample.toml config.toml |
| 161 | + ``` |
| 162 | +
|
| 163 | +5. Start the development server. |
| 164 | +
|
| 165 | + ```bash |
| 166 | + $ make start |
| 167 | + ``` |
| 168 | +
|
| 169 | +## Contributing |
| 170 | +
|
| 171 | +If you'd like to contribute to this project, refer to the [contributing documentation](./CONTRIBUTING.md). |
| 172 | + |
| 173 | +## Meet the A-Team |
| 174 | + |
| 175 | +* Anish Mukherjee [@alphadose](https://github.com/alphadose) |
| 176 | +* Vaibhav [@vrongmeal](https://github.com/vrongmeal) |
| 177 | +* Supratik Das [@supra08](https://github.com/supra08) |
| 178 | +* Karanpreet Singh [@karan0299](https://github.com/karan0299) |
| 179 | +* Mohit Sharma [@Scar26](https://github.com/Scar26) |
| 180 | + |
| 181 | +Gasper Logo: Leshna Balara [@leshnabalara](https://github.com/leshnabalara) |
| 182 | + |
| 183 | +You can find the entire list of contributors [here](https://github.com/sdslabs/gasper/graphs/contributors) |
| 184 | + |
| 185 | +Created with 💖 by [SDSLabs](https://github.com/sdslabs) |
| 186 | + |
| 187 | +## Contact |
| 188 | + |
| 189 | +If you have a query regarding the product or just want to say hello then feel free to visit |
| 190 | +[chat.sdslabs.co](http://chat.sdslabs.co/) or drop a mail at [contact@sdslabs.co.in](mailto:contact@sdslabs.co.in) |
0 commit comments