Giter Club home page Giter Club logo

example-scala-openshift's Introduction

Example for OpenShift

Simple example to test out a Scala S2I build

To use it, install S2I: https://github.com/openshift/source-to-image

Sample invocation:

s2i build https://github.com/jw3/example-scala-openshift.git jwiii/sbts2i example-scala-openshift

You can then run the resulting image via:

docker run <application image>

Configuration

  • LOG_LEVEL: String; log level, one of TRACE, DEBUG, INFO, WARN, ERROR, ALL or OFF (default INFO)
  • ACTOR_LOG_LEVEL: String; log level, one of OFF, ERROR, WARNING, INFO, DEBUG (default INFO)

Client

  • EXAMPLE_SERVER_HOST: String; Hostname to bind to
  • EXAMPLE_SERVER_PORT: Integer; Port to listen on
  • EXAMPLE_HELLO_INTERVAL: Duration; example 10s for 10 seconds (default 5s)
  • EXAMPLE_LOAD_INTERVAL: Duration; (defatult 10s)
  • EXAMPLE_LOAD_PCT: Double (default .25)
  • EXAMPLE_LOAD_TIME: Duration: (default 30s)
  • EXAMPLE_LOAD_ENABLED': Boolean: enable load generation (default false`)

Server

  • EXAMPLE_HTTP_HOST: String; Hostname to bind to
  • EXAMPLE_HTTP_PORT: Integer; Port to listen on
  • EXAMPLE_MESSAGE: String; Message to print from hello endpoint (default hello, openshift)

OpenShift

You can access a free for limited use OpenShift account at: https://www.openshift.com/devpreview/register.html

Create a new OpenShift project an log in using the oc command line tools

oc new-app jwiii/sbts2i:latest~https://github.com/jw3/example-scala-openshift.git --name='examples2i'

example-scala-openshift's People

Contributors

jw3 avatar

Watchers

James Cloos 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.