Skip to main content
Version: 3.7.x

Update CloudOps for Kubernetes Container Images

It is best practice to rebuild all images regularly so that OS patches are applied. Additionally, images must be updated when there are changes to the software stack used by the application.

note

Self Managed Commerce third-party stack dependencies are defined in a file named ops-spec.json. For more information about the ops-spec.json file, see Operations Specification.

The following types of stack changes require rebuilding images:

  • Java
  • Maven
  • ActiveMQ
  • Application Server (Apache Tomcat)

Additional steps are required to consume the changes.

Updating the Maven Agent Image

If there are changes to the Java or Maven configurations, or you want to rebuild the Maven agent image to update any of the installed tools such as the AWS cli or kubectl, run the build-jenkins-agents Jenkins job.

Updating the Self Managed Commerce Application Images

If there are changes to the Java configuration, the Tomcat, amazonlinux-java or any of the application images, you can run one Jenkins job that selectively builds all of these images. The latest changes to the application images can be found in the Changelog of the Elastic Path CloudOps Docker repository. If you are updating the application images to include changes from Self Managed Commerce, you must build the deployment package first.

  1. (Optional) Run the build-deployment-package Jenkins job. Ensure that the epCommerceBranch job parameter is set to the branch with the desired changes.
  2. Run the build-selected-docker-images Jenkins job. Select the buildBase checkbox and confirm that all the Self Managed Commerce application images are selected. Use a unique and relevant value in the imageTag parameter.

Updating the ActiveMQ Image

If you want to update the ActiveMQ image, follow the steps below:

  1. Run the build-activemq Jenkins job. Use a unique and relevant value in the imageTag parameter.
  2. Rerun the create-or-delete-activemq-container Jenkins job for your existing Self Managed Commerce deployments with the new imageTag specified.

Updating the Self Managed Commerce Deployments

You may want to update any existing Self Managed Commerce deployments with your new, updated images. For more information on how to update your deployments, see Updating the Self Managed Commerce Deployments when changes are made to the Self Managed Commerce Docker image definition