Skip to content

Commit

Permalink
Changes jre image to OpenJDK-JRE
Browse files Browse the repository at this point in the history
  • Loading branch information
zeagord authored and adriancole committed Jun 21, 2018
1 parent 46c707c commit 8cd5043
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
FROM openjdk:8-jdk-alpine
FROM openjdk:8-jre-alpine
MAINTAINER OpenZipkin "http://zipkin.io/"

# Remove 40M worth of SDK things, but link back /usr/local/java/bin to help tools
# that auto-detect JAVA_HOME.
RUN rm -rf /usr/local/java/bin /usr/local/java/lib /usr/local/java/include

# Setup curl for convenience as all derivative images use it, and putting
# it in one layer (via squash) is helpful
RUN apk add --update --no-cache curl

# Java relies on /etc/nsswitch.conf. Put host files first or InetAddress.getLocalHost
# will throw UnknownHostException as the local hostname isn't in DNS.
RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
`openzipkin/jre-full` is a minimal but full JRE Docker image based on [cantara/alpine-zulu-jdk8](https://github.com/Cantara/maven-infrastructure/tree/master/docker-baseimages/alpine-zulu-jdk8). It's created by removing the JDK and leaving only the JRE, then squashing the Docker image.
`openzipkin/jre-full` is a minimal but full JRE Docker image based on [openjdk:8-jre-alpine](https://github.com/docker-library/openjdk/blob/master/8/jdk/alpine/Dockerfile).

On Dockerhub: [openzipkin/jre-full](https://hub.docker.com/r/openzipkin/jre-full/)

## Release process

New versions are built on [Travis CI](https://travis-ci.org/openzipkin/docker-jre-full). To trigger a build, push a new tag to GitHub. The tag will be the Docker tag assigned to the newly built image. Since `cantara/alpine-zulu-jdk8` only pushes latest, name the tag according to the JDK in use. For example `1.8.0_112`.
New versions are built on [Travis CI](https://travis-ci.org/openzipkin/docker-jre-full). To trigger a build, push a new tag to GitHub. The tag will be the Docker tag assigned to the newly built image. Name the tag according to the JDK in use. For example `1.8.0_112`.
7 changes: 1 addition & 6 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ if [[ $# -ne 1 ]]; then
fi
version="$1"
tag="openzipkin/jre-full:$version"
fat_tag="${tag}-fat"

docker_squash="$(which docker-squash)"

docker build -t "$fat_tag" .

docker-squash -t "$tag" "$fat_tag"
docker build --squash -t "$tag" .

docker push "$tag"

0 comments on commit 8cd5043

Please sign in to comment.