mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-03-04 07:07:12 +00:00
[es] Upgrade to 2.0.0
This commit is contained in:
parent
5484f50659
commit
b3a79d6b08
3 changed files with 13 additions and 3 deletions
|
@ -2,9 +2,9 @@ FROM itzg/ubuntu-openjdk-7
|
||||||
|
|
||||||
MAINTAINER itzg
|
MAINTAINER itzg
|
||||||
|
|
||||||
ENV ES_VERSION 1.7.3
|
ENV ES_VERSION 2.0.0
|
||||||
|
|
||||||
RUN wget -qO /tmp/es.tgz https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz && \
|
RUN wget -qO /tmp/es.tgz https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.tar.gz && \
|
||||||
cd /usr/share && \
|
cd /usr/share && \
|
||||||
tar xf /tmp/es.tgz && \
|
tar xf /tmp/es.tgz && \
|
||||||
rm /tmp/es.tgz
|
rm /tmp/es.tgz
|
||||||
|
@ -23,4 +23,6 @@ USER elasticsearch
|
||||||
|
|
||||||
EXPOSE 9200 9300
|
EXPOSE 9200 9300
|
||||||
|
|
||||||
|
ENV OPTS=-Dnetwork.bind_host=_non_loopback_
|
||||||
|
|
||||||
CMD ["/start"]
|
CMD ["/start"]
|
||||||
|
|
|
@ -82,6 +82,14 @@ The contents of the `/conf/env` file are standard shell
|
||||||
|
|
||||||
entries where `NAME` is one of the variables described below.
|
entries where `NAME` is one of the variables described below.
|
||||||
|
|
||||||
|
Configuration options not explicitly supported below can be specified via the `OPTS` environment variable. For
|
||||||
|
example, by default `OPTS` is set with
|
||||||
|
|
||||||
|
OPTS=-Dnetwork.bind_host=_non_loopback_
|
||||||
|
|
||||||
|
_NOTE: That option is a default since `bind_host` defaults to `localhost` as of 2.0, which isn't helpful for
|
||||||
|
port mapping out from the container_.
|
||||||
|
|
||||||
## Cluster Name
|
## Cluster Name
|
||||||
|
|
||||||
If joining a pre-existing cluster, then you may need to specify a cluster name
|
If joining a pre-existing cluster, then you may need to specify a cluster name
|
||||||
|
|
|
@ -12,7 +12,7 @@ if [ ! -e /conf/logging.* ]; then
|
||||||
cp $ES_HOME/config/logging.yml /conf
|
cp $ES_HOME/config/logging.yml /conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OPTS="-Des.path.conf=/conf \
|
OPTS="$OPTS -Des.path.conf=/conf \
|
||||||
-Des.path.data=/data \
|
-Des.path.data=/data \
|
||||||
-Des.path.logs=/data \
|
-Des.path.logs=/data \
|
||||||
-Des.transport.tcp.port=9300 \
|
-Des.transport.tcp.port=9300 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue