All Projects → k8s-platform-hub → quickstart-docker-git

k8s-platform-hub / quickstart-docker-git

Licence: MIT license
Boostrap projects with a Dockerfile and a folder structure that works.

Programming Languages

PHP
23972 projects - #3 most used programming language
ruby
36898 projects - #4 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
C#
18002 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to quickstart-docker-git

Templates
YML templates
Stars: ✭ 100 (+112.77%)
Mutual labels:  ci, templates
rust-azure-pipelines
Collection of azure pipelines templates for rust
Stars: ✭ 43 (-8.51%)
Mutual labels:  ci, templates
ampjucks
Boilerplate and base project to create static websites with AMP, Nunjucks and Gulp
Stars: ✭ 18 (-61.7%)
Mutual labels:  templates
golangci-lint
Fast linters Runner for Go
Stars: ✭ 11,019 (+23344.68%)
Mutual labels:  ci
ionic-vue-mobile-template-01
Hybrid app template built with vue, ionic and capacitor.
Stars: ✭ 47 (+0%)
Mutual labels:  templates
vagrant-templates
Vagrantfiles for self-contained development/test environments.
Stars: ✭ 28 (-40.43%)
Mutual labels:  templates
docker-react-native-android
Docker image used to build React Native projects for Android
Stars: ✭ 28 (-40.43%)
Mutual labels:  ci
bookmarks
A PySide2 based file and asset manager for animation and CG productions.
Stars: ✭ 33 (-29.79%)
Mutual labels:  templates
Prism-Templates
Prism Templates using the DotNet New cli
Stars: ✭ 13 (-72.34%)
Mutual labels:  templates
ansible-tower-cicd
A framework for continuous integration and continuous delivery with Ansible Tower.
Stars: ✭ 37 (-21.28%)
Mutual labels:  ci
jenkinsapi
A Python API for accessing resources and configuring Hudson & Jenkins continuous-integration servers
Stars: ✭ 790 (+1580.85%)
Mutual labels:  ci
www.go.cd
Github pages repo
Stars: ✭ 39 (-17.02%)
Mutual labels:  ci
build-plugin-template
Template repository to create new Netlify Build plugins.
Stars: ✭ 26 (-44.68%)
Mutual labels:  ci
plugins
Codefresh plugins repository
Stars: ✭ 16 (-65.96%)
Mutual labels:  ci
prosebot
🤖🔊 Probot App to help you write better on GitHub.
Stars: ✭ 46 (-2.13%)
Mutual labels:  ci
template-python
Template repository for Python projects
Stars: ✭ 20 (-57.45%)
Mutual labels:  templates
in-app-payments-android-quickstart
In-App Payments Quick Start Sample Android App
Stars: ✭ 39 (-17.02%)
Mutual labels:  quickstart
learning-lighthouse-ci
Learning Google's Lighthouse CI from scratch with a minimal template web app (quickstart)
Stars: ✭ 46 (-2.13%)
Mutual labels:  ci
egg-ci
Auto gen ci config file
Stars: ✭ 15 (-68.09%)
Mutual labels:  ci
saint-build
monitor your jenkins operations, jobs in async and functional elegance
Stars: ✭ 13 (-72.34%)
Mutual labels:  ci

Deprecated

This repository is deprecated and the majority of it has been moved to hasura/microservie-templates.


This instructions are valid only for Hasura Platform versions < 0.15.0

If you are on version > 0.15.0, checkout hasura/microservie-templates instead

quickstart-docker-git

Hasura is a platform for building and deploying application backends. The platform is a Kubernetes based PaaS (Platform-as-a-Service to deploy backends) and a PostgreSQL based BaaS (Backend-as-a-Service to rapidly build backends).

To help you quickly bootstrap your app backend in your favourite language/framework or with a product of your choice in a Hasura project, this repository maintains a collection of starter kits for popular options.

Some examples:

What is not included: This is just a collection of starter kits. The idea is to modify the kits as you need to get to a basic setup that works. Hence, this doesn't include things like setting up docker-compose files or more advanced framework specific configurations yet.

Getting Started in 5 easy steps

To use any of the starter kits, follow these instructions:

  1. Create a project: activate your free-trial project here - https://dashboard.hasura.io (requires sign up or log in).

  2. Add your SSH key to the project console: instructions on creating and adding your SSH key.

  3. Create a custom git push microservice: see reference documentation.

  4. Clone and prep this repo to use your favourite language/framework:

    • Clone this repo:

      git clone https://github.com/hasura/quickstart-docker-git

git clone

  • Copy the relevant starter kit: e.g. to use the nodejs + express starter kit,

    cp -r quickstart-docker-git/nodejs-express my-node-project

  • Initialize a git repo inside this folder:

    cd my-node-project && git init

  1. git push the starter kit to deploy:

    • stage the files in the starter kit and commit them.

      git add .

      git commit -m "hasura quickstart"

    • copy the git remote location from the console (the service's manage page)

git remote location

  • Add the service's git remote

    git remote add hasura ssh://hasura@<service-name>.<project-name>.hasura-app.io/~/git/<service-name>/

    Note: replace <service-name>, <project-name> with the name/sub-domain of the service created in step-3 and name of the project created in step-1 respectively. Check the image below for reference

modify repo

  • push your changes to the remote

    git push hasura master

That's it! Your starter kit in now live 🎈 🎉 🍻 🎈! Check it out at the service's external endpoint (from step-3).

external endpoint

Next Steps

If you followed the 5 steps in the previous section, you would have deployed a web application to the cloud from scratch without breaking a sweat. Yay! To understand the Hasura platform in more detail, we highly recommend doing at least one of the following:

  • Check out the mini-interactive tutorials built right into the project console.

Console interactive tutorials

Additional Information

  • BaaS Samples: Sample code is being added to each starter kit for demonstrating Hasura BaaS features like Data, Auth, Notify, and File services. Meanwhile, feel free to get in touch with us if you need any help.

  • Docker: You can use docker build and docker run to build your own image and get a running container. Basic configuration options are specified in docker-config.yaml. Custom or 3rd party Docker images can be deployed on Hasura with the same ease.

  • Repo structure: Every starter kit has the following structure:

    /
    --Dockerfile
    --docker-config.yaml
    --README.md
    --app/
    

    The README inside each starter kit contains further instructions.

  • Automated Docker hub builds: All starter kits in this collection can readily be integrated to setup an automated docker image build system.

    Read here for more details: https://docs.docker.com/docker-hub/github/

Contribution Needed!

Please fork, file comments/bugs and submit your PRs! We've created a list of issues where active help is required: help-wanted.

Specifically,

  1. Add support for more frameworks
  2. Optimise Dockerfiles for faster builds, or for production (esp. for compiled languages)

Some important things to keep in mind when contributing:

  1. Expose only one port, and one data volume to help keep things simple
  2. Annotate the Dockerfile with comments where you expect users to modify
  3. Try to document the following major use cases when writing your README: docker build, git push based automated docker build, docker run
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].