Skip to content

Installing PrestaShop SUT (System Under Test) on Kubernetes

Status: DRAFT
Comments: Could this guide be moved to TEST section? Where is it more relevant?

Make sure you have installed metallb first.. Check kubernetes material...

helm install my-release oci://registry-1.docker.io/bitnamicharts/prestashop

Instead of install message you have to force real IP address for service (CSC IP)

export APP_HOST=86.51.223.160

Rest of commands can be executed without problems

export APP_PASSWORD=$(kubectl get secret --namespace default my-release-prestashop -o jsonpath="{.data.prestashop-password}" | base64 -d)
export DATABASE_ROOT_PASSWORD=$(kubectl get secret --namespace default my-release-mariadb -o jsonpath="{.data.mariadb-root-password}" | base64 -d)
export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace default my-release-mariadb -o jsonpath="{.data.mariadb-password}" | base64 -d)

Next thing is add also prestashop service container with needed parameters

helm upgrade --namespace default new-presta-v3 oci://registry-1.docker.io/bitnamicharts/prestashop \
    --set prestashopHost=$APP_HOST,prestashopPassword=$APP_PASSWORD,mariadb.auth.rootPassword=$DATABASE_ROOT_PASSWORD,mariadb.auth.password=$APP_DATABASE_PASSWORD

You should now see message like:

** Please be patient while the chart is being deployed **1. Get the PrestaShop URL by running:

  echo "Store URL: http://86.51.223.160/"
  echo "Admin URL: http://86.51.223.160/administration"

2. Get your PrestaShop login credentials by running:

  echo Admin Email   : user@example.com
  echo Admin Username: user@example.com
  echo Admin Password: $(kubectl get secret --namespace default new-presta-v3-prestashop -o jsonpath="{.data.prestashop-password}" | base64 -d)

PrestaShop Base Image#

https://github.com/PrestaShop/docker/blob/master/base/images/8.0-apache/Dockerfile

PrestaShop Releases#

https://github.com/PrestaShop/PrestaShop/releases