Building the customizations for traditional

Complete this task to build your Order Hub customizations for traditional.

Note: This topic is applicable to the On Premises version of Order Hub only.

Procedure

  1. Prepare to deploy customizations.

    The extracted <runtime>/repository/orderhub/code/orderhub/on-prem-source.tar file contains a container-build/build-customization.sh script that builds and packages assets into a separate customization docker image.

  2. Run chmod +x build-customization.sh to add permission for the build script.
  3. Run the build-customization.sh script to package customization assets into a separate folder. The script supports the following options.
    build-ui [ui-modules]
    Builds the specified modules, such as buc-app-order.
    package-ui [ui-modules]
    Packages the specified modules.
    The optional parameter ui-modules is a comma-separated list of modules to build. The script looks for modules under the parent directory of the container-build folder. For example, buc-app-order and buc-app-inventory are modules. For a folder to be considered a module, the folder must contain a package.json file. If you do not specify ui-modules, then all folders in the parent directory of container-build are considered.

    The UI modules are built separately with their build pipeline and the output of each module build is then brought together to generate the customization folder (which can be its own build pipeline)

    Build separate modules by running the following command:
    ./build-customization.sh build-ui [ui-modules]

    The built assets are available in the dist folder, which you can upload to a central server. Then, you can package together the assets to create the customization folder.

    Create the customization folder with a separate build pipeline by running the following command:
    ./build-customization.sh package-ui [ui-modules]

    The customization folder is created in build/src.

    For example, the modules buc-app-order and buc-app-inventory are customized. The first step builds the modules. The second step creates the folder that contains the customized modules:
    ./build-customization.sh build-ui buc-app-order,buc-app-inventory
    ./build-customization.sh package-ui buc-app-order,buc-app-inventory

What to do next

Complete the following task: Deploying the customizations.