Skip to content
Snippets Groups Projects
Commit daabd302 authored by George Sedov's avatar George Sedov
Browse files

add fluentd-elastic container

parent cce09827
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ include:
- local: deploy/build_env/centos/gitlab-ci-build-docker.yml
- local: deploy/build_env/debians/gitlab-ci-build-docker.yml
- local: deploy/build_env/ubuntu/gitlab-ci-build-docker.yml
- local: deploy/secondary_services/fluentd_elastic/gitlab-ci-build-docker.yml
.go-cache:
variables:
......
FROM fluent/fluentd:v1.7.3-debian-1.0
# Use root account to use apt
USER root
# below RUN includes plugin as examples elasticsearch is not required
# you may customize including plugins as you wish
RUN buildDeps="sudo make gcc g++ libc-dev" \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& sudo gem install fluent-plugin-elasticsearch \
&& sudo gem sources --clear-all \
&& SUDO_FORCE_REMOVE=yes \
apt-get purge -y --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false \
$buildDeps \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem
USER fluent
docker-create-asapo-secondary-fluentd-elasticsearch:
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
stage: .pre
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --cache=false --context $CI_PROJECT_DIR/deploy/secondary_services/fluentd_elastic --dockerfile $CI_PROJECT_DIR/deploy/secondary_services/fluentd_elastic/Dockerfile --destination $CI_REGISTRY_IMAGE/asapo-secondary-fluentd-elasticsearch:${CI_COMMIT_SHORT_SHA} --destination $CI_REGISTRY_IMAGE/asapo-secondary-fluentd-elasticsearch:latest
tags:
- kubernetes-executor
rules:
- changes:
- deploy/secondary_services/fluentd_elastic/Dockerfile
when: always
- when: never
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment