GithubHelp home page GithubHelp logo

isabella232 / pravega-ingest-gateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pravega/pravega-ingest-gateway

0.0 0.0 0.0 78 KB

A simple HTTP server that can be used to write JSON events to a Pravega stream

Dockerfile 5.71% Java 59.33% Shell 34.96%

pravega-ingest-gateway's Introduction

Pravega Ingest Gateway

The Pravega Ingest Gateway is a simple HTTP server that can be used to write JSON events to a Pravega stream.

Deploy to SDP using Helm

  1. Copy the file scripts/env-sample.sh to scripts/env-local.sh. This script will contain parameters for your environment.

  2. You can enable TLS (HTTPS) with a private Certificate Authority with these steps. This method is intended only for development and testing environments.

    cd ssl
    ./create-dev-all.sh
    ./load-secrets.sh
  3. Copy the sample values file from values/samples/pravega-ingest-gateway.yaml or values/samples/pravega-ingest-gateway-tls.yaml to values/local/pravega-ingest-gateway.yaml or any other destination. You may name this file anything, but you must use alphanumeric characters and dashes only.

  4. Edit this file to use your Pravega stream name and HTTP server FQDN.

  5. (Optional) If you customized the Java code, compile and deploy the Docker image.

    a. Set DOCKER_REPOSITORY and IMAGE_TAG in scripts/env-local.sh.

    b. Add matching values for image.repository and image.tag in values/local/pravega-ingest-gateway.yaml.

    c. Build and push the Docker image.

     scripts/build.sh
     ```
    
  6. Deploy the Pravega Ingest Gateway using Helm.

    scripts/deploy.sh values/local/pravega-ingest-gateway.yaml
  7. Send a test event.

    scripts/send-test-event.sh

Run Gateway in Docker

scripts/build.sh
scripts/deploy-docker.sh

Run Gateway Locally

export PRAVEGA_CONTROLLER=tcp://localhost:9090
../gradlew run

Send Test Event

scripts/send-test-event.sh

pravega-ingest-gateway's People

Contributors

chennv4 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.