Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Conversation

@mccheah
Copy link

@mccheah mccheah commented Jan 11, 2017

The first images were built more closely to what Spark has already done in their Mesos integration tests, but Alpine has a smaller image size and thus is quicker to pull and build with. Also use Java 8 instead of Java 7 as the base.

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/*
RUN apk add --update vim
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly for debugging. Not sure what else we should add here, if anything.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no vi by default? If so I'd want to keep this slimmer by not including vim

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good call, vi is there by default.

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/*
RUN apk add --update vim
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no vi by default? If so I'd want to keep this slimmer by not including vim


# Upgrade package index
# install a few other useful packages plus Open Jdk 7
# Remove unneeded /var/lib/apt/lists/* after install to reduce the
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment no longer applicable since you removed that line


# Upgrade package index
# install a few other useful packages plus Open Jdk 7
# Remove unneeded /var/lib/apt/lists/* after install to reduce the
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment no longer applicable since you removed that line

@mccheah
Copy link
Author

mccheah commented Jan 11, 2017

@ash211 anything else here?

@ash211
Copy link

ash211 commented Jan 12, 2017

Nope, LGTM!

@ash211 ash211 merged commit 40cf4ea into k8s-support-alternate-incremental Jan 12, 2017
@ash211 ash211 deleted the java-8-images branch January 12, 2017 00:05
ash211 pushed a commit that referenced this pull request Feb 8, 2017
* Use alpine and java 8 for docker images.

* Remove installation of vim and redundant comment
ash211 pushed a commit that referenced this pull request Mar 8, 2017
* Use alpine and java 8 for docker images.

* Remove installation of vim and redundant comment
foxish pushed a commit that referenced this pull request Jul 24, 2017
* Use alpine and java 8 for docker images.

* Remove installation of vim and redundant comment
puneetloya pushed a commit to puneetloya/spark that referenced this pull request Mar 11, 2019
* Use alpine and java 8 for docker images.

* Remove installation of vim and redundant comment
ifilonenko referenced this pull request in bloomberg/apache-spark-on-k8s Mar 13, 2019
* Use alpine and java 8 for docker images.

* Remove installation of vim and redundant comment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants