Requirements:
Step 1: Build memcached image from bitnami for arm64
git clone https://github.com/bitnami/containers.git cd containers/bitnami/memcached/1/debian-11 vim Dockerfile
Update the Dockerfile:
Build Dockerfile (Refer Appendix B)
Push to Dockerhub (Refer Appendix B)
Step 2: Build memcached-exporter image from bitnami for arm64
Clone the bitnami containers repository from GitHub: Let’s build from here and open Dockerfile for editing.
Update the Dockerfile:
Build from Dockerfile and push image to Docker Hub (Refer Appendix B)
Step 3: (Build kubectl container from bitnami/containers
Clone the bitnami containers repository from GitHub: Let’s build from here and open “containers/bitnami/kubectl/1.25/Debian-11/Dockerfile” for editing.
Update the Dockerfile:
Build from Dockerfile and push image to Docker Hub (Refer Appendix B)
Step 4: Build mcrouter container from facebook/mcrouter
Step 5: Make changes to mcrouter charts
cd DeathStarBench/socialNetwork/helm-chart/socialnetwork/charts/ tar xf mcrouter-0.3.0.tgz vim mcrouter/values.yaml
Update Line 2:
Search and replace v1beta1 with v1 in the mcrouter folder. v1beta1 is deprecated since v1.16
Modify configmap.yaml
vim mcrouter/templates/configmap.yaml
Step 6: Make changes to mcrouter chart
vim DeathStarBench/socialNetwork/helm-chart/socialnetwork/charts/mcrouter/charts/memcached/values.yaml
Clone the bitnami charts repository from GitHub
Open “charts/bitnami/memcached/values.yaml” for editing
Go back to “charts/bitnami”
cd charts/bitnami/ tar czvf mcrouter-0.3.0.tgz mcrouter/ cd DeathStarBench/socialNetwork/helm-chart/socialnetwork/charts/ rm -rf mcrouter-0.3.0.tgz file
mv charts/bitnami/mcrouter-0.3.0.tgz .
Step 7: Make changes to mcrouter hooks template
vim DeathStarBench/socialNetwork/helm-chart/socialnetwork/templates/hooks/mcrouter/post-install-hook.yaml