Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
c50034451c | |||
f645ba1835 | |||
130a70df1b | |||
0b05942b6f | |||
2466ca6765 | |||
b43595ac9e |
6 changed files with 77 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
secrets.yml
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
FROM fluent/fluentd:v1.16-debian-1
|
||||||
|
USER root
|
||||||
|
# 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
1
deploy.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
`fly -t home set-pipeline -l secrets.yml -p fluentd -c pipeline.yml`
|
1
labels
Normal file
1
labels
Normal file
|
@ -0,0 +1 @@
|
||||||
|
maintainer=Pim Kunis
|
68
pipeline.yml
Normal file
68
pipeline.yml
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
---
|
||||||
|
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:
|
||||||
|
driver: git
|
||||||
|
initial_version: "1.0.0"
|
||||||
|
uri: ssh://git@git.kun.is:56287/pim/fluentd.git
|
||||||
|
branch: version
|
||||||
|
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
|
1
version
1
version
|
@ -1 +0,0 @@
|
||||||
1.0.5
|
|
Reference in a new issue