ChrisSamo632 commented on pull request #4822:
URL: https://github.com/apache/nifi/pull/4822#issuecomment-790017429


   > Hi ! I'm interested in testing this out.
   > I currently run Apache Nifi using the base Docker images. How can I 
proceed to include the Kinesis Get Processor into my images?
   > Thanks ! Hope I can help!
   
   @auyer I think you'd need to download the source from my branch, [build it 
locally](https://github.com/apache/nifi#getting-started) and then copy the new 
NARs into your image in the `lib/` folder (overwrite the existing AWS NARs) - 
you can probably build just the AWS NARs (rather than the whole of NiFi) to 
speed up the process... if you build the whole of NiFi, you might as well just 
run the compiled version natively rather than using the Docker Image.
   
   So, something like:
   ```bash
   # clone the code
   git clone https://github.com/ChrisSamo632/nifi.git
   git checkout NIFI-2892
   
   # build the code
   cd nifi/nifi-nar-bundles/nifi-aws-bundle
   mvn -T 2.0C clean install
   
   # get the NARs
   find . -name "*.nar" -exec {} /tmp
   ```
   
   Copy these into a custom Docker Image with something like the following:
   ```dockerfile
   FROM apache/nifi:1.13.0
   
   RUN rm lib/nifi-aws*.nar
   
   COPY [ "*.nar", "lib/" ]
   ```
   
   Then run the custom image in the way you normally would.
   
   Note that I've not tested the above, so you may need to correct the 
instructions as you go - when developing NiFi, I just build from source and run 
natively, I've not got to the point of trying to copy the into a Docker 
container yet although that is how I run NiFi normally.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to