-
Go to the nextjs-app-with-kyma-eventing/registrations-rest-api folder.
cd registrations-rest-api
-
Download the PEM file and place it within the
/registrations-rest-api
folder. The certificate (DigiCertGlobalRootCA.crt.pem) can be downloaded in 'pem-format' from digicert. Here is the direct link to download the file.Note: After downloading the file, rename it to DigiCertGlobalRootCA.pem
Please see SAP Help. The certificate is signed by 'DigiCert Global Root CA' with a certificate thumbprint (SHA1): A8:98:5D:3A:65:E5:E5:C4:B2:D7:D6:6D:40:C6:DD:2F:B1:9C:54:36
-
Build the docker image of the registrations-rest-api microservice.
docker build . -t <docker-username>/registrations-rest-api -f Dockerfile
Note: Replace
<docker-username>
with your username -
Push the docker image of the registrations-rest-api microservice to your Container Image Library.
docker push <docker-username>/registrations-rest-api
Note: Replace
<docker-username>
with your username -
Update the docker image in the ./registrations-rest-api/k8s/deployment.yaml file.
Note: Replace
<docker-username>
with your username -
Update the values of the
HANA_DB_USER
,HANA_DB_PASSWORD
,HANA_DB_HOST
&HANA_DB_PORT
environment variables in the ./registrations-rest-api/k8s/secret.yaml file.The host and port can be got from the SAP HANA Cloud screen of your subaccount in the BTP cockpit (Cloud Foundry > Spaces > dev > SAP HANA Cloud > tech-conference-db > Actions > Copy SQL Endpoint).
-
Go back to the parent folder (i.e. nextjs-app-with-kyma-eventing folder).
cd ..
-
Create/update Kubernetes resources of the registrations-rest-api microservice.
kubectl apply -f ./registrations-rest-api/k8s/secret.yaml kubectl apply -f ./registrations-rest-api/k8s/deployment.yaml kubectl apply -f ./registrations-rest-api/k8s/service.yaml
-
Verify that the secret, deployment and service were created by going to the specific screens in the Kyma console.
🏠 |
---|