- Install Docker (or any other Container tool).
- Create an account at https://hub.docker.com/ (or any other Container Image Library).
- Create a SendGrid account for sending emails.
- Get a Free Account on SAP BTP Trial.
- Enable SAP BTP, Kyma Runtime.
- Download and install the Kubernetes Command Line Tool.
- Test the kubectl installation.
- Download the Kyma runtime kubeconfig.
-
Build the docker image of the commerce-mock microservice.
-
cd cx-commerce-order-event-handler/commerce-mock
-
docker build . -t
<docker-username>
/commerce-mock -f Dockerfile
Note: Replace
<docker-username>
with your username -
-
Push the docker image of the commerce-mock microservice to your Container Image Library.
- docker push
<docker-username>
/commerce-mock
Note: Replace
<docker-username>
with your username - docker push
-
Update the docker image in the ./commerce-mock/deployment/k8s.yaml file.
Note: Replace
<docker-username>
with your username -
Create/update Kubernetes resources of the commerce-mock microservice.
- kubectl apply -f ./commerce-mock/deployment/k8s.yaml
- kubectl apply -f ./commerce-mock/deployment/kyma.yaml
-
Update the values of the
SENDGRID_API_KEY
&SENDGRID_SENDER_EMAIL
environment variables in the ./order-event-handler/k8s/function.yaml file, which can be got from your SendGrid account. -
Create/update Kubernetes resources of the order-event-handler serverless function.
- kubectl apply -f ./order-event-handler/k8s/function.yaml