Giter Site home page Giter Site logo

bundle-kafka-template's Introduction

PadoGrid PadoGrid | Catalogs | Manual | FAQ | Releases | Templates | Pods | Kubernetes | Docker | Apps | Quick Start


Host OS VM Docker Kubernetes

Kafka Bundle Template

This bundle serves as a template for creating a new Kafka onlne bundle.

Installing Bundle

install_bundle -download bundle-kafka-template

Use Case

If you are creating a new Kafka online bundle, then you can use this template to create your bundle repo. It includes all the required files with marked annotations for you to quickly start developing a new online bundle. Please follow the steps shown below.

1. Create Repo

Select Use this template button in the upper right coner to create your repo. Make sure to follow the bundle naming conventions described in the following link.

2. Checkout Repo in Workspace

# PadoGrid 0.9.7+
install_bundle -checkout <bundle-repo-name>

# PadoGrid 0.9.6 and older
install_bundle -download -workspace <bundle-repo-name>

# Switch into the checked out bundle workspace
switch_workspace <bundle-repo-name>

3. Update Files

Update the files came with the template repo.

  • pom.xml
  • assembly-descriptor.xml
  • .gitignore
  • README_HEADER.md (Optional)
  • README.md (This file)
  • README.TEMPLATE (Remove it when done. See instructions below.)
  • required_products.txt

3.1. pom.xml

The pom.xml file contains instructions annocated with @template. Search @template and add your bundle specifics there.

3.2 assembly-descriptor.xml

This file creates a tarball that will be deployed when the user executes the install_bundle -download command. Search @template and add your bundle specifics there.

3.3 .gitignore

The .gitignore file lists workspace specific files to be excluded from getting checked in. Edit .gitignore and add new exludes or remove existing excludes.

vi .gitignore

Make sure to comment out your workspace directories (components) so that they can be included by git.

...
# PadoGrid workspace directories
apps
clusters
docker
k8s
pods
...

3.4. README_HEADER.md

Enter a short description of your bundle in the README_HEADER.md file. This file content is displayed when you execute the show_bundle -header command. Note that this file is optional. If it does not exist, then the first paragraph of the README.md file is used instead.

3.5. READEME.md (this file)

Replace README.md with the README_TEMPLATE.md file. Make sure to remove README_TEMPLATE.md after you have replaced READEME.md with it.

cp README_TEMPLATE.md README.md
git rm README_TEMPLATE.md

Update the READEME.md file by following the instructions in that file.

3.6. required_products.txt

The required_products.txt file must include a list of required products and their versions. Its format is described in the following link.

Relaxed Bundle Naming Conventions

4. Develop and Test Bundle

You can freely make changes and test the bundle in the workspace. When you are ready to check in, you simply commit the changes using the git commit command. For new files, you will need to select only the ones that you want to check in using the git status -u and git diff commands. For those files that you do not want to check in, you can list them in the .gitignore file so that they do not get checked in accidentally.


PadoGrid PadoGrid | Catalogs | Manual | FAQ | Releases | Templates | Pods | Kubernetes | Docker | Apps | Quick Start

bundle-kafka-template's People

Contributors

padogrid avatar

Watchers

 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.