Skip to content

Commit

Permalink
Use alpine and java 8 for docker images. (alteryx#10)
Browse files Browse the repository at this point in the history
* Use alpine and java 8 for docker images.

* Remove installation of vim and redundant comment
  • Loading branch information
mccheah authored and foxish committed Jul 24, 2017
1 parent 728be0e commit 793143d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
FROM ubuntu:trusty

# Upgrade package index
# install a few other useful packages plus Open Jdk 7
# Remove unneeded /var/lib/apt/lists/* after install to reduce the
# docker image size (by ~30MB)
RUN apt-get update && \
apt-get install -y less openjdk-7-jre-headless net-tools vim-tiny sudo openssh-server procps && \
rm -rf /var/lib/apt/lists/*
FROM anapsix/alpine-java:8

RUN mkdir -p /opt/spark
RUN mkdir -p /opt/spark/ui-resources/org/apache/spark/ui/static
Expand All @@ -18,7 +10,6 @@ ADD sbin /opt/spark/sbin
ADD conf /opt/spark/conf

ENV SPARK_HOME /opt/spark
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64/jre

WORKDIR /opt/spark

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
FROM ubuntu:trusty

# Upgrade package index
# install a few other useful packages plus Open Jdk 7
# Remove unneeded /var/lib/apt/lists/* after install to reduce the
# docker image size (by ~30MB)
RUN apt-get update && \
apt-get install -y less openjdk-7-jre-headless net-tools vim-tiny sudo openssh-server procps && \
rm -rf /var/lib/apt/lists/*
FROM anapsix/alpine-java:8

RUN mkdir -p /opt/spark
RUN mkdir -p /opt/spark/ui-resources/org/apache/spark/ui/static
Expand All @@ -18,7 +10,6 @@ ADD sbin /opt/spark/sbin
ADD conf /opt/spark/conf

ENV SPARK_HOME /opt/spark
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64/jre

WORKDIR /opt/spark

Expand Down

0 comments on commit 793143d

Please sign in to comment.