Git Product home page Git Product logo

sti-scala's Introduction

Scala for OpenShift - Docker images

This repository contains the source for building various versions of the Scala application as a reproducible Docker image using source-to-image. The resulting image can be run using Docker.

Versions

Scala versions currently provided are:

  • SBT 0.13

Java versions currently provided are:

  • Java 1.8.0

CentOS versions currently supported are:

  • CentOS 7

Installation

  • CentOS based image

    To build a Scala image from scratch run:

    $ git clone https://github.com/ticketfly/sti-scala.git
    $ cd sti-scala/sbt-0.13-java-8
    $ make build
    

Usage

To build a simple Scala-sample-app application using standalone STI and then run the resulting image with Docker execute:

  • For CentOS based image
    $ sti build https://github.com/ticketfly/sti-scala.git --context-dir=sbt-0.13-java-8/test/test-app/ ticketfly/scala-0.13-java-8-centos7 scala-test-app
    $ docker run -p 9000:9000 scala-test-app
    

Accessing the application:

$ curl 127.0.0.1:9000

Test

This repository also provides a S2I test framework, which launches tests to check functionality of a simple Scala application built on top of the sti-Scala image.

Users can choose between testing a Scala test application based on a RHEL or CentOS image.

  • CentOS based image

    $ cd sti-scala/sbt-0.13-java-8
    $ make test
    

sti-scala's People

Contributors

ptescher avatar jtescher avatar

Watchers

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