Rest Container
To design and compile ITX maps to be run by the Rest container, ITX Design Studio, or ITX Design Server must be used. The compiled maps then must be saved to the volume, or a host directory, bound to the /data/maps location in the container file system.
Configuration files are located (relative to the map location) with the default output file location for the container file system defined. The map ccx12 input card ConfigInfo should be modified to use the x12rsconfig.xml file or the x12fullconfig.xml file. After modification of the map, deploy the package to the container file system.
The FileDirectory defined in the x12 configuration file should point to the container file system and mount location.
With container mount location /home/tx-rest/data and package name x12Compliance.
/home/tx-rest/data/maps/x12Compliance/compliance/data/x12rsconfig.xml
<FileOutput>
<!-- This section will send output to files. Reference file x12rsconfig.sh -->
<FileDirectory>/data/data/x12Compliance</FileDirectory>
</FileOutput>
The compliance check output folder structure must also be defined for the container file system and mount location /data/data.
A script file is located (relative to the map location) with the container package deployment to the rest container depending on the server definition in Design Server for deployment.
With container mount location /home/tx-rest/data
/home/tx-rest/data/maps/x12Compliance/compliance/data/x12rsconfig.sh
mkdir -p /home//tx-rest/data/x12Compliance/x12/reject
mkdir -p /home//tx-rest/data/x12Compliance/fa/inbound
mkdir -p /home//tx-rest/data/x12Compliance/fa/outbound
mkdir -p /home//tx-rest/data/x12Compliance/ta1/inbound
mkdir -p /home//tx-rest/data/x12Compliance/ta1/outbound
After deploying the package and modifications restart the container.
Please review the container documentation for more information.