Build the mongodb-sharded docker image (Refer Appendix B)
Push to Dockerhub or private repository (Refer Appendix B)
Step 4:
In the already cloned repository of “containers”, we will now build “bitnami-shell”
cd containers/bitnami/bitnami-shell/11/debian-11
vim Dockerfile
Update Line 14: OS_ARCH="${TARGETARCH:-amd64}" \ 🡪 OS_ARCH="${TARGETARCH:-arm64}" \
Save the changes
Build the bitnami-shell docker image (Refer Appendix B)
Push to Dockerhub or private repository (Refer Appendix B)
Step 5:
In the already cloned repository of bitnami “containers”, we will now build “mongodb-exporter”. This package is originally from github repository “percona” and forked by “bitnami”
cd containers/bitnami/mongodb-exporter/0/debian-11
vim Dockerfile
Update Line 14: OS_ARCH="${TARGETARCH:-amd64}" \ 🡪 OS_ARCH="${TARGETARCH:-arm64}" \
Build the mongodb-exporter docker image (Refer Appendix B)
Push to Dockerhub or private repository (Refer Appendix B)
Step 6:
Modify the mongodb-sharded helm chart, tar the package and copy to DeathStarBench
cd charts/bitnami/mongodb-sharded
vim values.yaml
Modify following lines (Use your Dockerhub username instead of anuphal. Please note that line numbers may differ in latest updates in Github repository):
Line 77: repository: anuphal/mongodb-sharded
Line 78: tag: latest
Line 244: repository: anuphal/bitnami-shell
Line 245: tag: latest
Line 475-479: enabled: false (This is for persistence.enabled=True)
Line 1245: enabled: false (This is for persistence.enabled=True)
Line 1539: repository: anuphal/mongodb-exporter
Line 1540: tag: latest
cd ..
tar czvf mongodb-sharded-6.0.1.tgz mongodb-sharded/
git clone https://github.com/delimitrou/DeathStarBench.git
#If an older version of mongodb-sharded-x.y.z.tgz already exists in the charts directory, #then please delete it and keep the new tgz in its placemv mongodb-sharded-6.0.1.tgz DeathStarBench/socialNetwork/helm-chart/socialnetwork/charts/