mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 05:42:28 +00:00
[es] Upgrade to 1.7.0 and add /conf/env override feature
fixes #39 and #40
This commit is contained in:
parent
19b77ba18b
commit
53932e64f2
3 changed files with 20 additions and 1 deletions
2
elasticsearch/Dockerfile
Normal file → Executable file
2
elasticsearch/Dockerfile
Normal file → Executable file
|
@ -2,7 +2,7 @@ FROM itzg/ubuntu-openjdk-7
|
|||
|
||||
MAINTAINER itzg
|
||||
|
||||
ENV ES_VERSION 1.6.0
|
||||
ENV ES_VERSION 1.7.0
|
||||
|
||||
RUN wget -qO /tmp/es.tgz https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz && \
|
||||
cd /usr/share && \
|
||||
|
|
15
elasticsearch/README.md
Normal file → Executable file
15
elasticsearch/README.md
Normal file → Executable file
|
@ -67,6 +67,21 @@ environment variables (`-e`) like
|
|||
|
||||
docker run ... -e NAME=VALUE ... itzg/elasticsearch
|
||||
|
||||
Since Docker's `-e` settings are baked into the container definition, this image provides an
|
||||
extra feature to change any of the settings below for an existing container. Either
|
||||
create/edit the file `env` in the `/conf` volume mapping or edit within the running container's
|
||||
context using:
|
||||
|
||||
docker exec -it CONTAINER_ID vi /conf/env
|
||||
|
||||
replacing `CONTAINER_ID` with the container's ID or name.
|
||||
|
||||
The contents of the `/conf/env` file are standard shell
|
||||
|
||||
NAME=VALUE
|
||||
|
||||
entries where `NAME` is one of the variables described below.
|
||||
|
||||
## Cluster Name
|
||||
|
||||
If joining a pre-existing cluster, then you may need to specify a cluster name
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -f /conf/env ]; then
|
||||
. /conf/env
|
||||
fi
|
||||
|
||||
if [ ! -e /conf/elasticsearch.* ]; then
|
||||
cp $ES_HOME/config/elasticsearch.yml /conf
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue