Commit 86ee07bf authored by nimrod's avatar nimrod
Browse files

Scaffolding.

Not enough to really do anything and no customization. But everything
else is in place.
parent 7889d831
Loading
Loading
Loading
Loading
Loading

.env

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

stages:
  - test
  - build
  - push
  - deploy

build:
  extends: .compose-build
  tags: [ns4.shore.co.il]
  script:
    - >
      chmod 640
      filebeat/filebeat.yml
      journalbeat/journalbeat.yml
      metricbeat/metricbeat.yml
      packetbeat/packetbeat.yml
    - docker-compose build --no-cache --parallel --pull

push:
  extends: .compose-push
  stage: push
  tags: [ns4.shore.co.il]

pull-ns4:
  extends: .compose-pull
  stage: deploy
  tags: [ns4.shore.co.il]

pull-host01:
  extends: .compose-pull
  stage: deploy
  tags: [host01.shore.co.il]

pull-kodi:
  extends: .compose-pull
  stage: deploy
  tags: [kodi.shore.co.il]

run-ns4:
  extends: .compose-run
  stage: deploy
  tags: [ns4.shore.co.il]

run-host01:
  extends: .compose-run
  stage: deploy
  tags: [host01.shore.co.il]

run-kodi:
  extends: .compose-run
  stage: deploy
  tags: [kodi.shore.co.il]

docker-compose.yml

0 → 100644
+30 −0
Original line number Diff line number Diff line
---
version: '3.7'
services:
  filebeat:
    build:
      context: filebeat
    image: registry.shore.co.il/filebeat
    restart: always

  journalbeat:
    build:
      context: journalbeat
    image: registry.shore.co.il/journalbeat
    restart: always

  metricbeat:
    build:
      context: metricbeat
    image: registry.shore.co.il/metricbeat
    restart: always

  packetbeat:
    build:
      context: packetbeat
    image: registry.shore.co.il/packetbeat
    restart: always

networks:
  default:
    name: shore

filebeat/.dockerignore

0 → 100644
+2 −0
Original line number Diff line number Diff line
*
!filebeat.yml

filebeat/Dockerfile

0 → 100644
+4 −0
Original line number Diff line number Diff line
FROM docker.elastic.co/beats/filebeat-oss:7.12.1
COPY --chown=root:filebeat filebeat.yml /usr/share/filebeat/filebeat.yml
RUN filebeat test config
HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1
Loading