@@ -74,7 +74,7 @@ the volume).
74
74
75
75
In the case you wish to set some specific configuration parameters in the global Silverpeas
76
76
configuration file ` config.properties ` , set them into a ` custom_config.properties ` configuration
77
- file on the host and then map to it a ` /opt/silverpeas/configuration/custom_config.properties ` file
77
+ file on the host and then map it to a ` /opt/silverpeas/configuration/custom_config.properties ` file
78
78
in the container.
79
79
For example, to set the SMTP properties to receive email notifications, you add them into a
80
80
` custom_config.properties ` file (for our example, in your home ` /home/me ` ):
@@ -96,6 +96,39 @@ then you map it to the container:
96
96
The custom configuration file will be then parsed to add each parameters into the global Silverpeas
97
97
configuration file.
98
98
99
+ ### Custom Silverpeas settings
100
+
101
+ The Silverpeas core engines as well as the Silverpeas applications can be customized by their
102
+ settings in the ` /opt/silverpeas/properties ` directory. For historical reason, the customization of
103
+ such settings are performed by an XML script ` CustomerSettings.xml ` that follows the syntax of the
104
+ main ` 00-SilverpeasSettings.xml ` script in ` /opt/silverpeas/configuration/silverpeas ` directory. If
105
+ you wish to customize some of the Silverpeas settings, you can do it through either a
106
+ ` CustomSettings.xml ` file or a ` CustomerSettings.xml ` file and then map it to the same file in the
107
+ ` /opt/silverpeas/configuration/silverpeas/ ` directory in the container.
108
+ For example, to set weaker rules for passwords, you can set them into such an XML file (located for
109
+ example in your home ` /home/me ` ):
110
+
111
+ <?xml version="1.0" encoding="UTF-8"?>
112
+ <silverpeas-settings product="custom">
113
+ <fileset root="${SILVERPEAS_HOME}/properties/org/silverpeas">
114
+ <configfile name="password/settings/password.properties">
115
+ <parameter key="password.rule.minLength">4</parameter>
116
+ <parameter key="password.rule.blankForbidden">false</parameter>
117
+ <parameter key="password.rule.sequentialForbidden">false</parameter>
118
+ <parameter key="password.rule.atLeastXUppercase">false</parameter>
119
+ <parameter key="password.rule.atLeastXLowercase">false</parameter>
120
+ <parameter key="password.rule.atLeastXDigit">false</parameter>
121
+ <parameter key="password.rule.atLeastXSpecialChar">false</parameter>
122
+ </configfile>
123
+ </fileset>
124
+ </silverpeas-settings>
125
+
126
+ then you map it to the container:
127
+
128
+ $ docker run --name silverpeas-test -p 8080:8000 -d \
129
+ -v /home/me/CustomSettings.xml:/opt/silverpeas/configuration/silverpeas/CustomSettings.xml \
130
+ silverpeas/silverpeas-test
131
+
99
132
## Logs
100
133
101
134
You can follow the activity of Silverpeas by watching the logs generated in the mounted
@@ -106,3 +139,9 @@ watched as following:
106
139
107
140
$ docker logs -f silverpeas
108
141
142
+ ## For development purpose
143
+
144
+ You can use this project to build a Silverpeas docker image with your own changes in the Silverpeas
145
+ code. For doing, build the code of Silverpeas (at least both ` Silverpeas-Core ` and
146
+ ` Silverpeas-Component ` ) with as Maven repository the ` src/repository ` directory. This folder will be
147
+ then automatically used when building a test image of Silverpeas.
0 commit comments