|
| 1 | +# boomi-pravega-connector |
| 2 | +A Pravega connector for the [Boomi Atomsphere](https://boomi.com/platform/integration/applications/) |
| 3 | + |
| 4 | +## Pre-requisites |
| 5 | + - **Accounts** |
| 6 | + - A boomi platform account |
| 7 | + - **Tools** |
| 8 | + - Java 11 |
| 9 | + - An SDP installation |
| 10 | + - kubectl client configured to access the SDP cluster |
| 11 | + - A docker installation for running boomi Atoms |
| 12 | + |
| 13 | + |
| 14 | +## Steps to configure Boomi Platform |
| 15 | +1. Create a boomi platform account and save the credentials |
| 16 | +2. Create a boomi environment on your boomi account. This environment will be used to test processes using the connector. |
| 17 | +3. Create a local boomi Atom using the official boomi Atom docker image. Use the following command to create a boomi Atom running inside docker |
| 18 | + - ```sh |
| 19 | + docker run --privileged -p 9090:9090 -h localhost -e BOOMI_USERNAME=<your-boomi-account-username> -e BOOMI_PASSWORD=<your-boomi-account-password> -e BOOMI_ACCOUNTID=<your-boomi-accountID> -e BOOMI_ATOMNAME="Pravega Boomi Atom" -e ATOM_LOCALHOSTID="Pravega Boomi Atom ID" -v /opt/boomi:/run:Z --rm -it boomi/atom:3.2.12 |
| 20 | + ``` |
| 21 | + - This will run a local boomi Atom docker container on your machine |
| 22 | +4. On the boomi environments page, you should see a running boomi Atom named 'Pravega Boomi Atom' in the list of 'Unattached Atoms'. Click on the atom and attach it to the environment created earlier. |
| 23 | + |
| 24 | +***Note:** Since SDP uses self-signed certificates across the installation, your local boomi Atom may not be able to connect to SDP Pravega. Either use valid a set of certificates or create a custom boomi Atom docker image with the mounted self-signed certificates. Refer to the [documentation](#create-a-custom-docker-image) on steps to generate a docker image.* |
| 25 | + |
| 26 | +## Steps to create and upload a custom boomi connector to boomi platform |
| 27 | +- Please refer to the section 'Create a Custom Connector' under the [boomi connector](../README.md) |
| 28 | + |
| 29 | + |
| 30 | +## Steps to get details from SDP cluster to connect with boomi Platform |
| 31 | +- Create a project named `boomi` |
| 32 | +- Fetch SDP Pravega Endpoint |
| 33 | + - ```shell |
| 34 | + kubectl get ingress -n nautilus-pravega pravega-controller |
| 35 | + ``` |
| 36 | + - Output of the above command should give you a URL pointing to the pravega-controller |
| 37 | +- Fetch SDP Pravega Keycloak OIDC (Keycloak JSON) |
| 38 | + - ```shell |
| 39 | + kubectl get secrets -n boomi boomi-ext-pravega -o jsonpath='{.data.keycloak\.json}' | base64 -d |
| 40 | + ``` |
| 41 | + - The output of the above command to be used as the value for `Keycloak OIDC` in the boomi connector |
| 42 | + |
| 43 | +## Steps to create process on boomi platform |
| 44 | +- Please refer to the [Getting Started Guide](Pravega%20Connector%20Getting%20Started%20Guide.md) for creating process on Boomi with boomi-pravega-connectors |
| 45 | + |
| 46 | +## Create a custom docker image with self-signed certificates |
| 47 | +- Obtain the certificates you want to add to the Linux/JVM trust store |
| 48 | +- Place the certificates in the directory `/usr/share/ca-certificates` |
| 49 | +- Run `dpkg-reconfigure ca-certificates` (This may require you to have admin privileges) |
| 50 | +- Select the certificates you want to import |
| 51 | +- Once finished, the command will update the system-wide ca-bundle located at `/etc/ssl/certs/ca-bundle.crt` |
| 52 | +- Copy the ca-bundle to the same directory as your Dockerfile |
| 53 | +- Add the ca-bundle to your Dockerfile and move it to `/etc/ssl/certs/ca-bundle.crt` |
| 54 | + - ```shell |
| 55 | + COPY ca-bundle.crt . |
| 56 | + RUN mv ca-bundle.crt /etc/ssl/certs/ca-bundle.crt |
| 57 | + ``` |
| 58 | +- To update the JVM trust store, add the following command to your Dockerfile, this will update the java keystore in your docker image with the certificates provided |
| 59 | + - ```shell |
| 60 | + RUN keytool -importcert -keystore /usr/java/latest/lib/security/cacerts -storepass changeit -noprompt -trustcacerts -file /etc/ssl/certs/ca-bundle.crt |
| 61 | + ``` |
| 62 | +- Build the docker image! |
0 commit comments