-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds elasticsearch6 and elasticsearch7 images
These are used in our integration tests for zipkin-storage/elasticsearch See openzipkin-attic/docker-zipkin#86
- Loading branch information
Adrian Cole
committed
Oct 17, 2019
1 parent
7d81636
commit b0a2b7e
Showing
11 changed files
with
204 additions
and
3 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Copyright 2015-2019 The OpenZipkin Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
|
||
FROM alpine | ||
|
||
ENV ELASTICSEARCH_VERSION 6.8.3 | ||
|
||
RUN apk add --update curl | ||
|
||
WORKDIR /elasticsearch | ||
|
||
RUN curl -sSL https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.tar.gz| tar xz && \ | ||
mv elasticsearch-$ELASTICSEARCH_VERSION/* /elasticsearch/ | ||
|
||
FROM openzipkin/jre-full:11.0.4-11.33 | ||
LABEL MAINTAINER Zipkin "https://zipkin.io/" | ||
|
||
# https://github.com/elastic/elasticsearch/pull/31003 was closed won't fix | ||
ENV ES_TMPDIR /tmp | ||
|
||
RUN ["/busybox/sh", "-c", "adduser -g '' -h /elasticsearch -D elasticsearch"] | ||
|
||
COPY --from=0 --chown=elasticsearch /elasticsearch /elasticsearch | ||
|
||
WORKDIR /elasticsearch | ||
|
||
# elasticsearch complains if run as root | ||
USER elasticsearch | ||
|
||
COPY config ./config | ||
|
||
EXPOSE 9200 9300 | ||
|
||
ENV JAVA_OPTS " " | ||
|
||
ENTRYPOINT ["/busybox/sh", "/elasticsearch/bin/elasticsearch"] |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## zipkin-elasticsearch6 Docker image | ||
|
||
The `zipkin-elasticsearch6` testing image runs Elasticsearch 6.x for [Elasticsearch storage](../../zipkin-storage/elasticsearch) | ||
integration. | ||
|
||
To build `openzipkin/zipkin-elasticsearch6`, from the top level of the repository, run: | ||
```bash | ||
$ docker build -t openzipkin/zipkin-elasticsearch6:test -f docker/elasticsearch6/Dockerfile . | ||
``` | ||
|
||
#### Host setup | ||
Elasticsearch is [strict](https://github.com/docker-library/docs/tree/master/elasticsearch#host-setup) | ||
about virtual memory. You will need to adjust accordingly (especially if you notice Elasticsearch crash!) | ||
|
||
```bash | ||
# If docker is running on your host machine, adjust the kernel setting directly | ||
$ sudo sysctl -w vm.max_map_count=262144 | ||
|
||
# If using docker-machine/Docker Toolbox/Boot2Docker, remotely adjust the same | ||
$ docker-machine ssh default "sudo sysctl -w vm.max_map_count=262144" | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# Copyright 2015-2019 The OpenZipkin Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
|
||
network.host: 0.0.0.0 | ||
discovery.zen.minimum_master_nodes: 1 | ||
xpack.ml.enabled: false |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# Copyright 2015-2019 The OpenZipkin Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
|
||
FROM alpine | ||
|
||
ENV ELASTICSEARCH_VERSION 7.4.0 | ||
|
||
RUN apk add --update curl | ||
|
||
WORKDIR /elasticsearch | ||
|
||
RUN curl -sSL https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION-linux-x86_64.tar.gz| tar xz && \ | ||
mv elasticsearch-$ELASTICSEARCH_VERSION/* /elasticsearch/ && \ | ||
# disable ML as not supported on alpine per https://discuss.elastic.co/t/elasticsearch-failing-to-start-due-to-x-pack/85125/6 | ||
rm -rf /elasticsearch/modules/x-pack-ml/platform/linux-x86_64 | ||
|
||
FROM openzipkin/jre-full:11.0.4-11.33 | ||
LABEL MAINTAINER Zipkin "https://zipkin.io/" | ||
|
||
# https://github.com/elastic/elasticsearch/pull/31003 was closed won't fix | ||
ENV ES_TMPDIR /tmp | ||
|
||
RUN ["/busybox/sh", "-c", "adduser -g '' -h /elasticsearch -D elasticsearch"] | ||
|
||
COPY --from=0 --chown=elasticsearch /elasticsearch /elasticsearch | ||
|
||
WORKDIR /elasticsearch | ||
|
||
# elasticsearch complains if run as root | ||
USER elasticsearch | ||
|
||
COPY config ./config | ||
|
||
EXPOSE 9200 9300 | ||
|
||
ENV JAVA_OPTS " " | ||
|
||
ENTRYPOINT ["/busybox/sh", "/elasticsearch/bin/elasticsearch"] |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## zipkin-elasticsearch7 Docker image | ||
|
||
The `zipkin-elasticsearch7` testing image runs Elasticsearch 7.x for [Elasticsearch storage](../../zipkin-storage/elasticsearch) | ||
integration. | ||
|
||
To build `openzipkin/zipkin-elasticsearch7`, from the top level of the repository, run: | ||
```bash | ||
$ docker build -t openzipkin/zipkin-elasticsearch7:test -f docker/elasticsearch7/Dockerfile . | ||
``` | ||
|
||
#### Host setup | ||
Elasticsearch is [strict](https://github.com/docker-library/docs/tree/master/elasticsearch#host-setup) | ||
about virtual memory. You will need to adjust accordingly (especially if you notice Elasticsearch crash!) | ||
|
||
```bash | ||
# If docker is running on your host machine, adjust the kernel setting directly | ||
$ sudo sysctl -w vm.max_map_count=262144 | ||
|
||
# If using docker-machine/Docker Toolbox/Boot2Docker, remotely adjust the same | ||
$ docker-machine ssh default "sudo sysctl -w vm.max_map_count=262144" | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Copyright 2015-2019 The OpenZipkin Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
|
||
network.host: 0.0.0.0 | ||
node.name: zipkin-elasticsearch | ||
cluster.name: "docker-cluster" | ||
cluster.initial_master_nodes: | ||
- zipkin-elasticsearch | ||
xpack.ml.enabled: false |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Copyright 2015-2019 The OpenZipkin Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
|
||
status = error | ||
|
||
appender.console.type = Console | ||
appender.console.name = console | ||
appender.console.layout.type = PatternLayout | ||
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n | ||
|
||
rootLogger.level = info | ||
rootLogger.appenderRef.console.ref = console | ||
|
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