- 
                Notifications
    
You must be signed in to change notification settings  - Fork 42
 
V3.0.2 #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    V3.0.2 #46
Changes from all commits
      Commits
    
    
            Show all changes
          
          
            11 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      b8164a9
              
                Enable log collection for PersistentVolume and PersistentVolumeClaim
              
              
                naga-barri 0036240
              
                Multi process worker support - final set of changes
              
              
                santhoshkvuda 8472f82
              
                Updates to custom docker image instruction
              
              
                santhoshkvuda 6a55ecf
              
                Merge branch 'main' into v3.0.2
              
              
                santhoshkvuda a078aef
              
                Merge branch 'main' into multiProcessWorker_support
              
              
                santhoshkvuda 2b19c7b
              
                Merge branch 'multiProcessWorker_support' into v3.0.2
              
              
                santhoshkvuda a0c5859
              
                V3.0.2 changelog, charts version changes
              
              
                santhoshkvuda 70479c7
              
                Merge branch 'nbarri/pv_pvc' of https://github.com/oracle-quickstart/…
              
              
                naga-barri c670c05
              
                minor change for logs configmap template
              
              
                santhoshkvuda 4943df5
              
                add oci_images.tf; update dashboard import instructions
              
              
                paliwalparitosh c60810a
              
                review comments, pull in change from PR#39
              
              
                santhoshkvuda File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              Large diffs are not rendered by default.
      
      Oops, something went wrong.
      
    
  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| # Copyright (c) 2023, Oracle and/or its affiliates. | ||
| # Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
| 
     | 
||
| ### Build the docker image using multi-stage build | ||
| 
     | 
||
| ## To build/install all the dependencies | ||
| 
     | 
||
| FROM container-registry.oracle.com/os/oraclelinux:8-slim AS builder | ||
| 
     | 
||
| USER root | ||
| WORKDIR /fluentd | ||
| 
     | 
||
| # Environment variables | ||
| ENV PATH /fluentd/vendor/bundle/ruby/2.7.0/bin:$PATH | ||
| ENV GEM_PATH /fluentd/vendor/bundle/ruby/2.7.0:$GEM_PATH | ||
| ENV GEM_HOME /fluentd/vendor/bundle/ruby/2.7.0 | ||
| # skip runtime bundler installation | ||
| ENV FLUENTD_DISABLE_BUNDLER_INJECTION 1 | ||
| 
     | 
||
| COPY Gemfile* /fluentd/ | ||
| 
     | 
||
| # Install ruby, ruby-libs along with rubygems and bundler. | ||
| RUN microdnf -y module enable ruby:2.7 \ | ||
| # Install ruby (it's dependencies gdbm-libs) and ruby-libs, disabling week dependencies | ||
| && microdnf -y install --setopt=install_weak_deps=0 --nodocs ruby-2.7.6 ruby-libs-2.7.6 gdbm-libs \ | ||
| # Install rubygems (it's dependencies rubygem-openssl rubygem-psych), disabling week dependencies | ||
| && microdnf -y install --setopt=install_weak_deps=0 --nodocs rubygems-3.1.6 \ | ||
| && gem install bundler -v 2.3.25 \ | ||
| # Install development dependent packages for gems native installation | ||
| && microdnf -y install --nodocs gcc make redhat-rpm-config openssl ruby-devel gcc-c++ libtool libffi-devel bzip2 git \ | ||
| # Install Fluentd, it's dependencies along with other run time dependencies for OCI Logging Analytics Solution | ||
| && bundle config silence_root_warning true \ | ||
| && bundle config --local path /fluentd/vendor/bundle \ | ||
| && bundle config --global jobs 9 \ | ||
| && bundle install --gemfile=/fluentd/Gemfile \ | ||
| # Install tini, init for containers (from EPEL repo) | ||
| && microdnf -y install oracle-epel-release-el8 \ | ||
| && microdnf -y install tini-0.19.0 \ | ||
| # Install jemalloc (custom make with no docs) | ||
| && cd /tmp && ls /tmp \ | ||
| && git clone -b 5.3.0 https://github.com/jemalloc/jemalloc.git && cd jemalloc/ \ | ||
| && ./autogen.sh && make && make install_bin install_include install_lib \ | ||
| && mv lib/libjemalloc.so.2 /usr/lib | ||
| 
     | 
