Compare commits

...
This repository has been archived on 2024-02-18. You can view files and clone it, but cannot push or open issues or pull requests.

6 commits

Author SHA1 Message Date
c50034451c add another missing dependency 2023-08-24 15:02:18 +02:00
f645ba1835 add missing dependency for geoip 2023-08-24 14:56:06 +02:00
130a70df1b install geoip plugin 2023-08-24 14:53:02 +02:00
0b05942b6f fix gem name 2023-08-22 19:55:11 +02:00
2466ca6765 add rewrite_tag_filter plugin 2023-08-22 19:51:09 +02:00
b43595ac9e add pipeline 2023-08-02 13:28:43 +02:00
5 changed files with 62 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
secrets.yml

View file

@ -1,4 +1,6 @@
FROM fluent/fluentd:v1.16-debian-1
USER root
RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-document"]
# Prerequisites for GeoIP2
RUN apt update && apt install -y build-essential libgeoip-dev autoconf libtool && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN ["gem", "install", "fluent-plugin-elasticsearch", "fluent-plugin-rewrite-tag-filter", "fluent-plugin-geoip", "--no-document"]
USER fluent

1
deploy.md Normal file
View file

@ -0,0 +1 @@
`fly -t home set-pipeline -l secrets.yml -p fluentd -c pipeline.yml`

1
labels Normal file
View file

@ -0,0 +1 @@
maintainer=Pim Kunis

View file

@ -1,5 +1,21 @@
---
resources:
- name: repo
type: git
source:
uri: https://git.kun.is/pim/fluentd.git
- name: my-image
type: registry-image
source:
repository: git.kun.is/pim/fluentd
username: pim
password: ((api_key))
tag: stable
- name: upstream-image
type: registry-image
source:
repository: fluent/fluentd
tag: v1.16-debian-1
- name: version
type: semver
source:
@ -10,3 +26,43 @@ resources:
file: version
private_key: {{private_key}}
icon: numeric
jobs:
- name: build-and-publish-image
plan:
- get: repo
trigger: true
- get: upstream-image
trigger: true
- task: build-image
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
repository: concourse/oci-build-task
inputs:
- name: repo
outputs:
- name: image
params:
DOCKERFILE: repo/Dockerfile
LABELS_FILE: repo/labels
run:
path: sh
args:
- -exc
- |
build
ls image
- get: version
params:
bump: patch
- put: my-image
params:
image: image/image.tar
additional_tags: version/version
- put: version
params:
file: version/version