- 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 c4c-mock microservice.
-
cd cx-c4c-ticket-event-handler/c4c-mock
-
docker build . -t
<docker-username>
/c4c-mock -f Dockerfile
Note: Replace
<docker-username>
with your username -
-
Push the docker image of the c4c-mock microservice to your Container Image Library.
- docker push
<docker-username>
/c4c-mock
Note: Replace
<docker-username>
with your username - docker push
-
Update the docker image in the ./c4c-mock/deployment/k8s.yaml file.
Note: Replace
<docker-username>
with your username -
Create/update Kubernetes resources of the c4c-mock microservice.
- kubectl apply -f ./c4c-mock/deployment/k8s.yaml
- kubectl apply -f ./c4c-mock/deployment/kyma.yaml
-
Update the values of the
SENDGRID_API_KEY
&SENDGRID_SENDER_EMAIL
environment variables in the ./ticket-event-handler/k8s/function.yaml file, which can be got from your SendGrid account. -
Create/update Kubernetes resources of the ticket-event-handler serverless function.
- kubectl apply -f ./ticket-event-handler/k8s/function.yaml