Building the customizations for traditional
Complete this task to build your Order Hub customizations for traditional.
Procedure
-
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.
-
Run
chmod +x build-customization.shto add permission for the build script. -
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 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.