diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4da1b1c75782517c5ae3ced3468586522cfb2b2f..b520651fc3f890d9be6190585d77e58c74d6d57f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,10 @@ build-master: - IMAGE_4="$CI_REGISTRY_IMAGE/pvs_cache" - docker pull "$IMAGE_4":latest || true - docker build --cache-from "$IMAGE_4":latest -t "$IMAGE_4":latest -t "$IMAGE_4":$VERSION_4 cache/ + - VERSION_5=`grep 'version="*"' fluentd/Dockerfile | cut -d '"' -f2` + - IMAGE_5="$CI_REGISTRY_IMAGE/fluentd" + - docker pull "$IMAGE_5":latest || true + - docker build --cache-from "$IMAGE_5":latest -t "$IMAGE_5":latest -t "$IMAGE_5":$VERSION_5 cache/ - chmod +x gitlab_test.sh - ./gitlab_test.sh - docker push "$IMAGE_1":$VERSION_1 @@ -39,6 +43,8 @@ build-master: - docker push "$IMAGE_3":latest - docker push "$IMAGE_4":$VERSION_4 - docker push "$IMAGE_4":latest + - docker push "$IMAGE_5":$VERSION_5 + - docker push "$IMAGE_5":latest only: - master @@ -66,6 +72,9 @@ build: - docker pull "$IMAGE":latest || true - docker build --cache-from "$IMAGE":latest -t "$IMAGE":$CI_COMMIT_REF_SLUG -t "$IMAGE":$CI_COMMIT_REF_NAME cache/ - docker tag "$IMAGE:$CI_COMMIT_REF_NAME" "$IMAGE:latest" + - IMAGE="$CI_REGISTRY_IMAGE/fluentd" + - docker pull "$IMAGE":latest || true + - docker build --cache-from "$IMAGE":latest -t "$IMAGE":$CI_COMMIT_REF_SLUG -t "$IMAGE":$CI_COMMIT_REF_NAME cache/ - chmod +x gitlab_test.sh - ./gitlab_test.sh except: diff --git a/fluentd/Dockerfile b/fluentd/Dockerfile index 174646e7a3571d552b92c62243d97f9b46b1888a..fb2dfae9469b57e2afd689b7b9b28b7cdee3432c 100644 --- a/fluentd/Dockerfile +++ b/fluentd/Dockerfile @@ -1,4 +1,39 @@ +#------------------------------------------------------------------------------ +# +# Project: prism view server +# Authors: Stephan Meissl <stephan.meissl@eox.at> +# +#------------------------------------------------------------------------------ +# Copyright (C) 2018 EOX IT Services GmbH <https://eox.at> +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies of this Software or works derived from this Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +#----------------------------------------------------------------------------- + FROM fluent/fluentd:v1.11.2-debian-1.0 + +MAINTAINER EOX +LABEL name="prism view server cache" \ + vendor="EOX IT Services GmbH <https://eox.at>" \ + license="MIT Copyright (C) 2019 EOX IT Services GmbH <https://eox.at>" \ + type="prism view server fluentd" \ + version="0.0.1-dev" + USER root RUN gem install fluent-plugin-elasticsearch \ && gem install fluent-plugin-rewrite-tag-filter