blob: 32eddb548fb33284de0dde52a304107d37381ee6 [file] [log] [blame]
== Camel MinIO Example
This example shows how to use Camel MinIO component to write and read objects in a bucket.
The example has 2 routes :
* the producer : put a file in a MinIO bucket
* the consumer : poll a MinIO bucket and Log the content of the file.
Notice how you can configure Camel in the `` file.
Don't forget to add your MinIO Credentials and the bucket name.
=== Run a MinIO instance
You need to have an instance of MinIO server running locally.
You can run it as a Docker container:
docker run \
-p 9000:9000 \
-p 9090:9090 \
-e "MINIO_ROOT_USER=xxxx" \
-e "MINIO_ROOT_PASSWORD=yyyyyyyy" \ server /data \
--console-address ":9090"
=== Build
First compile the example by executing:
$ mvn compile
=== How to run
You can run this example using
$ mvn camel:run
=== Help and contributions
If you hit any problem using Camel or have some feedback, then please[let us know].
We also love contributors, so[get involved] :-)
The Camel riders!