-
Notifications
You must be signed in to change notification settings - Fork 117
Use alpine and java 8 for docker images. #10
Conversation
| 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
|
@ash211 anything else here? |
|
Nope, LGTM! |
* Use alpine and java 8 for docker images. * Remove installation of vim and redundant comment
* Use alpine and java 8 for docker images. * Remove installation of vim and redundant comment
* Use alpine and java 8 for docker images. * Remove installation of vim and redundant comment
* Use alpine and java 8 for docker images. * Remove installation of vim and redundant comment
* Use alpine and java 8 for docker images. * Remove installation of vim and redundant comment
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.