radanalyticsio / oshinko-s2i

This is a place to put s2i images and utilities for spark application builders for openshift
Apache License 2.0
15 stars 27 forks source link

scala and java mix based application #300

Closed oshritf closed 4 years ago

oshritf commented 4 years ago

Our application source code is a mix of scala. When using oshinko-scala-spark-build-dc template, build fails as javac cannot be found and compile the java sources part. Is there any image/template that has support for both scala sbt and java? What would be the best way to configure/add java on the builder pod?

oshritf commented 4 years ago

Used this Dockerfile: FROM radanalyticsio/radanalytics-scala-spark:stable

USER root RUN yum install -y \ java-1.8.0-openjdk-devel

ENV JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk"

USER 185