Comments (6)
How about replace fluent gem
with fluent-gem
?
It seems a typo of README...
from fluentd-docker-image.
Ah, wait. fluent
is for -u
.
Please ignore above comment.
from fluentd-docker-image.
It seems the problem is alpine linux or cdn side: gliderlabs/docker-alpine#155
from fluentd-docker-image.
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.
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.
It seems that it is about stale image, so I'll close it.
from fluentd-docker-image.
Related Issues (20)
- error=":excon is not registered on Faraday::Adapter" with v1.15.0 Docker and fluent-plugin-opensearch HOT 6
- fluent-plugin-prometheus-2.0.3 breaks with fluent/fluentd:v1.15.1-1.0 (Async version incompatibility?) HOT 2
- fluend:v1.14.4-1.0 has Security Vulnerebilities HOT 1
- Fluentd v1.15 docker image should bundle XML library gem by default HOT 2
- Fixing the logo on README.md HOT 1
- fluentd v1.15.0 image has many vulnerable packages HOT 1
- README: missing `fluentd` in providing config example HOT 2
- latest tag on DockerHub has not been updated for a long time HOT 10
- Vulnerability for fluentd:v1.16.0-1.0 HOT 8
- Dockerhub image isn't updated for 3 weeks HOT 2
- I want to run bash on startup with a Dockerfile I created, but Fulentd won't start.
- Fluentd Docker Container Overwhelmed with Plugin Error Messages HOT 1
- Feature request: Please provide a `latest-debian` tag on Docker Hub HOT 1
- Seeing critical vulnerability as part of the fluentd(v1.16.2) for zlib (CVE-2023-45853) library HOT 4
- Switch base image to 3.x-slim-bookworm
- Cannot build multi-platform image HOT 1
- docker image not published for 1.16.4 release HOT 1
- Segmentation fault after updating from version 1.16.3 to 1.16.4 HOT 17
- v1.17 images missing HOT 2
- RESOLVED: Workaround: disable jemalloc when image crashed (segmentation fault) with systemd plugin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentd-docker-image.