Skip to content

Commit

Permalink
FIX Apply new command format from underscore to dash in curator_cli. e…
Browse files Browse the repository at this point in the history
…lastic/curator#1279. Also migrate from personal docker hub to organization account.
  • Loading branch information
binakot committed Mar 31, 2022
1 parent 9127f77 commit bcf0b2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: docker/metadata-action@v3
id: meta
with:
images: binakot/es-curator-cron
images: waliot/es-curator-cron
- uses: docker/build-push-action@v2
with:
context: .
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You can set the cron `PERIOD` to `15min`, `hourly`, `daily`, `weekly` and `month
## Build Docker image

```bash
$ docker build -t binakot/es-curator-cron .
$ docker build -t waliot/es-curator-cron .
```

## Run in Docker
Expand All @@ -27,7 +27,7 @@ $ docker run \
-e KEEP_DAYS="30" \
-e INDEX_PREFIX="logstash" \
-e INDEX_PATTERN="logstash-%Y.%m.%d" \
-d binakot/es-curator-cron:latest \
-d waliot/es-curator-cron:latest \
"--host elasticsearch --port 9200"
```

Expand All @@ -38,7 +38,7 @@ version: '3'

services:
curator:
image: binakot/es-curator-cron:latest
image: waliot/es-curator-cron:latest
environment:
- PERIOD: 'hourly'
- KEEP_DAYS: '30'
Expand All @@ -63,7 +63,7 @@ Print out all indices from elasticsearch.
/usr/local/bin/curator_cli \
--host elasticsearch \
--port 9200 \
show_indices
show-indices
```

Remove all indices older than one month.
Expand All @@ -72,7 +72,7 @@ Remove all indices older than one month.
/usr/local/bin/curator_cli \
--host elasticsearch \
--port 9200 \
delete_indices \
delete-indices \
--ignore_empty_list \
--filter_list '[{"filtertype":"age","source":"name","direction":"older","unit":"days","unit_count":30,"timestring":"logstash-%Y.%m.%d"},{"filtertype":"pattern","kind":"prefix","value":"logstash"}]'
```
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p /etc/periodic/${PERIOD}
cat > /etc/periodic/${PERIOD}/0-curator <<EOF
#!/bin/sh
/usr/local/bin/curator_cli $@ \
delete_indices \
delete-indices \
--ignore_empty_list \
--filter_list '[{"filtertype":"age","source":"name","direction":"older","unit":"days","unit_count":${KEEP_DAYS},"timestring":"${INDEX_PATTERN}"},{"filtertype":"pattern","kind":"prefix","value":"${INDEX_PREFIX}"}]'
EOF
Expand Down

0 comments on commit bcf0b2b

Please sign in to comment.