Creating a CHF Configuration Source
The Charging Function (CHF) configuration source template has files that can be used to create an image for configuring the CHF network
function as a docker
type configuration source.
The files in the sample-default-config directory of chf-sideloader-template-mtx_version.zip are provided by default within the various components. Use the files in the template as a starting point for creating your own configuration.
Copy the new or modified files to the custom-config
directory to define your
custom configuration. Only create subdirectories if they are expected. (They are typically not
required.) The contents of the custom-config directory are copied to the
/opt/mtx/conf directory of the target pod. Any existing files with the
same names are overwritten.
After you copy the files to the correct locations, modify the dockerfile to point to the image repository where the matrixx-sideloader image
resides. Replace the value my-docker-registry
with the host (and port, if required) of your image repository.
Run this command to create the image and upload it to your repository. Replace the values as appropriate. Give each revision of the image a new version:
docker build -t my-docker-registry:my-image:my-version .
docker push my-docker-registry:my-image:my-version
For more information about using images for configuration, see the discussion about configuration sources in MATRIXX Configuration.