mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-08 14:51:20 +00:00
SEARCH-2318: Add Travis configuration to Insight Engine (#873)
The changes include the following: * The python scripts for e2e environment creation were moved to this code base * Mirror to community * Docker image check * Unit, integration and e2e tests * "Snapshots": "latest" docker image from master in quay.io, docker images for "release" branches to quay.io, "master" and * "release" branches snapshots to nexus * Releases: nexus, s3 staging bucket, quay.io and dockerhub * Fix for https://issues.alfresco.com/jira/browse/SEARCH-2389 The build is using branches only.
This commit is contained in:
49
e2e-test/python-generator/templates/alfresco/Dockerfile.template
Executable file
49
e2e-test/python-generator/templates/alfresco/Dockerfile.template
Executable file
@@ -0,0 +1,49 @@
|
||||
FROM ${ALFRESCO_IMAGE}
|
||||
|
||||
ENV TOMCAT_DIR=/usr/local/tomcat
|
||||
ENV ALF_DATA_DIR=$${TOMCAT_DIR}/alf_data
|
||||
|
||||
# COMMS
|
||||
ARG SOLR_COMMS
|
||||
ENV SOLR_COMMS $$SOLR_COMMS
|
||||
|
||||
# SSL
|
||||
ARG TRUSTSTORE_TYPE
|
||||
ARG TRUSTSTORE_PASS
|
||||
ARG KEYSTORE_TYPE
|
||||
ARG KEYSTORE_PASS
|
||||
|
||||
ENV TRUSTSTORE_TYPE=$$TRUSTSTORE_TYPE \
|
||||
TRUSTSTORE_PASS=$$TRUSTSTORE_PASS \
|
||||
KEYSTORE_TYPE=$$KEYSTORE_TYPE \
|
||||
KEYSTORE_PASS=$$KEYSTORE_PASS
|
||||
|
||||
USER root
|
||||
|
||||
# Default value in 'repository.properties' is 'dir.keystore=classpath:alfresco/keystore'
|
||||
RUN if [ "$$SOLR_COMMS" == "https" ] ; then \
|
||||
echo -e "\n\
|
||||
dir.keystore=$${ALF_DATA_DIR}/keystore\n\
|
||||
alfresco.encryption.ssl.keystore.type=$${TRUSTSTORE_TYPE}\n\
|
||||
alfresco.encryption.ssl.truststore.type=$${KEYSTORE_TYPE}\n\
|
||||
" >> $${TOMCAT_DIR}/shared/classes/alfresco-global.properties; \
|
||||
fi
|
||||
|
||||
# Enable SSL by adding the proper Connector to server.xml
|
||||
RUN if [ "$$SOLR_COMMS" == "https" ] ; then \
|
||||
sed -i "s/\
|
||||
[[:space:]]\+<\/Engine>/\n\
|
||||
<\/Engine>\n\
|
||||
<Connector port=\"8443\" protocol=\"org.apache.coyote.http11.Http11Protocol\"\n\
|
||||
connectionTimeout=\"20000\"\n\
|
||||
SSLEnabled=\"true\" maxThreads=\"150\" scheme=\"https\"\n\
|
||||
keystoreFile=\"\/usr\/local\/tomcat\/alf_data\/keystore\/ssl.keystore\"\n\
|
||||
keystorePass=\"$${KEYSTORE_PASS}\" keystoreType=\"$${KEYSTORE_TYPE}\" secure=\"true\"\n\
|
||||
truststoreFile=\"\/usr\/local\/tomcat\/alf_data\/keystore\/ssl.truststore\"\n\
|
||||
truststorePass=\"$${TRUSTSTORE_PASS}\" truststoreType=\"$${TRUSTSTORE_TYPE}\" clientAuth=\"want\" sslProtocol=\"TLS\">\n\
|
||||
<\/Connector>/g" $${TOMCAT_DIR}/conf/server.xml; \
|
||||
fi
|
||||
|
||||
# Expose keystore folder
|
||||
# Useless for 'none'/'http' communications with SOLR
|
||||
VOLUME ["$$ALF_DATA_DIR/keystore"]
|
Reference in New Issue
Block a user