Open Efficiency Platform to connect SEED Platform to Salesforce
3.5K
Docker is the preferred method for deploying the SEED Benchmark use case with MuleSoft. The Dockerfile installs MuleSoft and configures the OEI application for use. The user must follow the configuration instructions below to ensure the system works as expected.
To develop and test locally the following dependency stack is recommended.
The configuration is setup entirely with environment variables to enable easy deployment of multiple instances of MuleSoft. The OEP docker container expects the following environment variables to be set:
0 0/60 * ? * * *0 0/1 * ? * * *01236000000SWE1AAO.true or false. If true then the following must be specified:
smtp.gmail.com).If the environment variables are not set inside the containter, then the application will report an error and fail to launch.
To test the setup locally, it is recommended to user docker-compose; however, it is possible to use docker if all the environment variables are passed. The issue with using docker instead of docker-compose is that the list of environment variables is long and may be difficult to manage when executing from the command line. Executing using docker-compose allows the user to easily see and edit the variables as needed.
It is not recommended to use docker by itself for deployment, however, it is effective for testing and building the container if needed. Note that using docker-compose will also allow fallback on default values as needed. Using the docker command line will require specifying all of the environment variables.
# Assuming no SMTP
docker run -it --rm -e SEED_USER='SEED_USER' \
-e SEED_APIKEY='SEED_APIKEY' \
-e SEED_PROTOCOL='SEED_PROTOCOL' \
-e SEED_URL='SEED_URL' \
-e SEED_PORT='SEED_PORT' \
-e OEP_CRON_TIMER='OEP_CRON_TIMER' \
-e SALESFORCE_URL='SALESFORCE_URL' \
-e SALESFORCE_USER='SALESFORCE_USER' \
-e SALESFORCE_PASSWORD='SALESFORCE_PASSWORD' \
-e SALESFORCE_TOKEN='SALESFORCE_TOKEN' \
-e SALESFORCE_ACCOUNT_TYPE='SALESFORCE_ACCOUNT_TYPE' \
-e SMTP_SEND_ERRORS='false' \
oei
Using Docker Compose is the preferred method for deploying OEP. The base docker-compose.yml file contains only enough information to build the containers. Make sure to follow the instructions below to configure the application entirely.
Docker-compose nicely encapsulates attached volumes, environment variables, and various other items. Docker compose also integrates will with docker swarm and docker stack deploy.
Copy over the docker-compose.yml file to a newly created and named local file (e.g. docker-compose.city-sf.yml).
Set the environment variables for the city as needed.
Build the container and launch
docker-compose -f docker-compose.city-sf.yml build
docker-compose -f docker-compose.city-sf.yml up
Note that multiple cities can be configured in the docker-compose file such as
# Using Docker Hub Image with Multiple Cities
services:
oep-city-1:
build: .
image: seedplatform/oep
environment:
- [email protected]
- SEED_APIKEY
- SEED_PROTOCOL=HTTPS
- SEED_URL
- SEED_PORT
- OEP_CRON_TIMER=0 0/60 * ? * * *
- SALESFORCE_URL=https://test.salesforce.com/services/Soap/u/37.0
- SALESFORCE_USER
- SALESFORCE_PASSWORD
- SALESFORCE_TOKEN
- SALESFORCE_ACCOUNT_TYPE=01236000000SWE1AAO
- SMTP_SEND_ERRORS=false
- SMTP_SUBJECT=Error log for SEED to Salesforce Mule process
- SMTP_USER
- SMTP_RECIPIENT
- SMTP_INTERNAL
- SMTP_SENDER
- SMTP_HOST
- SMTP_PASSWORD
- SMTP_PORT
- SMTP_SECURE
oep-city-2:
build: .
image: seedplatform/oep
environment:
- [email protected]
- SEED_APIKEY
- SEED_PROTOCOL=HTTPS
- SEED_URL
- SEED_PORT
- OEP_CRON_TIMER=0 0/60 * ? * * *
- SALESFORCE_URL=https://test.salesforce.com/services/Soap/u/37.0
- SALESFORCE_USER
- SALESFORCE_PASSWORD
- SALESFORCE_TOKEN
- SALESFORCE_ACCOUNT_TYPE=01236000000SWE1AAO
- SMTP_SEND_ERRORS=false
- SMTP_SUBJECT=Error log for SEED to Salesforce Mule process
- SMTP_USER
- SMTP_RECIPIENT
- SMTP_INTERNAL
- SMTP_SENDER
- SMTP_HOST
- SMTP_PASSWORD
- SMTP_PORT
- SMTP_SECURE
Content type
Image
Digest
sha256:54b06e424…
Size
393 MB
Last updated
almost 4 years ago
docker pull seedplatform/oep