||
| ## To build the final docker image | ||
| 
     | 
||
| FROM container-registry.oracle.com/os/oraclelinux:8-slim | ||
| 
     | 
||
| USER root | ||
| WORKDIR /fluentd | ||
| 
     | 
||
| # Environment variables | ||
| ENV PATH /fluentd/vendor/bundle/ruby/2.7.0/bin:$PATH | ||
| ENV GEM_PATH /fluentd/vendor/bundle/ruby/2.7.0:$GEM_PATH | ||
| ENV GEM_HOME /fluentd/vendor/bundle/ruby/2.7.0 | ||
| # skip runtime bundler installation | ||
| ENV FLUENTD_DISABLE_BUNDLER_INJECTION 1 | ||
| 
     | 
||
| # Install ruby, ruby-libs along with rubygems and bundler. | ||
| RUN microdnf -y module enable ruby:2.7 \ | ||
| # Install ruby (it's dependencies gdbm-libs) and ruby-libs, disabling week dependencies | ||
| && microdnf -y install --setopt=install_weak_deps=0 --nodocs ruby-2.7.6 ruby-libs-2.7.6 gdbm-libs \ | ||
| # Install rubygems (it's dependencies rubygem-openssl rubygem-psych), disabling week dependencies | ||
| && microdnf -y install --setopt=install_weak_deps=0 --nodocs rubygems-3.1.6 \ | ||
| && gem install bundler -v 2.3.25 \ | ||
| && bundle config --local path /fluentd/vendor/bundle \ | ||
| # clear caches | ||
| && microdnf clean all \ | ||
| && rm -rf /var/cache/dnf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem | ||
| 
     | 
||
| # Copy binaries (tini & jemallco) and rubygems bundler environment from build stage | ||
| COPY --from=builder /fluentd /fluentd | ||
| COPY --from=builder /usr/bin/tini /usr/bin/tini | ||
| COPY --from=builder /usr/lib/libjemalloc.so.2 /usr/lib/libjemalloc.so.2 | ||
| 
     | 
||
| RUN mkdir -p /fluentd/etc /fluentd/plugins \ | ||
| && touch /fluentd/etc/disable.conf | ||
| 
     | 
||
| # Environment variables | ||
| ENV FLUENTD_CONF="/fluentd/etc/fluent.conf" | ||
| ENV LD_PRELOAD="/usr/lib/libjemalloc.so.2" | ||
| 
     | 
||
| COPY entrypoint.sh /fluentd/entrypoint.sh | ||
| # Give execution permission to entrypoint.sh | ||
| RUN ["chmod", "+x", "/fluentd/entrypoint.sh"] | ||
| 
     | 
||
| # Overwrite ENTRYPOINT to run fluentd as root for /var/log / /var/lib | ||
| ENTRYPOINT ["tini", "--", "/fluentd/entrypoint.sh"] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Copyright (c) 2023, Oracle and/or its affiliates. | ||
| # Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
| 
     | 
||
| source "https://rubygems.org" | ||
| 
     | 
||
| gem "oj", "3.14.1" | ||
| gem "json", "2.6.3" | ||
| gem "ext_monitor", "0.1.2" | ||
| gem "fluentd", "1.15.3" | ||
| gem "fluent-plugin-oci-logging-analytics", "2.0.5" | ||
| gem "fluent-plugin-concat", "~> 2.5.0" | ||
| gem "fluent-plugin-rewrite-tag-filter", "~> 2.4.0" | ||
| gem "fluent-plugin-parser-cri", "~> 0.1.1" | ||
| gem "fluent-plugin-kubernetes_metadata_filter", "2.13.0" | ||
| gem "fluent-plugin-kubernetes-objects", "1.2.1" | 
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.