Skip to content
Snippets Groups Projects
Commit ebb22dae 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
No related branches found
No related tags found
No related merge requests found
Pipeline #1474 failed
.env 0 → 100644
COMPOSE_PROJECT_NAME=beats
......@@ -2,3 +2,50 @@
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]
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]
---
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.yml
FROM docker.elastic.co/beats/filebeat-oss:7.12.1
COPY --chown=root:filebeat filebeat.yml /usr/share/filebeat/filebeat.yml
RUN chmod 640 filebeat.yml && filebeat test config
HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1
---
output.elasticsearch:
hosts:
- https://elasticsearch.shore.co.il
logging:
level: warning
json: true
http:
enabled: true
*
!journalbeat.yml
FROM docker.elastic.co/beats/journalbeat-oss:7.12.1
COPY --chown=root:journalbeat journalbeat.yml /usr/share/journalbeat/journalbeat.yml
RUN chmod 640 journalbeat.yml && journalbeat test config
HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1
---
output.elasticsearch:
hosts:
- https://elasticsearch.shore.co.il
logging:
level: warning
json: true
http:
enabled: true
*
!metricbeat.yml
FROM docker.elastic.co/beats/metricbeat-oss:7.12.1
COPY --chown=root:metricbeat metricbeat.yml /usr/share/metricbeat/metricbeat.yml
RUN chmod 640 metricbeat.yml && metricbeat test config
HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1
---
output.elasticsearch:
hosts:
- https://elasticsearch.shore.co.il
logging:
level: warning
json: true
http:
enabled: true
*
!packetbeat.yml
FROM docker.elastic.co/beats/packetbeat-oss:7.12.1
COPY --chown=root:packetbeat packetbeat.yml /usr/share/packetbeat/packetbeat.yml
RUN chmod 640 packetbeat.yml && packetbeat test config
HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1
---
output.elasticsearch:
hosts:
- https://elasticsearch.shore.co.il
logging:
level: warning
json: true
http:
enabled: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment