1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

add elasticdump

This commit is contained in:
kev 2020-09-16 19:01:06 +08:00
parent 1d651e42d4
commit 1716d09a0a
6 changed files with 21 additions and 9 deletions

View File

@ -300,6 +300,7 @@ A collection of delicious docker recipes.
- [x] drone/drone
- [x] drupal
- [x] elastichq/elasticsearch-hq
- [x] elasticdump/elasticsearch-dump
- [x] elk
- [x] quay.io/coreos/etcd
- [x] audreyt/ethercalc

8
elasticdump/README.md Normal file
View File

@ -0,0 +1,8 @@
elasticdump
===========
```bash
$ alias elasticdump='docker run --rm --net host -v $PWD:/data -w /data elasticdump/elasticsearch-dump'
$ query='{"query": {"query_string": {"query": "+hello:world +foo:bar"}}}'
$ elasticdump --input=http://127.0.0.1:9200/index_name output=result.json --searchBody="$query"
```

View File

@ -14,7 +14,7 @@ RUN set -xe \
&& apt-get install -y ot-recorder \
&& rm -rf /var/lib/apt/lists/*
ENV OTR_HOST iot.eclipse.org
ENV OTR_HOST mqtt.eclipse.org
ENV OTR_PORT 1883
ENV OTR_HTTPHOST 0.0.0.0
ENV OTR_HTTPPORT 8083

View File

@ -14,7 +14,7 @@ RUN set -xe \
&& apt-get install -y ot-recorder \
&& rm -rf /var/lib/apt/lists/*
ENV OTR_HOST iot.eclipse.org
ENV OTR_HOST mqtt.eclipse.org
ENV OTR_PORT 1883
ENV OTR_HTTPHOST 0.0.0.0
ENV OTR_HTTPPORT 8083

View File

@ -1,4 +1,4 @@
version: "3.7"
version: "3.8"
services:
@ -9,12 +9,13 @@ services:
volumes:
- ./data:/var/spool/owntracks/recorder/store
environment:
- OTR_HOST=iot.eclipse.org
- OTR_HOST=mqtt.eclipse.org
- OTR_PORT=8883
- OTR_USER=username
- OTR_PASS=password
- OTR_TOPICS=owntracks/#
# OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
- OTR_CAPATH=/etc/ssl/certs/
# OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# OTR_OPTIONS=--debug
restart: unless-stopped
@ -23,6 +24,7 @@ services:
ports:
- 8080:80
environment:
- LISTEN_PORT=80
- SERVER_HOST=recorder
- SERVER_PORT=8083
restart: unless-stopped

View File

@ -1,4 +1,4 @@
version: "3.7"
version: "3.8"
services:
@ -9,12 +9,12 @@ services:
volumes:
- ./data:/var/spool/owntracks/recorder/store
environment:
- OTR_HOST=iot.eclipse.org
- OTR_PORT=1883
- OTR_HOST=mqtt.eclipse.org
- OTR_PORT=8883
- OTR_USER=username
- OTR_PASS=password
- OTR_TOPICS=owntracks/#
# OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
- OTR_CAPATH=/etc/ssl/certs/
# OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# OTR_OPTIONS=--debug
restart: unless-stopped
@ -24,6 +24,7 @@ services:
ports:
- 8080:80
environment:
- LISTEN_PORT=80
- SERVER_HOST=recorder
- SERVER_PORT=8083
restart: unless-stopped