-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker: updates Elasticsearch 7.x image to Elastic licensed 7.17.16 #3654
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,34 +27,37 @@ FROM scratch as scratch | |
COPY build-bin/docker/docker-healthcheck /docker-bin/ | ||
COPY docker/test-images/zipkin-elasticsearch7/start-elasticsearch /docker-bin/ | ||
COPY docker/test-images/zipkin-elasticsearch7/config/ /config/ | ||
COPY docker/test-images/zipkin-elasticsearch7/NOTICE.txt / | ||
|
||
FROM ghcr.io/openzipkin/java:${java_version} as install | ||
|
||
WORKDIR /install | ||
|
||
# Use latest 7.x version from https://www.elastic.co/downloads/past-releases#elasticsearch | ||
# Use latest 7.x version from https://www.elastic.co/downloads/past-releases#elasticsearch-no-jdk | ||
# This is defined in many places because Docker has no "env" script functionality unless you use | ||
# docker-compose: When updating, update everywhere. | ||
# | ||
# TODO: 7.10.2 is the last OSS no-jdk version. To update requires a switch to non OSS. | ||
# See https://www.elastic.co/downloads/past-releases#elasticsearch-oss-no-jdk | ||
ARG elasticsearch7_version=7.10.2 | ||
ARG elasticsearch7_version=7.17.16 | ||
|
||
# Download only the OSS distribution (lacks X-Pack) | ||
RUN \ | ||
# Connection resets are frequent in GitHub Actions workflows \ | ||
wget --random-wait --tries=5 -qO- \ | ||
# We don't download bin scripts as we customize for reasons including BusyBox problems | ||
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-${elasticsearch7_version}-no-jdk-linux-x86_64.tar.gz| tar xz \ | ||
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${elasticsearch7_version}-no-jdk-linux-x86_64.tar.gz| tar xz \ | ||
--wildcards --strip=1 --exclude=*/bin && mkdir classes | ||
|
||
COPY --from=scratch /config/ ./config/ | ||
|
||
FROM ghcr.io/openzipkin/java:${java_version}-jre as zipkin-elasticsearch7 | ||
LABEL org.opencontainers.image.description="Elasticsearch OSS distribution on OpenJDK and Alpine Linux" | ||
ARG elasticsearch7_version=7.10.2 | ||
# Use a full Java distribution rather than adding test modules to the | ||
# production -jre base layer used by zipkin and zipkin-slim. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
FROM ghcr.io/openzipkin/java:${java_version} as zipkin-elasticsearch7 | ||
LABEL org.opencontainers.image.description="Elasticsearch distribution on OpenJDK and Alpine Linux" | ||
ARG elasticsearch7_version=7.17.16 | ||
LABEL elasticsearch-version=$elasticsearch7_version | ||
|
||
# This image is only for testing Zipkin, but alert users anyway about the | ||
# Elastic license. The license ends up on disk as /elasticsearch/LICENSE.txt | ||
codefromthecrypt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
LABEL org.opencontainers.image.licenses="Elastic-License-2.0" | ||
|
||
# Add HEALTHCHECK and ENTRYPOINT scripts into the default search path | ||
COPY --from=scratch /docker-bin/* /usr/local/bin/ | ||
# We use start period of 30s to avoid marking the container unhealthy on slow or contended CI hosts | ||
|
@@ -74,4 +77,5 @@ COPY --from=install --chown=${USER} /install . | |
|
||
# Use to set heap, trust store or other system properties. | ||
ENV JAVA_OPTS="-Xms256m -Xmx256m -XX:+ExitOnOutOfMemoryError" | ||
ENV LIBFFI_TMPDIR=/tmp | ||
EXPOSE 9200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@xeraa why is there no 8.x here?
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.
looks like we're to delete the jdk directory, which is fine https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html#jvm-version
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.
Yeah, we don't build those any more for 8. It's recommended to stick to the default JDK we provide, but you can delete the shipped JDK folder (optional) and link to any JDK you like (with or without deleting the default JDK)