Data Population Container
The Self Managed Commerce Data Population tool is used to either create a new Commerce database or to update an existing Commerce database. For more information about the tool, see Data Population Overview.
The Data Population tool is run as a job; it starts, performs the required work and runs to completion then exits.
Prerequisites
The data-pop-tool
container image must be built and available. For information on building container images, see Building Container Images.
Usage
The key configuration options for this job are:
- Which command to run, as specified by environment variable
EP_DATA_POP_TOOL_CMD
. Theupdate-db
command will determine and apply only the delta of changes, while thereset-db
command will start from a clean database and apply all of the changes. Thereset-db
command is destructive and will first erase the database and any data contained within. - Which data-set to apply to a given database, as specified by environment variable
EP_COMMERCE_ENVNAME
. The valid options are the names of the folders underextensions/database/ext-data/src/main/resources/environments
in your team'sep-commerce
Git project. Your Commerce development team can confirm the correct value to use. - The database to apply the changes to, as specified by the environment variables named like
EP_DB_*
- Whether files from a separate, secure encrypted Git repository should be applied, as specified by optional environment variables named like ``EP_COMMERCE_CONFIG_*`.
Egresses
The table below describes the egress requirements for this service.
Endpoint | Purpose | Comment |
---|---|---|
Commerce JDBC endpoint | Commerce database | This service must be able to access the Commerce database. |
Git Service | Optional: inject config at start-up | The service can optionally be configured to inject config files from a secured Git project at startup time. If that is configured then the container must be able to connect to the Git project specified in environment variable EP_COMMERCE_CONFIG_REPO . For more information about secure configuration, see Injecting Commerce Configuration at Startup. |
Scaling and Replicas
The tool is run as a job and not as a service. To avoid possible data conflicts and corruption, ensure that only one instance of the container is run against a given Commerce database at a given time.
Environment Variables
The tool is configured using container environment variables. Some environment variables must be set and some are optional. The environment variables are read and consumed by the container entrypoint script.
For a list of the supported environment variables, see the README file for your release of the containerization tools. The README for the latest release is available here.