Giter VIP home page Giter VIP logo

Comments (6)

repeatedly avatar repeatedly commented on September 26, 2024

How about replace fluent gem with fluent-gem?
It seems a typo of README...

from fluentd-docker-image.

repeatedly avatar repeatedly commented on September 26, 2024

Ah, wait. fluent is for -u.
Please ignore above comment.

from fluentd-docker-image.

repeatedly avatar repeatedly commented on September 26, 2024

It seems the problem is alpine linux or cdn side: gliderlabs/docker-alpine#155

from fluentd-docker-image.

rolele avatar rolele commented on September 26, 2024

Ok I decided to use the ubuntu image but I still have some troubles.

FROM fluent/fluentd:ubuntu-base
USER root
WORKDIR /fluentd/plugins/fluent-plugin-elasticsearch-master
RUN gem build fluent-plugin-elasticsearch.gemspec
RUN gem install fluent-plugin-elasticsearch-1.7.0.gem
RUN fluent-gem install fluent-plugin-elasticsearch
WORKDIR /fluentd/plugins/fluent-plugin-record-reformer-master
RUN gem build fluent-plugin-record-reformer.gemspec
RUN gem install fluent-plugin-record-reformer-0.8.2.gem
RUN fluent-gem install fluent-plugin-record-reformer
USER ubuntu
WORKDIR /home/ubuntu

here is the result of running fluent manually from within the container

[root@manager2 fluentd]# docker run -it -v /etc/fluentd:/fluentd/etc aa/fluentdaggregator bash
root@fe45fdebaed2:/home/ubuntu# fluent-gem install fluent-plugin-elasticsearch
Successfully installed fluent-plugin-elasticsearch-1.7.0
Parsing documentation for fluent-plugin-elasticsearch-1.7.0
Done installing documentation for fluent-plugin-elasticsearch after 0 seconds
1 gem installed
root@fe45fdebaed2:/home/ubuntu# fluentd -c /fluentd/etc/fluent_aggregator.conf -p /fluentd/plugins
2016-10-18 04:07:15 +0000 [info]: reading config file path="/fluentd/etc/fluent_aggregator.conf"
2016-10-18 04:07:15 +0000 [info]: starting fluentd-0.12.29
2016-10-18 04:07:15 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '1.7.0'
2016-10-18 04:07:15 +0000 [info]: gem 'fluent-plugin-record-reformer' version '0.8.2'
2016-10-18 04:07:15 +0000 [info]: gem 'fluentd' version '0.12.29'
2016-10-18 04:07:15 +0000 [info]: adding match pattern="*.**" type="copy"
2016-10-18 04:07:15 +0000 [error]: config error file="/fluentd/etc/fluent_aggregator.conf" error="Unknown output plugin 'elasticsearch'. Run 'gem search -rd fluent-plugin' to find plugins"
2016-10-18 04:07:15 +0000 [info]: process finished code=256
2016-10-18 04:07:15 +0000 [warn]: process died within 1 second. exit.
root@fe45fdebaed2:/home/ubuntu#

I think this is a permission issue because the gems are installed while being the root user.
If I try to install it while being the ubuntu user I do not have the permission to install the gem.

How can I install plugin with the ubuntu image please?
I found it very difficult to work with

from fluentd-docker-image.

rolele avatar rolele commented on September 26, 2024

here is the stack when I try to install the gem plugins as the ubuntu user

[root@manager2 fluentd]# docker build -t aa/fluentdaggregator .
Sending build context to Docker daemon 179.7 kB
Step 1 : FROM fluent/fluentd:ubuntu-base
# Executing 2 build triggers...
Step 1 : COPY fluent.conf /fluentd/etc/
 ---> Using cache
Step 1 : COPY plugins /fluentd/plugins/
 ---> Using cache
 ---> f520160b942a
Step 2 : WORKDIR /fluentd/plugins/fluent-plugin-elasticsearch-master
 ---> Using cache
 ---> 94fd8bd916a1
Step 3 : RUN gem build fluent-plugin-elasticsearch.gemspec
 ---> Running in 6b874c5f157d
fatal: Not a git repository (or any of the parent directories): .git
WARNING:  description and summary are identical
WARNING:  open-ended dependency on fluentd (>= 0.10.43) is not recommended
  if fluentd is semantically versioned, use:
    add_runtime_dependency 'fluentd', '~> 0.10', '>= 0.10.43'
WARNING:  open-ended dependency on excon (>= 0) is not recommended
  if excon is semantically versioned, use:
    add_runtime_dependency 'excon', '~> 0'
WARNING:  open-ended dependency on rake (>= 0, development) is not recommended
  if rake is semantically versioned, use:
    add_development_dependency 'rake', '~> 0'
WARNING:  pessimistic dependency on test-unit (~> 3.1.0, development) may be overly strict
  if test-unit is semantically versioned, use:
    add_development_dependency 'test-unit', '~> 3.1', '>= 3.1.0'
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - fluent-plugin-elasticsearch-1.7.0.gem
The command '/bin/sh -c gem build fluent-plugin-elasticsearch.gemspec' returned a non-zero code: 1
[root@manager2 fluentd]#

from fluentd-docker-image.

kenhys avatar kenhys commented on September 26, 2024

It seems that it is about stale image, so I'll close it.

from fluentd-docker-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.