Manage Self Managed Commerce Deployments
Updating the Self Managed Commerce Deployments when changes are made to the Self Managed Commerce Docker image definition
When changes are made to the Self Managed Commerce Docker image definitions, update your Self Managed Commerce deployment(s) to consume the changes by doing the following steps:
- Build new Self Managed Commerce images using the
build-commerce-images
Jenkins job to update the changes to the Self Managed Commerce Docker image definitions. - If you gave a new tag to the images built, use the new
imageTag
from thebuild-commerce-images
Jenkins job, and rerun thedeploy-or-delete-commerce-stack
Jenkins job for your existing Self Managed Commerce deployments with the newimageTag
specified.
If you did not give a new tag to the image built, use a combination of kubectl
commands and the restart-commerce-stack
Jenkins jobs to restart the Self Managed Commerce deployments to update the new version of the images. Use the following documentation to restart the Self Managed Commerce deployments.
Restarting Self Managed Commerce Deployments
Confirm the exact name of the Kubernetes namespace where your Self Managed Commerce services are running. This will be the value you specified as the
kubernetesNickname
parameter in thedeploy-or-delete-commerce-stack
Jenkins job.Run the
restart-commerce-stack
Jenkins job. Make sure to use the correct values for thekubernetesNickname
parameter. Ensure that the correct set of Self Managed Commerce services, with the correct names, is provided for the parametercontainersToRestart
.tip
All deployed Self Managed Commerce services can be restarted by specifying
all
for thecontainersToRestart
parameter. You can also use thekubectl get deploy -n ${kubernetesNickname}
command to get a list of individual Self Managed Commerce services deployed in the namespace represented by${kubernetesNickname}
. The below command should return exactly what you need to provide for thecontainersToRestart
parameter for the purposes of restarting one or more services.# IMPORTANT: Ensure that the ${kubernetesNickName} variable is set epApps=$(kubectl get deploy -n ${kubernetesNickName} -o json | jq -r '.items[].metadata | select(.labels.app | startswith("ep-")) | select (.labels.app != "ep-activemq") | select (.labels.app != "ep-mysql") | .name') echo "${epApps[@]}" | cut -c4- | rev | cut -c12- | rev
Your Self Managed Commerce deployments will be restarted. Any updated container images will be pulled and used. Any updated secrets will be consumed.