diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 3adde80..7c0b325 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -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: . diff --git a/README.md b/README.md index bf59be5..729f9be 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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" ``` @@ -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' @@ -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. @@ -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"}]' ``` diff --git a/entrypoint.sh b/entrypoint.sh index e4d4422..1a05d13 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,7 +5,7 @@ mkdir -p /etc/periodic/${PERIOD} cat > /etc/periodic/${PERIOD}/0-curator <