Commit 1ce5b891 authored by nimrod's avatar nimrod
Browse files

Initial setup.

parent 5373b93e
Loading
Loading
Loading
Loading

.env

0 → 100644
+1 −0
Original line number Diff line number Diff line
COMPOSE_PROJECT_NAME=es
+22 −0
Original line number Diff line number Diff line
@@ -2,3 +2,25 @@
include:
  - project: shore/ci-templates
    file: templates/pre-commit.yml
  - project: shore/ci-templates
    file: templates/docker.yml

stages:
  - test
  - build
  - deploy

build:
  extends: .compose-build
  tags: &tags [host01.shore.co.il]
  variables:
    DOCKER_BUILDKIT: ""
    COMPOSE_DOCKER_CLI_BUILD: ""

pull:
  extends: .compose-pull
  tags: *tags

run:
  extends: .compose-run
  tags: *tags

curator/.dockerignore

0 → 100644
+4 −0
Original line number Diff line number Diff line
*
!crontab
!config.yml
!actions.yml

curator/Dockerfile

0 → 100644
+8 −0
Original line number Diff line number Diff line
# hadolint ignore=DL3006
FROM registry.shore.co.il/cron
USER root
# hadolint ignore=DL3018
RUN apk add --update --no-cache py3-pip
RUN python3 -m pip install --no-cache-dir elasticsearch-curator==5.8.4
USER nobody
COPY --chown=root:root config.yml actions.yml /etc/curator/

curator/actions.yml

0 → 100644
+16 −0
Original line number Diff line number Diff line
---
actions:
    1:
        action: delete_indices
        description: Delete old indices
        ignore_empty_list: True
        filters:
            - filtertype: pattern
              kind: timestring
              value: '%Y.%m.%d'
            - filtertype: age
              source: name
              direction: older
              timestring: '%Y.%m.%d'
              unit: days
              unit_count: 3
Loading