cancel
Showing results for 
Search instead for 
Did you mean: 

How to speed up SAP Commerce Cloud build?

alemasetto
Participant
0 Kudos

Version 2205 with Spartacus, no accelerator, no Data Hub.

Currently, the build process takes 20-25 minutes (on Cloud).

How can we speed up the build process?

In build logs I see the it prepares a Data Hub image even if we don't have it, how can I prevent that behaviour? We don't have the Data Hub service at all!

Accepted Solutions (1)

Accepted Solutions (1)

safin
Advisor
Advisor
0 Kudos

Hi Alessandro,

The current build strategy is selective images rebuild, the basic thinking is as follows:

  1. The build process will check the environment to make sure any of related images exist including Solr, Zookeeper, Data Hub, JavaScript Storefront, and platform images.
  2. If any of these images doesn't exist, the build process will creates new images even thouth you don't specify/use it in your manifest.json, after all, these images will be used to construct the runtime environment for SAP Commerce Cloud.
  3. On the other hand, if these images exist and the conditions to trigger rebuilding are not met, the build process will skip these images creation and reuse them.

For your case, you just need to make sure to set disableImageReuse to false (the default value), if you have never set it to true, ignore it. Then the later build will not build Data Hub unless the first build or the rebuild conditions are met (such as version changes, etc.)

alemasetto
Participant
0 Kudos

Thanks safin .

We don't have the disableImageReuse option in our manifest so I guess it is using the default value.

What do you mean with "conditions to trigger rebuilding are not met" ?
Is it something we can control?

safin
Advisor
Advisor
0 Kudos

Hi,

In some cases, the rebuilding still happen even though the related images exist, you can refer to https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/1be46286b36a4aa48205be5a96240672/8e37fcc1b... for more details.

For your case, i guess it's because the rebuilding conditions are met as you never set disableImageReuse (the default value is false, it means selective images rebuilding will work), so later building will not build data hub if your later changes will not include the one listed in the above the link.

Furthermore, users cannot control anything but disable/enable selective images rebuilding strategy.

Hopefully, it can help you a little.

Answers (0)