IBM Sterling Connect:Direct: Configuring C:D to use Minio S3 Storage

From Wiki

Here we provided the steps to setup Connect:Direct to use Minio as S3 Storage.

Important:

  • Confirm that you have connectivity to Minio site or service.


Create Crendentials file

Change to node configuration directory

cd /opt/cdunix/ndm/cfg/<NODENAME>

Create file minio_credentials as follow:

[default]
aws_access_key_id = A...2
aws_secret_access_key = 1M...ZW

Save and Close the file

Configure initparm.cfg

I running Minio using http and a different port, a will show how to setup this.

Edit initparm.cfg and add these parameters:

# Minio S3 IO Exit parameters
file.ioexit:\
:name=minio:\
:library=/opt/cdunix/ndm/lib/libcdjnibridge.so:\
:home.dir=/opt/cdunix/ndm/ioexit-plugins/s3:\
:options=-Xmx640m \
 -Ds3.region=us-east-1 -Ds3.endPointUrl=<IP address of Minio> -Ds3.endPointPort=9000 -Ds3.endPointSecure=NO \
 -Ds3.profilePath=/opt/cdunix/ndm/cfg/<NODENAME>/minio_credentials \
 -Dcom.ibm.tools.attach.enable=no \
 -Djava.class.path=/opt/cdunix/ndm/ioexit-plugins/s3/cd-s3-ioexit.jar com.aricent.ibm.mft.connectdirect.s3ioexit.S3IOExitFactory

Save and Close.

Put a file in Minio Bucket

CD1toMINIO process
   snode=<NODENAME>

step01 copy
   from
       (
       file = /opt/cdunix/ndm/cfg/msgfile.cfg
       )
   to
       (
       file = minio://<BUCKET NAME>/demo2.txt
       disp = rpl
       )
pend;

Get a file from Minio Bucket

CD1fromS3 process
   snode=<NODENAME>

step01 copy
   from
       (
       file = minio://<BUCKET NAME>/Report.pdf
       )
   to
       (
       file = /home/appuser/Report.pdf
       disp = rpl
       )
pend;

Ver também