mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-10 14:11:25 +00:00
Add a way to install custom addons.
This commit is contained in:
@@ -17,6 +17,8 @@ $ tree generators/app/templates/
|
||||
│ ├── .env
|
||||
│ ├── docker-compose-ce.yml
|
||||
│ └── docker-compose-ee.yml
|
||||
├── empty
|
||||
│ └── empty
|
||||
├── images
|
||||
│ ├── alfresco
|
||||
│ │ ├── Dockerfile
|
||||
@@ -181,6 +183,10 @@ Sample configuration is available in [images/share/model/sharding-share-config-c
|
||||
|
||||
If *Sharding* is selected, a default `share-config-custom-dev.xml` file with required forms configuration for Sharding custom model will be available in deployment folder. Add your configuration to this file.
|
||||
|
||||
## Installing custom addons
|
||||
|
||||
The generator will create `amps` and `jars` directories within `alfresco/modules` and `share/modules`. Any amps or jars placed in these directories will be installed in the corresponding container.
|
||||
|
||||
## Passing parameters from command line
|
||||
|
||||
Default values for options can be specified in the command line, using a `--name=value` pattern. When an options is specified in the command line, the question is not prompted to the user, so you can generate a Docker Compose template with no user interaction.
|
||||
|
@@ -267,6 +267,16 @@ module.exports = class extends Generator {
|
||||
)
|
||||
}
|
||||
|
||||
// Empty addons directories.
|
||||
['alfresco', 'share'].forEach(container => {
|
||||
['jars', 'modules'].forEach(addonType => {
|
||||
this.fs.copy(
|
||||
this.templatePath('empty/empty'),
|
||||
this.destinationPath(container + '/modules/' + addonType + '/empty')
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
// Copy Docker Image for Search applying configuration
|
||||
this.fs.copyTpl(
|
||||
this.templatePath(imagesDirectory + '/search'),
|
||||
|
@@ -25,6 +25,13 @@ VOLUME ["${ALF_DATA_DIR}/keystore"]
|
||||
|
||||
USER root
|
||||
|
||||
# Install modules and addons
|
||||
RUN mkdir -p $TOMCAT_DIR/amps
|
||||
COPY modules/amps/* $TOMCAT_DIR/amps/
|
||||
COPY modules/jars/* $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib/
|
||||
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
|
||||
$TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force;
|
||||
|
||||
# Default value in "repository.properties" is "dir.keystore=classpath:alfresco/keystore"
|
||||
RUN if [ "$SOLR_COMMS" == "https" ] ; then \
|
||||
echo -e "\n\
|
||||
|
@@ -8,5 +8,12 @@ RUN sed -i '/Connector port="8080"/a scheme="https" secure="true"' /usr/local/to
|
||||
sed -i '/Connector port="8080"/a proxyName="localhost" proxyPort="<%=port%>"' /usr/local/tomcat/conf/server.xml
|
||||
<% } %>
|
||||
|
||||
# Install modules
|
||||
RUN mkdir -p $TOMCAT_DIR/amps
|
||||
COPY modules/amps/* $TOMCAT_DIR/amps/
|
||||
COPY modules/jars/* $TOMCAT_DIR/webapps/share/WEB-INF/lib/
|
||||
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
|
||||
$TOMCAT_DIR/amps $TOMCAT_DIR/webapps/share -directory -nobackup -force;
|
||||
|
||||
# Copy custom content forms to deployment folder
|
||||
COPY model/* $TOMCAT_DIR/shared/classes/alfresco/web-extension/
|
Reference in New Issue
Block a user