Hydrospheredata / mist

Serverless proxy for Spark cluster
http://hydrosphere.io/mist/
Apache License 2.0
326 stars 68 forks source link

Rebase docker image to use official repositories #450

Closed austinnichols101 closed 5 years ago

austinnichols101 commented 6 years ago

Current image: anapsix/alpine-java:8 Proposed image: openjdk:8u151-jdk-alpine3.7

Benefits:

I also suggest pulling in the spark/mist requirements from the official repositories rather than local files:

SPARK

ENV SPARK_VERSION="2.3.0"
ENV SPARK_HOME="/usr/share/spark"

# Auto-extract spark into the destination folder
RUN mkdir -p ${SPARK_HOME} \
 && wget -O- http://mirror.reverse.net/pub/apache/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz \
  | tar -xz -C ${SPARK_HOME} --strip-components 1

MIST

ENV MIST_VERSION="1.0.0-RC12"
ENV MIST_HOME="/usr/share/mist"

# Auto-extract mist into the destination folder
RUN mkdir -p ${MIST_HOME} \
 && wget -O- http://repo.hydrosphere.io/hydrosphere/static/mist-${MIST_VERSION}.tar.gz \
  | tar -xz -C ${MIST_HOME} --strip-components 1
dos65 commented 6 years ago

It's a good suggestion about base image. About docker building - the way you suggest takes more time - we always have the same distributives locally so there is no reason to increase release build time