Sign inSign up

appuio/s2i-play-java

By appuio

Updated almost 6 years ago

Simple S2I Builder Image for Play and Java

Image
0

1M+

appuio/s2i-play-java repository overview

S2I Builder with Play and Java

A very simple S2I builder which builds Java Play applications.

Assembling

The assemble script runs sbt stage and moves the built artifacts to /opt/app-root/bin.

It also supports incremental builds, so if there are already artifacts available, they will be restored before calling the build command.

Directories saved during save-artifacts:

  • .ivy2
  • target
  • .sbt
Environment Variables
NameDescriptionDefault value
INITIAL_CLEANRuns "sbt clean" before testfalse
RUN_TESTSRuns "sbt test" if truefalse
TASK_CLEANRuns "sbt clean" between test and build if truefalse

Running

To execute the built application the script will be searched under /opt/app-root/bin/bin and if found executed. Customization can be done using the PLAY_START_PARAMETER environment variable.

Environment Variables
NameDescriptionDefault value
PLAY_START_PARAMETERParameters passed to the run script
USER_NAMEUsername for the random uidplay

Ideas

  • Runtime image

Tag summary

Content type

Image

Digest

Size

387 MB

Last updated

almost 6 years ago

docker pull appuio/s2i-play-java