Simple example to test out a Scala S2I build
To use it, install S2I: https://github.com/openshift/source-to-image
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>
LOG_LEVEL
: String; log level, one ofTRACE
,DEBUG
,INFO
,WARN
,ERROR
,ALL
orOFF
(defaultINFO
)ACTOR_LOG_LEVEL
: String; log level, one ofOFF
,ERROR
,WARNING
,INFO
,DEBUG
(defaultINFO
)
EXAMPLE_SERVER_HOST
: String; Hostname to bind toEXAMPLE_SERVER_PORT
: Integer; Port to listen onEXAMPLE_HELLO_INTERVAL
: Duration; example10s
for 10 seconds (default5s
)EXAMPLE_LOAD_INTERVAL
: Duration; (defatult10s
)EXAMPLE_LOAD_PCT
: Double (default.25
)EXAMPLE_LOAD_TIME
: Duration: (default30s
)EXAMPLE_LOAD_ENABLED': Boolean: enable load generation (default
false`)
EXAMPLE_HTTP_HOST
: String; Hostname to bind toEXAMPLE_HTTP_PORT
: Integer; Port to listen onEXAMPLE_MESSAGE
: String; Message to print fromhello
endpoint (defaulthello, 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'