Modify the config.properties file
- Last Updated: March 30, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
You use the
DB_CREATE_METHOD property to specify how you want
your database to be created in your custom container image. There are four options to
build your container image:- If you want to create a database, then set the
DB_CREATE_METHODproperty tocustomDB. You must have either one of the following:- A database structure file (
.st) - A data definition file
(.df) - A
.dffile and database extents (.d) - A
.st, a.df, and.dfiles in theartifactssubdirectory
- A database structure file (
- If you want a database restored from an existing database backup file, then
set the
DB_CREATE_METHODproperty tobackupDB. To use this method, you need a database backup file with the.bckextension in theartifactssubdirectory of thebuilddirectory. Incremental backups are not supported. - If you want your database to be a copy of one of the sample databases that
are shipped with the OpenEdge database, then set the:
DB_CREATE_METHODproperty tosampleDBDB_NAMEproperty to the name you want to use for the database that will be createdSAMPLE_DB_NAMEproperty to the name of the sample database that you want to use
- If you want your database to be a copy of one of your current databases that
are in the Docker host filesystem, then:
- Set the
DB_CREATE_METHODproperty toexternalDB. - Specify the location of the existing database using the
EXTERNAL_DATABASE_PATHproperty.
Note: In order to use this method, you must have root user privileges. - Set the
In each of the four methods, you must provide:
- A custom name for the database to be created using the
DB_NAMEproperty. - The name and tag of the base database Docker container image using the
DB_DOCKER_IMAGE_NAMEand theDB_DOCKER_IMAGE_TAGproperties. The values you provide should correspond to one of the two base images. - The name and tag of the custom image that you are building using the
NEW_DB_DOCKER_IMAGE_NAMEand theNEW_DB_DOCKER_IMAGE_TAGproperties. The default values areoedb1andlatest. - The name and tag of the compatible JDK image using the
JDK_DOCKER_IMAGE_NAMEand theJDK_DOCKER_IMAGE_TAGproperties.
Finally, you can change the JDK location inside the container to a different
value by modifying the
JDK_DOCKER_IMAGE_JAVA_LOCATION
property value.Note: To use
OpenEdge database Docker container images, you must work with OpenEdge databases
that use relative paths and that do not use any absolute paths.