├── .gitignore
├── 201602-GA
└── Dockerfile
├── 201604-GA
└── Dockerfile
├── 201605-GA
└── Dockerfile
├── 201612-GA
└── Dockerfile
├── 201701-GA
└── Dockerfile
├── 201702-GA
└── Dockerfile
├── 201704-GA
└── Dockerfile
├── 201707-GA
└── Dockerfile
├── 4.2.c
└── Dockerfile
├── 5.0.d
└── Dockerfile
├── LICENSE
├── README.md
├── alfresco-solr6
├── 201612-GA
│ ├── Dockerfile
│ ├── README.md
│ └── assets
│ │ ├── run.sh
│ │ └── templates
│ │ └── rerank
│ │ └── conf
│ │ └── solrcore.properties
├── 201701-GA
│ ├── Dockerfile
│ ├── README.md
│ └── assets
│ │ ├── run.sh
│ │ └── templates
│ │ └── rerank
│ │ └── conf
│ │ └── solrcore.properties
├── 201702-GA
│ ├── Dockerfile
│ ├── README.md
│ └── assets
│ │ ├── run.sh
│ │ └── templates
│ │ └── rerank
│ │ └── conf
│ │ └── solrcore.properties
├── 201704-GA
│ ├── Dockerfile
│ └── assets
│ │ ├── run.sh
│ │ └── templates
│ │ └── rerank
│ │ └── conf
│ │ └── solrcore.properties
├── 201707-GA
│ ├── Dockerfile
│ └── assets
│ │ ├── run.sh
│ │ └── templates
│ │ └── rerank
│ │ └── conf
│ │ └── solrcore.properties
└── README.md
├── base
├── README.md
├── centos7-openjdk8-tomcat7
│ ├── Dockerfile
│ └── assets
│ │ ├── server.xml
│ │ ├── setenv.sh
│ │ └── tomcat-users.xml
└── centos7-openjdk8
│ └── Dockerfile
├── libreoffice
├── Dockerfile
├── README.md
├── sofficerc
└── startoo.sh
└── templates
├── 201604-GA
├── README.md
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ ├── alfresco-global.properties
│ │ └── apply_alfresco_amps.sh
│ │ ├── amps
│ │ └── .gitignore
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
├── docker-compose.yml
├── nginx
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco.conf
│ │ ├── nginx.conf
│ │ └── pki
│ │ ├── localhost.crt
│ │ └── localhost.key
├── postgres
│ └── Dockerfile
├── share
│ ├── Dockerfile
│ └── assets
│ │ ├── amps_share
│ │ └── .gitignore
│ │ ├── share
│ │ ├── apply_share_amps.sh
│ │ └── share-config-custom.xml
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
└── solr4
│ └── Dockerfile
├── 201605-GA
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ ├── alfresco-global.properties
│ │ └── apply_alfresco_amps.sh
│ │ ├── amps
│ │ └── .gitignore
│ │ ├── cas
│ │ ├── cacerts
│ │ └── java-cas-client.properties
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
├── cas
│ ├── Dockerfile
│ └── assets
│ │ ├── cas.war
│ │ ├── keystore
│ │ └── server.xml
├── docker-compose.yml
├── httpd
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco.conf
│ │ └── pki
│ │ └── CA
│ │ ├── cacert.pem
│ │ ├── certs
│ │ └── server.crt
│ │ ├── index.txt
│ │ ├── private
│ │ ├── cakey.pem
│ │ └── server.key
│ │ └── serial
├── openldap
│ ├── Dockerfile
│ └── assets
│ │ ├── basedomain.ldif
│ │ ├── chdomain.ldif
│ │ ├── chrootpw.ldif
│ │ ├── mod_ssl.ldif
│ │ └── pki
│ │ ├── cacert.pem
│ │ ├── server.crt
│ │ └── server.key
├── postgres
│ └── Dockerfile
├── share
│ ├── Dockerfile
│ └── assets
│ │ ├── amps_share
│ │ └── .gitignore
│ │ ├── cas
│ │ ├── cacerts
│ │ └── java-cas-client.properties
│ │ ├── share
│ │ ├── apply_share_amps.sh
│ │ └── share-config-custom.xml
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
└── solr4
│ └── Dockerfile
├── 201612-GA
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ └── alfresco-global.properties
│ │ ├── amps
│ │ └── .gitignore
│ │ ├── amps_share
│ │ └── .gitignore
│ │ ├── api-explorer
│ │ └── api-explorer.war
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
├── docker-compose.yml
└── postgres
│ └── Dockerfile
├── 201701-GA
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ └── alfresco-global.properties
│ │ ├── amps
│ │ └── .gitignore
│ │ ├── amps_share
│ │ └── .gitignore
│ │ ├── api-explorer
│ │ └── api-explorer.war
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
├── docker-compose.yml
├── httpd
│ ├── Dockerfile
│ └── assets
│ │ └── alfresco.conf
└── postgres
│ └── Dockerfile
├── 201702-GA
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ ├── alfresco-global.properties
│ │ └── apply_alfresco_amps.sh
│ │ ├── amps
│ │ └── .gitignore
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
├── docker-compose.yml
├── httpd
│ ├── Dockerfile
│ └── assets
│ │ └── alfresco.conf
├── postgres
│ └── Dockerfile
└── share
│ ├── Dockerfile
│ └── assets
│ ├── amps_share
│ └── .gitignore
│ ├── share
│ ├── apply_share_amps.sh
│ └── share-config-custom.xml
│ └── tomcat
│ ├── catalina.properties
│ └── setenv.sh
├── 201704-GA
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ ├── alfresco-global.properties
│ │ └── apply_alfresco_amps.sh
│ │ ├── amps
│ │ └── .gitignore
│ │ ├── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
│ │ └── wait-for-postgres.sh
├── docker-compose.yml
├── nginx
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco.conf
│ │ ├── nginx.conf
│ │ └── pki
│ │ ├── localhost.crt
│ │ └── localhost.key
├── postgres
│ └── Dockerfile
└── share
│ ├── Dockerfile
│ └── assets
│ ├── amps_share
│ └── .gitignore
│ ├── share
│ ├── apply_share_amps.sh
│ └── share-config-custom.xml
│ └── tomcat
│ ├── catalina.properties
│ └── setenv.sh
├── 201707-GA
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ ├── alfresco-global.properties
│ │ └── apply_alfresco_amps.sh
│ │ ├── amps
│ │ └── .gitignore
│ │ ├── jars
│ │ └── enablecors-1.0.jar
│ │ ├── tomcat
│ │ ├── alfresco.xml
│ │ ├── catalina.properties
│ │ └── setenv.sh
│ │ └── wait-for-postgres.sh
├── docker-compose.yml
├── postgres
│ └── Dockerfile
└── share
│ ├── Dockerfile
│ └── assets
│ ├── amps_share
│ └── .gitignore
│ ├── share
│ ├── apply_share_amps.sh
│ └── share-config-custom.xml
│ └── tomcat
│ ├── catalina.properties
│ ├── setenv.sh
│ └── share.xml
├── 201804-EA
├── Makefile
├── README.md
├── alfresco
│ ├── Dockerfile
│ └── target
│ │ ├── amps
│ │ └── empty
│ │ ├── empty
│ │ └── jars
│ │ └── empty
├── docker-compose.yml
├── httpd
│ ├── Dockerfile
│ └── assets
│ │ ├── CA.pem
│ │ ├── alfresco-vhost.conf
│ │ ├── server.crt
│ │ └── server.key
└── share
│ ├── Dockerfile
│ └── target
│ ├── amps_share
│ └── empty
│ ├── empty
│ └── jars
│ └── empty
├── 201806-GA
├── README.md
├── alfresco
│ ├── Dockerfile
│ └── modules
│ │ ├── amps
│ │ ├── empty
│ │ ├── javascript-console-repo-0.6.0.amp
│ │ └── support-tools-repo-1.1.0.0-SNAPSHOT.amp
│ │ ├── empty
│ │ └── jars
│ │ └── empty
├── data
│ └── empty
├── docker-compose-http.yml
├── docker-compose.yml
├── http
│ ├── Dockerfile
│ └── assets
│ │ └── alfresco-vhost.conf
├── https
│ ├── Dockerfile
│ └── assets
│ │ ├── CA.pem
│ │ ├── alfresco-vhost.conf
│ │ ├── server.crt
│ │ └── server.key
└── share
│ ├── Dockerfile
│ └── modules
│ ├── amps_share
│ ├── empty
│ ├── javascript-console-share-0.6.0.amp
│ └── support-tools-share-1.1.0.0-SNAPSHOT.amp
│ ├── empty
│ └── jars
│ └── empty
├── 4.2.c
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ └── alfresco-global.properties
│ │ ├── amps
│ │ └── .gitignore
│ │ ├── amps_share
│ │ └── .gitignore
│ │ ├── solr
│ │ ├── archive-solrcore.properties
│ │ ├── solr-tomcat-context.xml
│ │ └── workspace-solrcore.properties
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ ├── server.xml
│ │ ├── setenv.sh
│ │ └── tomcat-users.xml
├── docker-compose.yml
└── postgres
│ └── Dockerfile
├── 5.0.d
├── alfresco
│ ├── Dockerfile
│ └── assets
│ │ ├── alfresco
│ │ ├── alfresco-global.properties
│ │ └── web.xml
│ │ ├── amps
│ │ └── javascript-console-repo-0.6.0.amp
│ │ ├── amps_share
│ │ └── javascript-console-share-0.6.0.amp
│ │ └── tomcat
│ │ ├── catalina.properties
│ │ └── setenv.sh
├── docker-compose.yml
├── postgres
│ └── Dockerfile
└── solr4
│ ├── Dockerfile
│ └── assets
│ └── solr4
│ └── web.xml
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
--------------------------------------------------------------------------------
/201602-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201602-GA"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL http://dl.alfresco.com/release/community/201602-build-00005/alfresco-community-distribution-201602.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-distribution-201602.zip -d /tmp \
19 | && rm -f alfresco-community-distribution-201602.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-distribution-201602
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
25 | EXPOSE 8080
26 | CMD ["catalina.sh", "run"]
27 |
--------------------------------------------------------------------------------
/201604-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201604-GA"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL http://dl.alfresco.com/release/community/201604-build-00007/alfresco-community-distribution-201604.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-distribution-201604.zip -d /tmp \
19 | && rm -f alfresco-community-distribution-201604.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-distribution-201604
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
25 | EXPOSE 8080
26 | CMD ["catalina.sh", "run"]
27 |
--------------------------------------------------------------------------------
/201605-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201605-GA"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL http://dl.alfresco.com/release/community/201605-build-00010/alfresco-community-distribution-201605.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-distribution-201605.zip -d /tmp \
19 | && rm -f alfresco-community-distribution-201605.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-distribution-201605
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
25 | EXPOSE 8080
26 | CMD ["catalina.sh", "run"]
27 |
--------------------------------------------------------------------------------
/201612-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201612-GA"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL https://download.alfresco.com/release/community/201612-build-00014/alfresco-community-distribution-201612.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget --no-check-certificate $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-distribution-201612.zip -d /tmp \
19 | && rm -f alfresco-community-distribution-201612.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-distribution-201612
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
25 | EXPOSE 8080
26 | CMD ["catalina.sh", "run"]
27 |
--------------------------------------------------------------------------------
/201701-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201701-GA"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL https://download.alfresco.com/release/community/201701-build-00015/alfresco-community-distribution-201701.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget --no-check-certificate $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-distribution-201701.zip -d /tmp \
19 | && rm -f alfresco-community-distribution-201701.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-distribution-201701
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
25 | EXPOSE 8080
26 | CMD ["catalina.sh", "run"]
27 |
--------------------------------------------------------------------------------
/201702-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201702-GA"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL https://download.alfresco.com/release/community/201702-build-00016/alfresco-community-distribution-201702.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget --no-check-certificate $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-distribution-201702.zip -d /tmp \
19 | && rm -f alfresco-community-distribution-201702.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-distribution-201702
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
25 | EXPOSE 8080
26 | CMD ["catalina.sh", "run"]
27 |
--------------------------------------------------------------------------------
/201704-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201704-GA"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL https://download.alfresco.com/release/community/201704-build-00019/alfresco-community-distribution-201704.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget --no-check-certificate $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-distribution-201704.zip -d /tmp \
19 | && rm -f alfresco-community-distribution-201704.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-distribution-201704
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
--------------------------------------------------------------------------------
/201707-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201707-GA"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL https://download.alfresco.com/release/community/201707-build-00028/alfresco-community-distribution-201707.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget --no-check-certificate $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-distribution-201707.zip -d /tmp \
19 | && rm -f alfresco-community-distribution-201707.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-distribution-201707
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
--------------------------------------------------------------------------------
/4.2.c/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 4.2.c"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL http://dl.alfresco.com/release/community/build-04576/alfresco-community-4.2.c.zip
13 | ENV SOLR_DOWNLOAD_URL http://dl.alfresco.com/release/community/build-04576/alfresco-community-solr-4.2.c.zip
14 | ENV ALF_HOME /usr/local/alfresco
15 |
16 | RUN set -x \
17 | && mkdir -p $ALF_HOME \
18 | && mkdir -p /tmp/alfresco \
19 | && wget $ALF_DOWNLOAD_URL \
20 | && unzip alfresco-community-4.2.c.zip -d /tmp/alfresco \
21 | && rm -f alfresco-community-4.2.c.zip
22 |
23 | RUN set -x \
24 | && mkdir /tmp/solr \
25 | && wget $SOLR_DOWNLOAD_URL \
26 | && unzip alfresco-community-solr-4.2.c.zip -d /tmp/solr \
27 | && rm alfresco-community-solr-4.2.c.zip
28 |
29 | WORKDIR $ALF_HOME
30 | ENV DIST /tmp/alfresco
31 | ENV SOLR /tmp/solr
32 | ENV PATH $ALF_HOME/bin:$PATH
33 |
34 | EXPOSE 8080
35 | CMD ["catalina.sh", "run"]
36 |
--------------------------------------------------------------------------------
/5.0.d/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8-tomcat7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 5.0.d"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | unzip \
9 | wget \
10 | && yum clean all
11 |
12 | ENV ALF_DOWNLOAD_URL http://dl.alfresco.com/release/community/5.0.d-build-00002/alfresco-community-5.0.d.zip
13 | ENV ALF_HOME /usr/local/alfresco
14 |
15 | RUN set -x \
16 | && mkdir -p $ALF_HOME \
17 | && wget $ALF_DOWNLOAD_URL \
18 | && unzip alfresco-community-5.0.d.zip -d /tmp \
19 | && rm -f alfresco-community-5.0.d.zip
20 |
21 | WORKDIR $ALF_HOME
22 | ENV DIST /tmp/alfresco-community-5.0.d
23 | ENV PATH $ALF_HOME/bin:$PATH
24 |
25 | EXPOSE 8080
26 | CMD ["catalina.sh", "run"]
27 |
--------------------------------------------------------------------------------
/alfresco-solr6/201612-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/centos7-java8
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum install -y \
7 | unzip \
8 | lsof \
9 | && yum clean all
10 |
11 | ENV SOLR6_DOWNLOAD_URL https://download.alfresco.com/release/community/201612-build-00014/alfresco-search-services-1.0-EA.zip
12 | ENV SOLR_DIR /usr/local/solr
13 |
14 | RUN set -x \
15 | && mkdir -p $SOLR_DIR \
16 | && wget --no-check-certificate $SOLR6_DOWNLOAD_URL \
17 | && unzip alfresco-search-services-1.0-EA.zip -d $SOLR_DIR \
18 | && rm -f alfresco-search-services-1.0-EA.zip
19 |
20 | COPY assets/templates/rerank/conf/solrcore.properties $SOLR_DIR/solrhome/templates/rerank/conf/solrcore.properties
21 | COPY assets/run.sh $SOLR_DIR/run.sh
22 | WORKDIR $SOLR_DIR
23 | ENV PATH $SOLR_DIR/solr/bin:$PATH
24 |
25 | RUN useradd -ms /bin/bash solr
26 | RUN set -x && chown -RL solr:solr $SOLR_DIR
27 | USER solr
28 |
29 | EXPOSE 8983
30 | CMD ["run"]
31 | ENTRYPOINT ["./run.sh"]
32 |
--------------------------------------------------------------------------------
/alfresco-solr6/201612-GA/README.md:
--------------------------------------------------------------------------------
1 | # Solr6 node for Alfresco (alfresco-search-services)
2 |
3 | This image runs a Solr6 node for Alfresco. It is configured to connect an alfresco repo instance at alfresco:8080 with secureComms=none. The Solr6 service is exposed in the default 8983 port
4 | More info [here](https://community.alfresco.com/community/ecm/blog/2016/12/22/introducing-solr-63-and-alfresco-search-services)
5 |
--------------------------------------------------------------------------------
/alfresco-solr6/201612-GA/assets/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | if [ "$1" == "run" ]
5 | then
6 | pushd $SOLR_DIR > /dev/null
7 | bash ./solr/bin/solr start -Dcreate.alfresco.defaults=alfresco,archive
8 | tail -f ./logs/solr.log
9 | popd > /dev/null
10 | else
11 | exec "$@"
12 | fi
13 |
--------------------------------------------------------------------------------
/alfresco-solr6/201701-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/centos7-java8
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum install -y \
7 | unzip \
8 | lsof \
9 | && yum clean all
10 |
11 | ENV SOLR6_DOWNLOAD_URL https://download.alfresco.com/release/community/201701-build-00015/alfresco-search-services-1.0.b.zip
12 | ENV SOLR_DIR /usr/local/solr
13 |
14 | RUN set -x \
15 | && mkdir -p $SOLR_DIR \
16 | && wget --no-check-certificate $SOLR6_DOWNLOAD_URL \
17 | && unzip alfresco-search-services-1.0.b.zip -d $SOLR_DIR \
18 | && rm -f alfresco-search-services-1.0.b.zip
19 |
20 | COPY assets/templates/rerank/conf/solrcore.properties $SOLR_DIR/solrhome/templates/rerank/conf/solrcore.properties
21 | COPY assets/run.sh $SOLR_DIR/run.sh
22 | WORKDIR $SOLR_DIR
23 | ENV PATH $SOLR_DIR/solr/bin:$PATH
24 |
25 | RUN useradd -ms /bin/bash solr
26 | RUN set -x && chown -RL solr:solr $SOLR_DIR
27 | USER solr
28 |
29 | EXPOSE 8983
30 | CMD ["run"]
31 | ENTRYPOINT ["./run.sh"]
32 |
--------------------------------------------------------------------------------
/alfresco-solr6/201701-GA/README.md:
--------------------------------------------------------------------------------
1 | # Solr6 node for Alfresco (alfresco-search-services)
2 |
3 | This image runs a Solr6 node for Alfresco. It is configured to connect an alfresco repo instance at alfresco:8080 with secureComms=none. The Solr6 service is exposed in the default 8983 port
4 | More info [here](https://community.alfresco.com/community/ecm/blog/2016/12/22/introducing-solr-63-and-alfresco-search-services)
5 |
--------------------------------------------------------------------------------
/alfresco-solr6/201701-GA/assets/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | if [ "$1" == "run" ]
5 | then
6 | pushd $SOLR_DIR > /dev/null
7 | bash ./solr/bin/solr start -Dcreate.alfresco.defaults=alfresco,archive
8 | tail -f ./logs/solr.log
9 | popd > /dev/null
10 | else
11 | exec "$@"
12 | fi
13 |
--------------------------------------------------------------------------------
/alfresco-solr6/201701-GA/assets/templates/rerank/conf/solrcore.properties:
--------------------------------------------------------------------------------
1 | #
2 | # solrcore.properties - used in solrconfig.xml
3 | #
4 |
5 | enable.alfresco.tracking=true
6 |
7 | #
8 | # Alfresco version
9 | #
10 | alfresco.version=5.2.e
11 |
12 | #
13 | #These are replaced by the admin handler
14 | #
15 | #data.dir.root=DATA_DIR
16 | #data.dir.store=workspace/SpacesStore
17 | #alfresco.stores=workspace://SpacesStore
18 |
19 | #
20 | # Properties loaded during alfresco tracking
21 | #
22 |
23 | alfresco.host=alfresco
24 | alfresco.port=8080
25 | alfresco.port.ssl=8443
26 | alfresco.baseUrl=/alfresco
27 | alfresco.cron=0/10 * * * * ? *
28 |
29 | #alfresco.index.transformContent=false
30 | #alfresco.ignore.datatype.1=d:content
31 | alfresco.lag=1000
32 | alfresco.hole.retention=3600000
33 | # alfresco.hole.check.after is not used yet
34 | # It will reduce the hole checking load
35 | alfresco.hole.check.after=300000
36 | alfresco.batch.count=5000
37 | alfresco.recordUnindexedNodes=false
38 |
39 | # encryption
40 |
41 | # none, https
42 | alfresco.secureComms=none
43 |
44 | # ssl
45 | alfresco.encryption.ssl.keystore.type=JCEKS
46 | alfresco.encryption.ssl.keystore.provider=
47 | alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore
48 | alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties
49 | alfresco.encryption.ssl.truststore.type=JCEKS
50 | alfresco.encryption.ssl.truststore.provider=
51 | alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore
52 | alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties
53 |
54 | # Tracking
55 |
56 | alfresco.corePoolSize=8
57 | alfresco.maximumPoolSize=-1
58 | alfresco.keepAliveTime=120
59 | alfresco.threadPriority=5
60 | alfresco.threadDaemon=true
61 | alfresco.workQueueSize=-1
62 |
63 | alfresco.commitInterval=2000
64 | alfresco.newSearcherInterval=3000
65 |
66 | # HTTP Client
67 |
68 | alfresco.maxTotalConnections=200
69 | alfresco.maxHostConnections=200
70 | alfresco.socketTimeout=360000
71 |
72 | # SOLR caching
73 |
74 | solr.filterCache.size=256
75 | solr.filterCache.initialSize=128
76 | solr.queryResultCache.size=1024
77 | solr.queryResultCache.initialSize=1024
78 | solr.documentCache.size=1024
79 | solr.documentCache.initialSize=1024
80 | solr.queryResultMaxDocsCached=2048
81 |
82 | solr.authorityCache.size=128
83 | solr.authorityCache.initialSize=64
84 | solr.pathCache.size=256
85 | solr.pathCache.initialSize=128
86 |
87 | solr.ownerCache.size=128
88 | solr.ownerCache.initialSize=64
89 |
90 | solr.readerCache.size=128
91 | solr.readerCache.initialSize=64
92 |
93 | solr.deniedCache.size=128
94 | solr.deniedCache.initialSize=64
95 |
96 | # SOLR
97 |
98 | solr.maxBooleanClauses=10000
99 |
100 | # Batch fetch
101 |
102 | alfresco.transactionDocsBatchSize=500
103 | alfresco.nodeBatchSize=100
104 | alfresco.changeSetAclsBatchSize=500
105 | alfresco.aclBatchSize=100
106 | alfresco.contentReadBatchSize=100
107 | alfresco.contentUpdateBatchSize=1000
108 |
109 | # Warming
110 |
111 | solr.filterCache.autowarmCount=32
112 | solr.authorityCache.autowarmCount=4
113 | solr.pathCache.autowarmCount=32
114 | solr.deniedCache.autowarmCount=0
115 | solr.readerCache.autowarmCount=0
116 | solr.ownerCache.autowarmCount=0
117 | solr.queryResultCache.autowarmCount=4
118 | solr.documentCache.autowarmCount=512
119 |
120 | solr.queryResultWindowSize=512
121 |
122 |
123 | #
124 | # TODO
125 | #
126 | # cross language support
127 | # locale expansion
128 | # logging check report ....
129 | #
130 | #
131 |
132 |
133 | alfresco.doPermissionChecks=true
134 |
135 | # Evaluate permissions as a PostFilter. Setting this to false will evaluate permissions as a Query.
136 |
137 | alfresco.postfilter=true
138 |
139 | #
140 | # Metadata pulling control
141 | #
142 | alfresco.metadata.skipDescendantDocsForSpecificTypes=false
143 | alfresco.metadata.ignore.datatype.0=cm:person
144 | alfresco.metadata.ignore.datatype.1=app:configurations
145 | alfresco.metadata.skipDescendantDocsForSpecificAspects=false
146 | #alfresco.metadata.ignore.aspect.0=
147 |
148 | alfresco.topTermSpanRewriteLimit=1000
149 |
150 | #
151 | # Suggestions
152 | #
153 | solr.suggester.enabled=true
154 | # -1 to disable suggester build throttling
155 | solr.suggester.minSecsBetweenBuilds=3600
156 |
157 | #
158 | # Limit the maximum text size of transformed content sent to the index - in bytes
159 | #
160 | alfresco.contentStreamLimit=10000000
161 | #Shard setup
162 | shard.method=DB_ID
163 |
--------------------------------------------------------------------------------
/alfresco-solr6/201702-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/centos7-java8
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum install -y \
7 | unzip \
8 | lsof \
9 | && yum clean all
10 |
11 | ENV SOLR6_DOWNLOAD_URL https://download.alfresco.com/release/community/201702-build-00016/alfresco-search-services-1.0.0.zip
12 | ENV SOLR_DIR /usr/local/solr
13 |
14 | RUN set -x \
15 | && mkdir -p $SOLR_DIR \
16 | && wget --no-check-certificate $SOLR6_DOWNLOAD_URL \
17 | && unzip alfresco-search-services-1.0.0.zip \
18 | && mv alfresco-search-services/* $SOLR_DIR \
19 | && rm -rf alfresco-search-services*
20 |
21 | COPY assets/templates/rerank/conf/solrcore.properties $SOLR_DIR/solrhome/templates/rerank/conf/solrcore.properties
22 | COPY assets/run.sh $SOLR_DIR/run.sh
23 | WORKDIR $SOLR_DIR
24 | ENV PATH $SOLR_DIR/solr/bin:$PATH
25 |
26 | RUN useradd -ms /bin/bash solr
27 | RUN set -x && chown -RL solr:solr $SOLR_DIR
28 | USER solr
29 |
30 | EXPOSE 8983
31 | CMD ["run"]
32 | ENTRYPOINT ["./run.sh"]
33 |
--------------------------------------------------------------------------------
/alfresco-solr6/201702-GA/README.md:
--------------------------------------------------------------------------------
1 | # Solr6 node for Alfresco (alfresco-search-services)
2 |
3 | This image runs a Solr6 node for Alfresco. It is configured to connect an alfresco repo instance at alfresco:8080 with secureComms=none. The Solr6 service is exposed in the default 8983 port
4 | More info [here](https://community.alfresco.com/community/ecm/blog/2016/12/22/introducing-solr-63-and-alfresco-search-services)
5 |
--------------------------------------------------------------------------------
/alfresco-solr6/201702-GA/assets/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | if [ "$1" == "run" ]
5 | then
6 | pushd $SOLR_DIR > /dev/null
7 | bash ./solr/bin/solr start -Dcreate.alfresco.defaults=alfresco,archive
8 | tail -f ./logs/solr.log
9 | popd > /dev/null
10 | else
11 | exec "$@"
12 | fi
13 |
--------------------------------------------------------------------------------
/alfresco-solr6/201702-GA/assets/templates/rerank/conf/solrcore.properties:
--------------------------------------------------------------------------------
1 | #
2 | # solrcore.properties - used in solrconfig.xml
3 | #
4 |
5 | enable.alfresco.tracking=true
6 |
7 | #
8 | # Alfresco version
9 | #
10 | alfresco.version=5.2.e
11 |
12 | #
13 | #These are replaced by the admin handler
14 | #
15 | #data.dir.root=DATA_DIR
16 | #data.dir.store=workspace/SpacesStore
17 | #alfresco.stores=workspace://SpacesStore
18 |
19 | #
20 | # Properties loaded during alfresco tracking
21 | #
22 |
23 | alfresco.host=alfresco
24 | alfresco.port=8080
25 | alfresco.port.ssl=8443
26 | alfresco.baseUrl=/alfresco
27 | alfresco.cron=0/10 * * * * ? *
28 |
29 | #alfresco.index.transformContent=false
30 | #alfresco.ignore.datatype.1=d:content
31 | alfresco.lag=1000
32 | alfresco.hole.retention=3600000
33 | # alfresco.hole.check.after is not used yet
34 | # It will reduce the hole checking load
35 | alfresco.hole.check.after=300000
36 | alfresco.batch.count=5000
37 | alfresco.recordUnindexedNodes=false
38 |
39 | # encryption
40 |
41 | # none, https
42 | alfresco.secureComms=none
43 |
44 | # ssl
45 | alfresco.encryption.ssl.keystore.type=JCEKS
46 | alfresco.encryption.ssl.keystore.provider=
47 | alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore
48 | alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties
49 | alfresco.encryption.ssl.truststore.type=JCEKS
50 | alfresco.encryption.ssl.truststore.provider=
51 | alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore
52 | alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties
53 |
54 | # Tracking
55 |
56 | alfresco.corePoolSize=8
57 | alfresco.maximumPoolSize=-1
58 | alfresco.keepAliveTime=120
59 | alfresco.threadPriority=5
60 | alfresco.threadDaemon=true
61 | alfresco.workQueueSize=-1
62 |
63 | alfresco.commitInterval=2000
64 | alfresco.newSearcherInterval=3000
65 |
66 | # HTTP Client
67 |
68 | alfresco.maxTotalConnections=200
69 | alfresco.maxHostConnections=200
70 | alfresco.socketTimeout=360000
71 |
72 | # SOLR caching
73 |
74 | solr.filterCache.size=256
75 | solr.filterCache.initialSize=128
76 | solr.queryResultCache.size=1024
77 | solr.queryResultCache.initialSize=1024
78 | solr.documentCache.size=1024
79 | solr.documentCache.initialSize=1024
80 | solr.queryResultMaxDocsCached=2048
81 |
82 | solr.authorityCache.size=128
83 | solr.authorityCache.initialSize=64
84 | solr.pathCache.size=256
85 | solr.pathCache.initialSize=128
86 |
87 | solr.ownerCache.size=128
88 | solr.ownerCache.initialSize=64
89 |
90 | solr.readerCache.size=128
91 | solr.readerCache.initialSize=64
92 |
93 | solr.deniedCache.size=128
94 | solr.deniedCache.initialSize=64
95 |
96 | # SOLR
97 |
98 | solr.maxBooleanClauses=10000
99 |
100 | # Batch fetch
101 |
102 | alfresco.transactionDocsBatchSize=500
103 | alfresco.nodeBatchSize=100
104 | alfresco.changeSetAclsBatchSize=500
105 | alfresco.aclBatchSize=100
106 | alfresco.contentReadBatchSize=100
107 | alfresco.contentUpdateBatchSize=1000
108 |
109 | # Warming
110 |
111 | solr.filterCache.autowarmCount=32
112 | solr.authorityCache.autowarmCount=4
113 | solr.pathCache.autowarmCount=32
114 | solr.deniedCache.autowarmCount=0
115 | solr.readerCache.autowarmCount=0
116 | solr.ownerCache.autowarmCount=0
117 | solr.queryResultCache.autowarmCount=4
118 | solr.documentCache.autowarmCount=512
119 |
120 | solr.queryResultWindowSize=512
121 |
122 |
123 | #
124 | # TODO
125 | #
126 | # cross language support
127 | # locale expansion
128 | # logging check report ....
129 | #
130 | #
131 |
132 |
133 | alfresco.doPermissionChecks=true
134 |
135 | # Evaluate permissions as a PostFilter. Setting this to false will evaluate permissions as a Query.
136 |
137 | alfresco.postfilter=true
138 |
139 | #
140 | # Metadata pulling control
141 | #
142 | alfresco.metadata.skipDescendantDocsForSpecificTypes=false
143 | alfresco.metadata.ignore.datatype.0=cm:person
144 | alfresco.metadata.ignore.datatype.1=app:configurations
145 | alfresco.metadata.skipDescendantDocsForSpecificAspects=false
146 | #alfresco.metadata.ignore.aspect.0=
147 |
148 | alfresco.topTermSpanRewriteLimit=1000
149 |
150 | #
151 | # Suggestions
152 | #
153 | solr.suggester.enabled=true
154 | # -1 to disable suggester build throttling
155 | solr.suggester.minSecsBetweenBuilds=3600
156 |
157 | #
158 | # Limit the maximum text size of transformed content sent to the index - in bytes
159 | #
160 | alfresco.contentStreamLimit=10000000
161 | #Shard setup
162 | shard.method=DB_ID
163 |
--------------------------------------------------------------------------------
/alfresco-solr6/201704-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum install -y \
6 | unzip \
7 | lsof \
8 | wget \
9 | && yum clean all
10 |
11 | ENV SOLR6_DOWNLOAD_URL https://download.alfresco.com/release/community/201704-build-00019/alfresco-search-services-1.0.0.zip
12 | ENV SOLR_DIR /usr/local/solr
13 |
14 | RUN set -x \
15 | && mkdir -p $SOLR_DIR \
16 | && wget --no-check-certificate $SOLR6_DOWNLOAD_URL \
17 | && unzip alfresco-search-services-1.0.0.zip \
18 | && mv alfresco-search-services/* $SOLR_DIR \
19 | && rm -rf alfresco-search-services*
20 |
21 | COPY assets/templates/rerank/conf/solrcore.properties $SOLR_DIR/solrhome/templates/rerank/conf/solrcore.properties
22 | COPY assets/run.sh $SOLR_DIR/run.sh
23 | WORKDIR $SOLR_DIR
24 | ENV PATH $SOLR_DIR/solr/bin:$PATH
25 |
26 | RUN useradd -ms /bin/bash solr
27 | RUN set -x && chown -RL solr:solr $SOLR_DIR
28 | USER solr
29 |
30 | EXPOSE 8983
31 | CMD ["run"]
32 | ENTRYPOINT ["./run.sh"]
33 |
--------------------------------------------------------------------------------
/alfresco-solr6/201704-GA/assets/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | if [ "$1" == "run" ]
5 | then
6 | pushd $SOLR_DIR > /dev/null
7 | bash ./solr/bin/solr start -Dcreate.alfresco.defaults=alfresco,archive
8 | tail -f ./logs/solr.log
9 | popd > /dev/null
10 | else
11 | exec "$@"
12 | fi
13 |
--------------------------------------------------------------------------------
/alfresco-solr6/201704-GA/assets/templates/rerank/conf/solrcore.properties:
--------------------------------------------------------------------------------
1 | #
2 | # solrcore.properties - used in solrconfig.xml
3 | #
4 |
5 | enable.alfresco.tracking=true
6 |
7 | #
8 | # Alfresco version
9 | #
10 | alfresco.version=5.2.e
11 |
12 | #
13 | #These are replaced by the admin handler
14 | #
15 | #data.dir.root=DATA_DIR
16 | #data.dir.store=workspace/SpacesStore
17 | #alfresco.stores=workspace://SpacesStore
18 |
19 | #
20 | # Properties loaded during alfresco tracking
21 | #
22 |
23 | alfresco.host=alfresco
24 | alfresco.port=8080
25 | alfresco.port.ssl=8443
26 | alfresco.baseUrl=/alfresco
27 | alfresco.cron=0/10 * * * * ? *
28 |
29 | #alfresco.index.transformContent=false
30 | #alfresco.ignore.datatype.1=d:content
31 | alfresco.lag=1000
32 | alfresco.hole.retention=3600000
33 | # alfresco.hole.check.after is not used yet
34 | # It will reduce the hole checking load
35 | alfresco.hole.check.after=300000
36 | alfresco.batch.count=5000
37 | alfresco.recordUnindexedNodes=false
38 |
39 | # encryption
40 |
41 | # none, https
42 | alfresco.secureComms=none
43 |
44 | # ssl
45 | alfresco.encryption.ssl.keystore.type=JCEKS
46 | alfresco.encryption.ssl.keystore.provider=
47 | alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore
48 | alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties
49 | alfresco.encryption.ssl.truststore.type=JCEKS
50 | alfresco.encryption.ssl.truststore.provider=
51 | alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore
52 | alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties
53 |
54 | # Tracking
55 |
56 | alfresco.corePoolSize=8
57 | alfresco.maximumPoolSize=-1
58 | alfresco.keepAliveTime=120
59 | alfresco.threadPriority=5
60 | alfresco.threadDaemon=true
61 | alfresco.workQueueSize=-1
62 |
63 | alfresco.commitInterval=2000
64 | alfresco.newSearcherInterval=3000
65 |
66 | # HTTP Client
67 |
68 | alfresco.maxTotalConnections=200
69 | alfresco.maxHostConnections=200
70 | alfresco.socketTimeout=360000
71 |
72 | # SOLR caching
73 |
74 | solr.filterCache.size=256
75 | solr.filterCache.initialSize=128
76 | solr.queryResultCache.size=1024
77 | solr.queryResultCache.initialSize=1024
78 | solr.documentCache.size=1024
79 | solr.documentCache.initialSize=1024
80 | solr.queryResultMaxDocsCached=2048
81 |
82 | solr.authorityCache.size=128
83 | solr.authorityCache.initialSize=64
84 | solr.pathCache.size=256
85 | solr.pathCache.initialSize=128
86 |
87 | solr.ownerCache.size=128
88 | solr.ownerCache.initialSize=64
89 |
90 | solr.readerCache.size=128
91 | solr.readerCache.initialSize=64
92 |
93 | solr.deniedCache.size=128
94 | solr.deniedCache.initialSize=64
95 |
96 | # SOLR
97 |
98 | solr.maxBooleanClauses=10000
99 |
100 | # Batch fetch
101 |
102 | alfresco.transactionDocsBatchSize=500
103 | alfresco.nodeBatchSize=100
104 | alfresco.changeSetAclsBatchSize=500
105 | alfresco.aclBatchSize=100
106 | alfresco.contentReadBatchSize=100
107 | alfresco.contentUpdateBatchSize=1000
108 |
109 | # Warming
110 |
111 | solr.filterCache.autowarmCount=32
112 | solr.authorityCache.autowarmCount=4
113 | solr.pathCache.autowarmCount=32
114 | solr.deniedCache.autowarmCount=0
115 | solr.readerCache.autowarmCount=0
116 | solr.ownerCache.autowarmCount=0
117 | solr.queryResultCache.autowarmCount=4
118 | solr.documentCache.autowarmCount=512
119 |
120 | solr.queryResultWindowSize=512
121 |
122 |
123 | #
124 | # TODO
125 | #
126 | # cross language support
127 | # locale expansion
128 | # logging check report ....
129 | #
130 | #
131 |
132 |
133 | alfresco.doPermissionChecks=true
134 |
135 | # Evaluate permissions as a PostFilter. Setting this to false will evaluate permissions as a Query.
136 |
137 | alfresco.postfilter=true
138 |
139 | #
140 | # Metadata pulling control
141 | #
142 | alfresco.metadata.skipDescendantDocsForSpecificTypes=false
143 | alfresco.metadata.ignore.datatype.0=cm:person
144 | alfresco.metadata.ignore.datatype.1=app:configurations
145 | alfresco.metadata.skipDescendantDocsForSpecificAspects=false
146 | #alfresco.metadata.ignore.aspect.0=
147 |
148 | alfresco.topTermSpanRewriteLimit=1000
149 |
150 | #
151 | # Suggestions
152 | #
153 | solr.suggester.enabled=true
154 | # -1 to disable suggester build throttling
155 | solr.suggester.minSecsBetweenBuilds=3600
156 |
157 | #
158 | # Limit the maximum text size of transformed content sent to the index - in bytes
159 | #
160 | alfresco.contentStreamLimit=10000000
161 | #Shard setup
162 | shard.method=DB_ID
163 |
--------------------------------------------------------------------------------
/alfresco-solr6/201707-GA/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum install -y \
6 | unzip \
7 | lsof \
8 | wget \
9 | && yum clean all
10 |
11 | ENV SOLR6_DOWNLOAD_URL https://download.alfresco.com/release/community/SearchServices/1.1.0/alfresco-search-services-1.1.0.zip
12 | ENV SOLR_DIR /usr/local/solr
13 |
14 | RUN set -x \
15 | && mkdir -p $SOLR_DIR \
16 | && wget --no-check-certificate $SOLR6_DOWNLOAD_URL \
17 | && unzip alfresco-search-services-1.1.0.zip \
18 | && mv alfresco-search-services/* $SOLR_DIR \
19 | && rm -rf alfresco-search-services*
20 |
21 | COPY assets/templates/rerank/conf/solrcore.properties $SOLR_DIR/solrhome/templates/rerank/conf/solrcore.properties
22 | COPY assets/run.sh $SOLR_DIR/run.sh
23 | WORKDIR $SOLR_DIR
24 | ENV PATH $SOLR_DIR/solr/bin:$PATH
25 |
26 | RUN useradd -ms /bin/bash solr
27 | RUN set -x && chown -RL solr:solr $SOLR_DIR
28 | USER solr
29 |
30 | EXPOSE 8983
31 | CMD ["run"]
32 | ENTRYPOINT ["./run.sh"]
33 |
--------------------------------------------------------------------------------
/alfresco-solr6/201707-GA/assets/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | if [ "$1" == "run" ]
5 | then
6 | pushd $SOLR_DIR > /dev/null
7 | bash ./solr/bin/solr start -Dcreate.alfresco.defaults=alfresco,archive
8 | tail -f ./logs/solr.log
9 | popd > /dev/null
10 | else
11 | exec "$@"
12 | fi
13 |
--------------------------------------------------------------------------------
/alfresco-solr6/README.md:
--------------------------------------------------------------------------------
1 | # Solr6 node for Alfresco (alfresco-search-services)
2 |
3 | This image runs a Solr6 node for Alfresco. It is configured to connect an alfresco repo instance at alfresco:8080 with secureComms=none. The Solr6 service is exposed in the default 8983 port
4 | More info [here](https://community.alfresco.com/community/ecm/blog/2016/12/22/introducing-solr-63-and-alfresco-search-services)
5 |
--------------------------------------------------------------------------------
/base/README.md:
--------------------------------------------------------------------------------
1 | # keensoft base images
2 |
3 | ## TAGS
4 |
5 | * centos7-openjdk8 [base/centos7-openjdk8](https://github.com/keensoft/alfresco-docker-template/blob/master/base/centos7-openjdk8/Dockerfile)
6 | * centos7-openjdk8-tomcat7 [base/centos7-openjdk8-tomcat7](https://github.com/keensoft/alfresco-docker-template/blob/master/base/centos7-openjdk8-tomcat7/Dockerfile)
7 |
8 | ## STACK
9 |
10 | * Centos 7
11 | * OpenJDK 8
12 | * Tomcat 7.0.59
13 |
14 |
--------------------------------------------------------------------------------
/base/centos7-openjdk8-tomcat7/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/base:centos7-openjdk8
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is a base image of Centos 7 and OpenJDK 8 and Apache Tomcat 7.0.59"
5 |
6 | RUN set -x \
7 | && yum install -y \
8 | curl \
9 | gpg \
10 | && yum clean all
11 |
12 |
13 | ENV CATALINA_HOME=/usr/local/tomcat \
14 | TOMCAT_TGZ_URL=http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.59/bin/apache-tomcat-7.0.59.tar.gz
15 |
16 | RUN set -x \
17 | && gpg --keyserver pgp.mit.edu --recv-key D63011C7 \
18 | && mkdir -p $CATALINA_HOME \
19 | && curl -fSL "$TOMCAT_TGZ_URL" -o tomcat.tar.gz \
20 | && curl -fSL "$TOMCAT_TGZ_URL.asc" -o tomcat.tar.gz.asc \
21 | && gpg --verify tomcat.tar.gz.asc \
22 | && tar -xvf tomcat.tar.gz --strip-components=1 -C $CATALINA_HOME \
23 | && rm tomcat.tar.gz*
24 |
25 | COPY assets/server.xml $CATALINA_HOME/conf/server.xml
26 | COPY assets/setenv.sh $CATALINA_HOME/bin/setenv.sh
27 | COPY assets/tomcat-users.xml $CATALINA_HOME/conf/tomcat-users.xml
28 |
29 | WORKDIR $CATALINA_HOME
30 | ENV PATH $CATALINA_HOME/bin/:$PATH
31 | EXPOSE 8080 8009
32 | CMD ["catalina.sh", "run"]
33 |
34 |
35 |
--------------------------------------------------------------------------------
/base/centos7-openjdk8-tomcat7/assets/setenv.sh:
--------------------------------------------------------------------------------
1 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
2 | export JAVA_OPTS
3 |
4 |
--------------------------------------------------------------------------------
/base/centos7-openjdk8-tomcat7/assets/tomcat-users.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/base/centos7-openjdk8/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM centos:7
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is a base image of Centos 7 and OpenJDK 8"
5 |
6 | RUN set -x && yum install -y java-1.8.0-openjdk.x86_64 && yum clean all
7 |
8 |
9 |
--------------------------------------------------------------------------------
/libreoffice/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM ubuntu:xenial
2 | LABEL maintainer "mikel.asla@keensoft.es"
3 | LABEL version "1.0"
4 | LABEL description "This is alfresco-docker-template version 201707-GA"
5 |
6 | ENV DEBIAN_FRONTEND noninteractive
7 |
8 | RUN set -x \
9 | && apt-get update \
10 | && apt-get -y -q install \
11 | hyphen-* \
12 | libreoffice \
13 | libreoffice-writer \
14 | libreoffice-java-common \
15 | libreoffice-core \
16 | libreoffice-common \
17 | openjdk-8-jre \
18 | ure \
19 | && apt-get -q -y remove libreoffice-gnome\
20 | && apt-get clean
21 |
22 |
23 | RUN set -x \
24 | && adduser --home=/opt/libreoffice --disabled-password --gecos "" --shell=/bin/bash libreoffice
25 |
26 | ADD sofficerc /etc/libreoffice/sofficerc
27 | ADD startoo.sh /opt/libreoffice/startoo.sh
28 | RUN set -x \
29 | && chmod +x /opt/libreoffice/startoo.sh
30 | VOLUME ["/tmp"]
31 | EXPOSE 8100
32 | ENTRYPOINT ["/opt/libreoffice/startoo.sh"]
33 |
--------------------------------------------------------------------------------
/libreoffice/README.md:
--------------------------------------------------------------------------------
1 | # LibreOffice
2 |
3 | LibreOffice 5.2 used by Alfresco for content transformations on port 8100
4 |
5 |
--------------------------------------------------------------------------------
/libreoffice/sofficerc:
--------------------------------------------------------------------------------
1 | [Bootstrap]
2 | HideEula=1
3 | Logo=0
4 | NativeProgress=false
5 | ProgressBarColor=222,72,20
6 | ProgressFrameColor=245,245,245
7 | ProgressPosition=72,189
8 | ProgressSize=409,8
9 | ProgressTextBaseline=170
10 | ProgressTextColor=255,255,255
11 |
--------------------------------------------------------------------------------
/libreoffice/startoo.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | /usr/bin/libreoffice --nologo --norestore --invisible --headless --accept='socket,host=0,port=8100,tcpNoDelay=1;urp;'
4 |
--------------------------------------------------------------------------------
/templates/201604-GA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201604-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum install -y \
6 | ImageMagick \
7 | ghostscript \
8 | && yum clean all
9 |
10 | WORKDIR $CATALINA_HOME
11 | ENV ALF_HOME $CATALINA_HOME
12 |
13 | # basic configuration
14 | RUN set -x \
15 | && mkdir -p conf/Catalina/localhost shared/classes/alfresco/extension\
16 | && mv $DIST/web-server/webapps/alfresco.war webapps/alfresco.war \
17 | && mv $DIST/web-server/lib/*.jar lib/ \
18 | && mv $DIST/alf_data . \
19 | && mv $DIST/amps . \
20 | && cp -r $DIST/bin . \
21 | && mv $DIST/licenses . \
22 | && mv $DIST/README.txt . \
23 | && rm -rf webapps/docs \
24 | && rm -rf webapps/examples \
25 | && rm -rf /tmp/alfresco \
26 | && mkdir -p shared/lib
27 |
28 | COPY assets/tomcat/catalina.properties conf/catalina.properties
29 | COPY assets/tomcat/setenv.sh bin/setenv.sh
30 | COPY assets/alfresco/alfresco-global.properties shared/classes/alfresco-global.properties
31 |
32 | COPY assets/alfresco/apply_alfresco_amps.sh bin/apply_amps.sh
33 | COPY assets/amps/* amps/
34 | RUN bash ./bin/apply_amps.sh -nobackup
35 |
36 | ENV PATH $ALF_HOME/bin:$PATH
37 | ENV LANG es_ES.utf8
38 |
39 | RUN useradd -ms /bin/bash alfresco
40 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
41 | USER alfresco
42 |
43 | VOLUME $ALF_HOME/alf_data
44 | EXPOSE 8080
45 | CMD ["catalina.sh", "run"]
46 |
--------------------------------------------------------------------------------
/templates/201604-GA/alfresco/assets/alfresco/alfresco-global.properties:
--------------------------------------------------------------------------------
1 | ###############################
2 | ## Common Alfresco Properties #
3 | ###############################
4 |
5 | dir.root=/usr/local/tomcat/alf_data
6 |
7 | alfresco.context=alfresco
8 | alfresco.host=localhost
9 | alfresco.port=443
10 | alfresco.protocol=https
11 |
12 | share.context=share
13 | share.host=localhost
14 | share.port=443
15 | share.protocol=https
16 |
17 | ### database connection properties ###
18 | db.driver=org.postgresql.Driver
19 | db.username=alfresco
20 | db.password=alfresco
21 | db.name=alfresco
22 | db.url=jdbc:postgresql://localhost:5432/alfresco
23 | # Note: your database must also be able to accept at least this many connections. Please see your database documentation for instructions on how to configure this.
24 | db.pool.max=10
25 | db.pool.validate.query=SELECT 1
26 |
27 | # The server mode. Set value here
28 | # UNKNOWN | TEST | BACKUP | PRODUCTION
29 | system.serverMode=TEST
30 |
31 | ### FTP Server Configuration ###
32 | ftp.enabled=false
33 | ftp.port=2121
34 |
35 | cifs.enabled=false
36 |
37 | ### RMI registry port for JMX ###
38 | alfresco.rmi.services.port=50500
39 |
40 | ### External executable locations ###
41 | ooo.exe=/opt/libreoffice5/program/soffice.bin
42 | ooo.host=libreoffice
43 | ooo.enabled=true
44 | ooo.port=8997
45 | img.root=/usr/lib64/ImageMagick-6.7.8
46 | img.dyn=/usr/bin
47 | img.gslib=/usr/bin
48 | img.exe=${img.dyn}/convert
49 | img.config=${img.root}/config
50 | img.coders=${img.root}/modules-Q16/coders
51 | swf.exe=/usr/local/bin/pdf2swf
52 |
53 | jodconverter.enabled=false
54 | jodconverter.officeHome=
55 | jodconverter.portNumbers=8997
56 |
57 | ### E-mail site invitation setting ###
58 | notification.email.siteinvite=false
59 |
60 | ### License location ###
61 | dir.license.external=/opt/alfresco
62 |
63 | ### Solr indexing ###
64 | index.subsystem.name=solr4
65 | dir.keystore=${dir.root}/keystore
66 | solr.host=solr4
67 | solr.port=8080
68 | solr.secureComms=none
69 |
70 | ### Allow extended ResultSet processing
71 | security.anyDenyDenies=false
72 |
73 | ### Smart Folders Config Properties ###
74 | smart.folders.enabled=false
75 |
--------------------------------------------------------------------------------
/templates/201604-GA/alfresco/assets/alfresco/apply_alfresco_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME
9 | required_java_version="1.7"
10 |
11 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
12 | . $CATALINA_HOME/bin/setenv.sh
13 | fi
14 |
15 | # Verify Java installation into ALF_HOME folder
16 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
17 | echo
18 | echo "Found java executable in $ALF_HOME/java"
19 | _java=$ALF_HOME/java/bin/java
20 |
21 | # Verify Java installation into JAVA_HOME
22 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
23 | echo
24 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
25 |
26 | _java="$JAVA_HOME/bin/java"
27 |
28 | # Verify Java installation from linux repositories
29 | elif type -p java; then
30 | echo
31 | echo "Found installed java executable on the system"
32 |
33 | _java=java
34 |
35 | else
36 | echo
37 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
38 | echo "Please install Java and try again. Script will be closed. "
39 | read DUMMY
40 | exit 15
41 | fi
42 |
43 | echo
44 | echo "This script will apply all the AMPs in amps to the alfresco.war file in $CATALINA_HOME/webapps"
45 | echo "Press control-c to stop this script . . ."
46 | echo "Press any other key to continue . . ."
47 | read RESP
48 | {
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps $CATALINA_HOME/webapps/alfresco.war -directory $*
50 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/alfresco.war
51 | } ||
52 | {
53 | echo
54 | echo "Error. Appling of the AMPs is failed. See error message above."
55 | echo
56 | }
57 | echo "About to clean out $ALF_HOME/tomcat/webapps/alfresco directory and temporary files..."
58 | echo "Press control-c to stop this script . . ."
59 | echo "Press any other key to continue . . ."
60 | read DUMMY
61 | rm -rf $CATALINA_HOME/webapps/alfresco
62 | . $ALF_HOME/bin/clean_tomcat.sh
63 | popd>/dev/null
--------------------------------------------------------------------------------
/templates/201604-GA/alfresco/assets/amps/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201604-GA/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
2 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
3 | #JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
4 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
5 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
6 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx1024M" # java-memory-settings
7 | export JAVA_OPTS
8 |
9 |
--------------------------------------------------------------------------------
/templates/201604-GA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3'
2 | services:
3 | alfresco:
4 | build: ./alfresco
5 | links:
6 | - share
7 | - solr4
8 | - libreoffice
9 |
10 | db:
11 | build: ./postgres
12 | network_mode: service:alfresco
13 | environment:
14 | - POSTGRES_DB=alfresco
15 | - POSTGRES_USER=alfresco
16 | - POSTGRES_PASSWORD=alfresco
17 |
18 | share:
19 | build: ./share
20 |
21 | nginx:
22 | build: ./nginx
23 | ports:
24 | - 80:80
25 | - 443:443
26 | links:
27 | - share
28 | - alfresco
29 |
30 | solr4:
31 | build: ./solr4
32 |
33 | libreoffice:
34 | image: xcgd/libreoffice
35 |
--------------------------------------------------------------------------------
/templates/201604-GA/nginx/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM nginx:stable
2 | MAINTAINER keensoft
3 |
4 | RUN set -x \
5 | && mkdir /etc/nginx/ssl
6 |
7 | COPY assets/pki/localhost.crt /etc/nginx/ssl/localhost.crt
8 | COPY assets/pki/localhost.key /etc/nginx/ssl/localhost.key
9 | COPY assets/nginx.conf /etc/nginx/nginx.conf
10 | COPY assets/alfresco.conf /etc/nginx/conf.d/alfresco.conf
11 |
12 |
13 |
--------------------------------------------------------------------------------
/templates/201604-GA/nginx/assets/alfresco.conf:
--------------------------------------------------------------------------------
1 | server
2 | {
3 | listen 80;
4 | server_name localhost;
5 | return 301 https://$server_name$request_uri;
6 | }
7 |
8 | server
9 | {
10 | listen 443 ssl;
11 | server_name localhost;
12 |
13 | ssl on;
14 | ssl_certificate /etc/nginx/ssl/localhost.crt;
15 | ssl_certificate_key /etc/nginx/ssl/localhost.key;
16 | gzip on;
17 | gzip_comp_level 1;
18 | gzip_proxied any;
19 |
20 | location / {
21 | rewrite ^/$ /share;
22 | }
23 |
24 | location /share/ {
25 | proxy_set_header Host $host;
26 | proxy_pass http://share:8080;
27 | }
28 |
29 | location /alfresco/ {
30 | proxy_set_header Host $host;
31 | proxy_pass http://alfresco:8080;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/templates/201604-GA/nginx/assets/nginx.conf:
--------------------------------------------------------------------------------
1 | user nginx;
2 | worker_processes 1;
3 |
4 | error_log /var/log/nginx/error.log warn;
5 | pid /var/run/nginx.pid;
6 |
7 |
8 | events {
9 | worker_connections 1024;
10 | }
11 |
12 |
13 | http {
14 | include /etc/nginx/mime.types;
15 | default_type application/octet-stream;
16 |
17 | proxy_cache_path /var/cache/nginx keys_zone=alf-cache:1512m inactive=1d;
18 |
19 | #pagespeed on;
20 | #pagespeed FileCachePath /var/ngx_pagespeed_cache;
21 | #pagespeed EnableFilters combine_css,combine_javasript,rewrite_javascript;
22 |
23 | log_format main '$remote_addr - $remote_user [$time_local] "$request" '
24 | '$status $body_bytes_sent "$http_referer" '
25 | '"$http_user_agent" "$http_x_forwarded_for"';
26 |
27 | access_log /var/log/nginx/access.log main;
28 |
29 | sendfile on;
30 | #tcp_nopush on;
31 |
32 | keepalive_timeout 65;
33 |
34 | #gzip on;
35 |
36 | include /etc/nginx/conf.d/alfresco.conf;
37 | }
38 |
--------------------------------------------------------------------------------
/templates/201604-GA/nginx/assets/pki/localhost.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDujCCAqKgAwIBAgIBCDANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJFUzEP
3 | MA0GA1UEBxMGTWFkcmlkMREwDwYDVQQKEwhrZWVuc29mdDELMAkGA1UECxMCSVQx
4 | DTALBgNVBAMTBFJPT1QxIDAeBgkqhkiG9w0BCQEWEWFkbWluQGtlZW5zb2Z0LmVz
5 | MB4XDTE3MDIxMjA2NDcwMFoXDTE3MDkwNjA3MzcwMFowYTELMAkGA1UEBhMCRVMx
6 | DjAMBgNVBAgTBVNwYWluMQ8wDQYDVQQHEwZNYWRyaWQxETAPBgNVBAoTCGtlZW5z
7 | b2Z0MQswCQYDVQQLEwJJVDERMA8GA1UEAxMIYWxmcmVzY28wggEiMA0GCSqGSIb3
8 | DQEBAQUAA4IBDwAwggEKAoIBAQDyADMdFg6pdXymN4lBTnc6b0rB2CYAkXZh4Uwr
9 | qZTF1ArHOqH4oc890MnhVAqVMf0RVhHSZhYX/4nFFagJhcQM2iz6vM7YL6xWarhK
10 | HqPJQW2PLZ+OsMu8l7WuVVFIpouf0M66lUv9I7laBAkFJlLYk7xdbpXjQ4aBH4fT
11 | pvcSILZMdeBjTSIZKhItzg1aRd02i1Zqxb+WFKPzReN/zTt4DOlNXunThvU5/Q9a
12 | 9hZQoG6aIZyRra3Cvuvcc9ZAzsrIxBZpq7HUDzkU7kJ/klh44y2sMkLRd0muP8QO
13 | amZSxsbaoD0VdjF0QwDXoCPvwDe6BUZ6nFbpD8oKcfLf2wBRAgMBAAGjbzBtMAwG
14 | A1UdEwEB/wQCMAAwHQYDVR0OBBYEFADNnSpNxptKZS0Lu/liMSkEg8dWMAsGA1Ud
15 | DwQEAwIEsDARBglghkgBhvhCAQEEBAMCBaAwHgYJYIZIAYb4QgENBBEWD3hjYSBj
16 | ZXJ0aWZpY2F0ZTANBgkqhkiG9w0BAQUFAAOCAQEAP41arJUkCtnUDme1M2TdNNkT
17 | Krz/gB6nK3ynniGkDrKC3aWkH1xmRuEGo/+fOWZsVE5jexj19vtE0+9SZmOuUVSM
18 | /BmvGBZq02fAvD52wiukRw1njG9alF6JPQrknyV3XYiUNH5BEUgDg9xwqPJwLz8j
19 | b2ocUmAGsx2p8IxUp1fzlPi9LNi8f5rTZS6keKiURKgR9qOivl1i+/oR6NAhX61V
20 | Snr4F1XV6k0ZMiKaNguHNnKcK8lXREBHynKh3ncgXoWeJUh4kMR1UqSgVYLGwHrr
21 | DfPN10fstI3K8G4qPNw2vt9FMWLwT5479BPSg5khGhScuX/lVrw/mru1LMLf+g==
22 | -----END CERTIFICATE-----
23 |
--------------------------------------------------------------------------------
/templates/201604-GA/nginx/assets/pki/localhost.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEogIBAAKCAQEA8gAzHRYOqXV8pjeJQU53Om9KwdgmAJF2YeFMK6mUxdQKxzqh
3 | +KHPPdDJ4VQKlTH9EVYR0mYWF/+JxRWoCYXEDNos+rzO2C+sVmq4Sh6jyUFtjy2f
4 | jrDLvJe1rlVRSKaLn9DOupVL/SO5WgQJBSZS2JO8XW6V40OGgR+H06b3EiC2THXg
5 | Y00iGSoSLc4NWkXdNotWasW/lhSj80Xjf807eAzpTV7p04b1Of0PWvYWUKBumiGc
6 | ka2twr7r3HPWQM7KyMQWaaux1A85FO5Cf5JYeOMtrDJC0XdJrj/EDmpmUsbG2qA9
7 | FXYxdEMA16Aj78A3ugVGepxW6Q/KCnHy39sAUQIDAQABAoIBAEaL+lqTUIjkAAdw
8 | jymjlyxIv1FNEp79yLX1+L+NuxoEm3PCyu7xNLn/gKqYVlFx9iU0oxNjwTMTwnTa
9 | wFauUR2yCIS7v8zT8PhsOfcZgYOs+CRSF36AWZRL4aHFq2Fzc6aON4W6+iD8Zg8w
10 | t/RxXJtYTgQqtbU/vRktOOphdQsqPvd/jvRJXw6XiJETMsHiQWhUwXpTyTrESAAB
11 | MWMCoSS0qxwYogX6Ep1xJGbiQEt4mStZzxiCcXmFohteAuwzMsIsAOIhH58JbyN9
12 | Xqj3bkt8bK6Q/dAH1n0Szl8a/cqhhPOI/Ttu3rKbdTnAtu+qUkOL5IAr0OsCqTnt
13 | yXTa6uUCgYEA/MexqioWv4bKQDU62V+INHIBxC2ftkzWx1bTafZBay6R3uXkzSSY
14 | G9j084eVRoB6CxcYs8Jd1Y3u3vKN0lIfSm7WI+E98Nuzx4m6Ww0jkE0NIkfNU5nB
15 | MQX3mOgqed8IXR7JvS1bR80rRkxUvYXVJ+ovQAyGtbIIpg7sl0g7/pcCgYEA9RVa
16 | 2CxswZNfEVRn5c4Ni0D9se2JrpAsJovlYoAnHQJDm9xCHQYHgorhya+DEn5Oce44
17 | AM3l0D9UeHj2/SLLjB/mG51Kt5MplMW9Kv1z5abLfypFYvoNBrP50J9nge4a5yPj
18 | CAqRT2PFViol4p+Nsa5jcbhT3q5wCwmyk43OvVcCgYADCBoXYl3XejRexMSp6r1l
19 | c6CVy75In29MALyUXsG2GV7if3tZAoFYhCeb7BpcOBo+m85OCZy6fPNKdTpCNX3u
20 | lJm44HCvvNLRJ9O2V9f/WQ05RgcuY3+vqNSpXs9zmrss8ruUq0CXAdztAOlbRImj
21 | 6ukaKYxMDZCQ/UjVH6aojQKBgGDh3zaDYT6odjVQi33RlZMNzvvuLbYe8gUO2k+0
22 | 30FdasKLMGtuvbtCEX177zF5UqNBC0xuGEHZNxgkoWZxwcsTtRAHfsjQ2OghvuTm
23 | qlEHPXx4hlNZC5sxvDhXO0CmkmX6zr2YB9c9Vn34TV+nuQibKl6DAkyN4mbKn5gq
24 | v6YjAoGAdDiKFXLB/mTBA0ahHYfLPt6dKS+64P3S4OSVqcUTF84nC0ZFtBP3UI6V
25 | e5OAcwZgatkXSFjXEJN3mhs+1WQRAi3PvEAKrek4/1vNKFhjqKBC3RtTzQMSDmEq
26 | psK+JpIWIp8zDacnw6Y1zvqHg21CBHxxMLh3GKi/p6XyDxPHb3c=
27 | -----END RSA PRIVATE KEY-----
28 |
--------------------------------------------------------------------------------
/templates/201604-GA/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i es_ES -c -f UTF-8 -A /usr/share/locale/locale.alias es_ES.UTF-8
3 | ENV LANG es_ES.utf8
4 |
--------------------------------------------------------------------------------
/templates/201604-GA/share/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201604-GA
2 | MAINTAINER keensoft.es
3 |
4 | WORKDIR $CATALINA_HOME
5 | ENV ALF_HOME $CATALINA_HOME
6 |
7 | # basic configuration
8 | RUN set -x \
9 | && mkdir -p conf/Catalina/localhost \
10 | && mv $DIST/web-server/shared . \
11 | && mv $DIST/web-server/webapps/share.war webapps/share.war \
12 | && cp -r $DIST/bin . \
13 | && mv $DIST/licenses . \
14 | && mv $DIST/README.txt . \
15 | && rm -rf webapps/docs \
16 | && rm -rf webapps/examples \
17 | && mkdir shared/lib amps_share \
18 | && rm -rf $DIST
19 |
20 |
21 | COPY assets/tomcat/catalina.properties conf/catalina.properties
22 | COPY assets/tomcat/setenv.sh bin/setenv.sh
23 | COPY assets/share/share-config-custom.xml shared/classes/alfresco/web-extension/share-config-custom.xml
24 |
25 | # AMPS installation
26 | COPY assets/share/apply_share_amps.sh bin/apply_amps.sh
27 | COPY assets/amps_share/* amps_share/
28 | RUN bash ./bin/apply_amps.sh -force -nobackup
29 |
30 | ENV PATH $ALF_HOME/bin:$PATH
31 |
32 | RUN useradd -ms /bin/bash alfresco
33 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
34 | USER alfresco
35 |
36 | EXPOSE 8080
37 | CMD ["catalina.sh", "run"]
38 |
--------------------------------------------------------------------------------
/templates/201604-GA/share/assets/amps_share/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201604-GA/share/assets/share/apply_share_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME
9 | required_java_version="1.7"
10 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
11 | . $CATALINA_HOME/bin/setenv.sh
12 | fi
13 |
14 | # Verify Java installation into ALF_HOME folder
15 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
16 | echo
17 | echo "Found java executable in $ALF_HOME/java"
18 | _java=$ALF_HOME/java/bin/java
19 |
20 | # Verify Java installation into JAVA_HOME
21 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
22 | echo
23 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
24 |
25 | _java="$JAVA_HOME/bin/java"
26 |
27 | # Verify Java installation from linux repositories
28 | elif type -p java; then
29 | echo
30 | echo "Found installed java executable on the system"
31 |
32 | _java=java
33 |
34 | else
35 | echo
36 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
37 | echo "Please install Java and try again. Script will be closed. "
38 | read DUMMY
39 | exit 15
40 | fi
41 |
42 | echo
43 | echo "This script will apply all the AMPs in amps_share to the share.war file in $CATALINA_HOME/webapps"
44 | echo "Press control-c to stop this script . . ."
45 | echo "Press any other key to continue . . ."
46 | read RESP
47 | {
48 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps_share $CATALINA_HOME/webapps/share.war -directory $*
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/share.war
50 | } ||
51 | {
52 | echo
53 | echo "Error. Appling of the AMPs is failed. See error message above."
54 | echo
55 | }
56 | echo "About to clean out $ALF_HOME/tomcat/webapps/share directory and temporary files..."
57 | echo "Press control-c to stop this script . . ."
58 | echo "Press any other key to continue . . ."
59 | read DUMMY
60 | rm -rf $CATALINA_HOME/webapps/share
61 | . $ALF_HOME/bin/clean_tomcat.sh
62 | popd>/dev/null
63 |
--------------------------------------------------------------------------------
/templates/201604-GA/share/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
2 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
3 | #JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
4 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
5 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
6 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx1024M" # java-memory-settings
7 | export JAVA_OPTS
8 |
9 |
--------------------------------------------------------------------------------
/templates/201604-GA/solr4/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201604-GA
2 | MAINTAINER keensoft
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y sed \
10 | && yum clean all
11 |
12 | WORKDIR $CATALINA_HOME
13 | ENV SOLR4_HOME $CATALINA_HOME/solr4
14 | ENV ALF_HOME $CATALINA_HOME
15 |
16 | # basic Solr4 configuration
17 | RUN set -x \
18 | && mkdir -p conf/Catalina/localhost \
19 | && mv $DIST/web-server/webapps/solr4.war webapps/solr4.war \
20 | && mv $DIST/alf_data . \
21 | && mv $DIST/solr4/context.xml conf/Catalina/localhost/solr4.xml \
22 | && mv $DIST/solr4 . \
23 | && mv $DIST/licenses . \
24 | && mv $DIST/README.txt .
25 |
26 | RUN set -x \
27 | && sed -i 's,@@ALFRESCO_SOLR4_DIR@@,'"$ALF_HOME"'/solr4,g' conf/Catalina/localhost/solr4.xml \
28 | && sed -i 's,@@ALFRESCO_SOLR4_MODEL_DIR@@,'"$ALF_HOME"'/alf_data/solr4/model,g' conf/Catalina/localhost/solr4.xml \
29 | && sed -i 's,@@ALFRESCO_SOLR4_CONTENT_DIR@@,'"$ALF_HOME"'/alf_data/solr4/content,g' conf/Catalina/localhost/solr4.xml \
30 |
31 | && sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"$ALF_HOME"'/alf_data/solr4/index,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
32 | && sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"$ALF_HOME"'/alf_data/solr4/index,g' solr4/archive-SpacesStore/conf/solrcore.properties \
33 |
34 | && sed -i 's,alfresco.host=localhost,alfresco.host=alfresco,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
35 | && sed -i 's,alfresco.host=localhost,alfresco.host=alfresco,g' solr4/archive-SpacesStore/conf/solrcore.properties \
36 | && sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
37 | && sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/archive-SpacesStore/conf/solrcore.properties
38 |
39 | ENV PATH $ALF_HOME/bin:$PATH
40 | ENV LANG es_ES.utf8
41 |
42 | RUN useradd -ms /bin/bash solr
43 | RUN set -x && chown -RL solr:solr $ALF_HOME
44 | USER solr
45 |
46 | EXPOSE 8080
47 | CMD ["catalina.sh", "run"]
48 |
--------------------------------------------------------------------------------
/templates/201605-GA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201605-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y \
10 | ImageMagick \
11 | ghostscript \
12 | && yum clean all
13 |
14 | WORKDIR $CATALINA_HOME
15 | ENV ALF_HOME $CATALINA_HOME
16 |
17 | # basic configuration
18 | RUN set -x \
19 | && mkdir -p conf/Catalina/localhost shared/classes/alfresco/extension\
20 | && mv $DIST/web-server/webapps/alfresco.war webapps/alfresco.war \
21 | && mv $DIST/web-server/lib/*.jar lib/ \
22 | && mv $DIST/alf_data . \
23 | && mv $DIST/amps . \
24 | && cp -r $DIST/bin . \
25 | && mv $DIST/licenses . \
26 | && mv $DIST/README.txt . \
27 | && rm -rf webapps/docs \
28 | && rm -rf webapps/examples \
29 | && rm -rf /tmp/alfresco \
30 | && mkdir -p shared/lib
31 |
32 | COPY assets/tomcat/catalina.properties conf/catalina.properties
33 | COPY assets/tomcat/setenv.sh bin/setenv.sh
34 | COPY assets/alfresco/alfresco-global.properties shared/classes/alfresco-global.properties
35 | COPY assets/cas/java-cas-client.properties /etc/java-cas-client.properties
36 | COPY assets/cas/cacerts /usr/java/default/jre/lib/security/cacerts
37 |
38 | # AMPS installation
39 | COPY assets/alfresco/apply_alfresco_amps.sh bin/apply_amps.sh
40 | COPY assets/amps amps
41 | RUN bash ./bin/apply_amps.sh -nobackup -force
42 |
43 | ENV PATH $ALF_HOME/bin:$PATH
44 | ENV LANG es_ES.utf8
45 |
46 | RUN useradd -ms /bin/bash alfresco
47 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
48 | USER alfresco
49 |
50 | VOLUME $ALF_HOME/alf_data
51 | CMD ["catalina.sh", "run"]
52 |
--------------------------------------------------------------------------------
/templates/201605-GA/alfresco/assets/alfresco/alfresco-global.properties:
--------------------------------------------------------------------------------
1 | ###############################
2 | ## Common Alfresco Properties #
3 | ###############################
4 |
5 | authentication.chain=alfrescoNtlm1:alfrescoNtlm,external1:external
6 |
7 | external.authentication.proxyUserName=
8 | external.authentication.defaultAdministratorUserNames=admin
9 | external.authentication.proxyHeader=X-Alfresco-Remote-User
10 |
11 | dir.root=/usr/local/tomcat/alf_data
12 |
13 | alfresco.context=alfresco
14 | alfresco.host=alfresco
15 | alfresco.port=443
16 | alfresco.protocol=https
17 |
18 | share.context=share
19 | share.host=alfresco
20 | share.port=443
21 | share.protocol=https
22 |
23 | ### database connection properties ###
24 | db.driver=org.postgresql.Driver
25 | db.username=alfresco
26 | db.password=alfresco
27 | db.name=alfresco
28 | db.url=jdbc:postgresql://localhost:5432/alfresco
29 | # Note: your database must also be able to accept at least this many connections. Please see your database documentation for instructions on how to configure this.
30 | db.pool.max=10
31 | db.pool.validate.query=SELECT 1
32 |
33 | # The server mode. Set value here
34 | # UNKNOWN | TEST | BACKUP | PRODUCTION
35 | system.serverMode=TEST
36 |
37 | ### FTP Server Configuration ###
38 | ftp.enabled=false
39 | ftp.port=2121
40 |
41 | cifs.enabled=false
42 |
43 | ### RMI registry port for JMX ###
44 | alfresco.rmi.services.port=50500
45 |
46 | ### External executable locations ###
47 | ooo.exe=/opt/libreoffice5/program/soffice.bin
48 | ooo.host=libreoffice
49 | ooo.enabled=true
50 | ooo.port=8997
51 | img.root=/usr/lib64/ImageMagick-6.7.8
52 | img.dyn=/usr/bin
53 | img.gslib=/usr/bin
54 | img.exe=${img.dyn}/convert
55 | img.config=${img.root}/config
56 | img.coders=${img.root}/modules-Q16/coders
57 | swf.exe=/usr/local/bin/pdf2swf
58 |
59 | jodconverter.enabled=false
60 | jodconverter.officeHome=
61 | jodconverter.portNumbers=8100
62 |
63 | ### Initial admin password ###
64 | alfresco_user_store.adminpassword=209c6174da490caeb422f3fa5a7ae634
65 |
66 | ### E-mail site invitation setting ###
67 | notification.email.siteinvite=false
68 |
69 | ### License location ###
70 | dir.license.external=/opt/alfresco
71 |
72 | ### Solr indexing ###
73 | index.subsystem.name=solr4
74 | dir.keystore=${dir.root}/keystore
75 | solr.host=solr4
76 | solr.port=8080
77 | solr.secureComms=none
78 |
79 | ### Allow extended ResultSet processing
80 | security.anyDenyDenies=false
81 |
82 | ### Smart Folders Config Properties ###
83 | smart.folders.enabled=false
84 |
--------------------------------------------------------------------------------
/templates/201605-GA/alfresco/assets/alfresco/apply_alfresco_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME
9 | required_java_version="1.7"
10 |
11 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
12 | . $CATALINA_HOME/bin/setenv.sh
13 | fi
14 |
15 | # Verify Java installation into ALF_HOME folder
16 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
17 | echo
18 | echo "Found java executable in $ALF_HOME/java"
19 | _java=$ALF_HOME/java/bin/java
20 |
21 | # Verify Java installation into JAVA_HOME
22 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
23 | echo
24 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
25 |
26 | _java="$JAVA_HOME/bin/java"
27 |
28 | # Verify Java installation from linux repositories
29 | elif type -p java; then
30 | echo
31 | echo "Found installed java executable on the system"
32 |
33 | _java=java
34 |
35 | else
36 | echo
37 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
38 | echo "Please install Java and try again. Script will be closed. "
39 | read DUMMY
40 | exit 15
41 | fi
42 |
43 | echo
44 | echo "This script will apply all the AMPs in amps to the alfresco.war file in $CATALINA_HOME/webapps"
45 | echo "Press control-c to stop this script . . ."
46 | echo "Press any other key to continue . . ."
47 | read RESP
48 | {
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps $CATALINA_HOME/webapps/alfresco.war -directory $*
50 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/alfresco.war
51 | } ||
52 | {
53 | echo
54 | echo "Error. Appling of the AMPs is failed. See error message above."
55 | echo
56 | }
57 | echo "About to clean out $ALF_HOME/tomcat/webapps/alfresco directory and temporary files..."
58 | echo "Press control-c to stop this script . . ."
59 | echo "Press any other key to continue . . ."
60 | read DUMMY
61 | rm -rf $CATALINA_HOME/webapps/alfresco
62 | . $ALF_HOME/bin/clean_tomcat.sh
63 | popd>/dev/null
--------------------------------------------------------------------------------
/templates/201605-GA/alfresco/assets/amps/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201605-GA/alfresco/assets/cas/cacerts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201605-GA/alfresco/assets/cas/cacerts
--------------------------------------------------------------------------------
/templates/201605-GA/alfresco/assets/cas/java-cas-client.properties:
--------------------------------------------------------------------------------
1 | casServerLoginUrl=https://cas:8443/cas/login
2 | serverName=https://localhost
3 | ticketValidatorClass=org.jasig.cas.client.validation.Cas30ServiceTicketValidator
4 | casServerUrlPrefix=https://cas:8443/cas
5 |
--------------------------------------------------------------------------------
/templates/201605-GA/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
2 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
3 | #JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
4 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
5 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
6 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx1024M" # java-memory-settings
7 | export JAVA_OPTS
8 |
9 |
--------------------------------------------------------------------------------
/templates/201605-GA/cas/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/centos7-java8-tomcat7
2 |
3 | COPY assets/cas.war $CATALINA_HOME/webapps/cas.war
4 | COPY assets/server.xml $CATALINA_HOME/conf/server.xml
5 | COPY assets/keystore $CATALINA_HOME/conf/keystore
6 |
7 | EXPOSE 8443
8 |
9 |
10 |
--------------------------------------------------------------------------------
/templates/201605-GA/cas/assets/cas.war:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201605-GA/cas/assets/cas.war
--------------------------------------------------------------------------------
/templates/201605-GA/cas/assets/keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201605-GA/cas/assets/keystore
--------------------------------------------------------------------------------
/templates/201605-GA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | alfresco:
4 | build: ./alfresco
5 | links:
6 | - share
7 | - httpd
8 | - solr4
9 | - libreoffice
10 | - cas
11 |
12 | db:
13 | build: ./postgres
14 | network_mode: service:alfresco
15 | environment:
16 | - POSTGRES_DB=alfresco
17 | - POSTGRES_USER=alfresco
18 | - POSTGRES_PASSWORD=alfresco
19 |
20 | httpd:
21 | build: ./httpd
22 | ports:
23 | - 80:80
24 | - 443:443
25 |
26 | share:
27 | build: ./share
28 | links:
29 | - cas
30 | - httpd
31 |
32 | solr4:
33 | build: ./solr4
34 |
35 | libreoffice:
36 | image: xcgd/libreoffice
37 |
38 | cas:
39 | build: ./cas
40 | ports:
41 | - 8443:8443
42 | links:
43 | - ldap
44 |
45 | ldap:
46 | build: ./openldap
47 | ports:
48 | - 389:389
49 | - 636:636
50 |
--------------------------------------------------------------------------------
/templates/201605-GA/httpd/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM centos:centos7
2 | MAINTAINER keensoft
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y \
10 | httpd \
11 | mod_ssl
12 |
13 | RUN set -x \
14 | && mkdir -p /etc/pki/CA/{certs,crl,newcerts,private} \
15 | && touch /etc/pki/CA/index.txt \
16 | && echo 01 > /etc/pki/CA/serial \
17 | && cd /etc/pki/CA \
18 | && umask 077
19 |
20 | COPY assets/pki/CA/private/cakey.pem /etc/pki/CA/private/cakey.pem
21 | COPY assets/pki/CA/cacert.pem /etc/pki/CA/cacert.pem
22 | COPY assets/pki/CA/private/server.key /etc/pki/tls/private/localhost.key
23 | COPY assets/pki/CA/certs/server.crt /etc/pki/tls/certs/localhost.crt
24 |
25 | RUN set -x \
26 | && cp /etc/pki/CA/cacert.pem /etc/pki/tls/certs/cacert.pem \
27 | && cd /etc/pki/tls/certs \
28 | && ln -s cacert.pem $(openssl x509 -hash -noout -in cacert.pem).0
29 |
30 | COPY assets/alfresco.conf /etc/httpd/conf.d/alfresco.conf
31 |
32 | EXPOSE 80 443
33 | CMD httpd -DFOREGROUND
34 |
--------------------------------------------------------------------------------
/templates/201605-GA/httpd/assets/alfresco.conf:
--------------------------------------------------------------------------------
1 |
2 | ServerName alfresco
3 |
4 | RewriteEngine on
5 | RewriteCond %{HTTPS} !=on
6 | RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
7 |
8 |
9 |
10 |
11 | ServerName alfresco
12 |
13 | SSLEngine on
14 | SSLCertificateFile /etc/pki/tls/certs/localhost.crt
15 | SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
16 | SSLCACertificatePath /etc/pki/tls/certs/
17 | SSLOptions +StdEnvVars +ExportCertData
18 |
19 | ProxyPass /share ajp://share:8009/share
20 | ProxyPassReverse /share ajp://share:8009/share
21 | ProxyPass /alfresco ajp://alfresco:8009/alfresco
22 | ProxyPassReverse /alfresco ajp://alfresco:8009/alfresco
23 |
24 |
25 |
--------------------------------------------------------------------------------
/templates/201605-GA/httpd/assets/pki/CA/cacert.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDdjCCAl6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJFUzEP
3 | MA0GA1UEBxMGTWFkcmlkMREwDwYDVQQKEwhrZWVuc29mdDELMAkGA1UECxMCSVQx
4 | DTALBgNVBAMTBFJPT1QxIDAeBgkqhkiG9w0BCQEWEWFkbWluQGtlZW5zb2Z0LmVz
5 | MB4XDTE2MDkwNjA3MzcwMFoXDTE3MDkwNjA3MzcwMFowbzELMAkGA1UEBhMCRVMx
6 | DzANBgNVBAcTBk1hZHJpZDERMA8GA1UEChMIa2VlbnNvZnQxCzAJBgNVBAsTAklU
7 | MQ0wCwYDVQQDEwRST09UMSAwHgYJKoZIhvcNAQkBFhFhZG1pbkBrZWVuc29mdC5l
8 | czCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ5+ZYcqMrmPn0PLaIjN
9 | f3azPwSd2N7SaRkHyi3BhjmdG7kEe+ptHw2s6yGPghj8O1a3DcmmvrAffydBtl/z
10 | W3GeyfPTCQHC8VBJBso/oAQJ72Kbmpv5damryW14BpKIkeuXnvJaZhfzimjqPxw3
11 | OSa1FEU3ZhgckjDQqc6+W4+5LdEL6gJ2f3aBgKr/DWXuyJSTPqqW54NeX81Ukr79
12 | vvROT4d0KmYoo2SIpieAdwe9ncx2YHDvbB8kTG7e1CHy8T1nLrQbM+gHtsAUvCkC
13 | Sp4dSEP5qsgBzV4m3QT1YD8OC33akvENdW7wvSckwJhNXGG7S8jyxFA+ahkA4y1Q
14 | H+8CAwEAAaMdMBswDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAowwDQYJKoZIhvcN
15 | AQEFBQADggEBABDS8qfKNAHOrsvs7SnIoFkpY73dcKnWPv4AtZ3tPJCFm/8wdd0j
16 | 3C8jDptqCCjtKq30JhgeyA7Ty9ouwHHSH+fSdN/ppC5BTMp56wDtCISMOeSyTMuq
17 | 2/v18xXqjeWOhv+ADve5zmXBSEFUVtAsdqBpqHTssbnhnwv3NPpsJOO4LbMD+mJe
18 | 1kVzgjTSFTXtfaQzVN75PFnsreRPj6QrSsucksN3MU6GVpuVxFtSkvhRfwzsFptv
19 | x/hGjbAypl2yM+2WHxau4cNK2gBC/GDWhLi8rG4CAzXeFvAyKrXFs2to9Y1eRc2x
20 | Sbl85sBzsTY7U7UD0N3499vgx+gJeaQUXWI=
21 | -----END CERTIFICATE-----
22 |
--------------------------------------------------------------------------------
/templates/201605-GA/httpd/assets/pki/CA/certs/server.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDujCCAqKgAwIBAgIBCDANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJFUzEP
3 | MA0GA1UEBxMGTWFkcmlkMREwDwYDVQQKEwhrZWVuc29mdDELMAkGA1UECxMCSVQx
4 | DTALBgNVBAMTBFJPT1QxIDAeBgkqhkiG9w0BCQEWEWFkbWluQGtlZW5zb2Z0LmVz
5 | MB4XDTE3MDIxMjA2NDcwMFoXDTE3MDkwNjA3MzcwMFowYTELMAkGA1UEBhMCRVMx
6 | DjAMBgNVBAgTBVNwYWluMQ8wDQYDVQQHEwZNYWRyaWQxETAPBgNVBAoTCGtlZW5z
7 | b2Z0MQswCQYDVQQLEwJJVDERMA8GA1UEAxMIYWxmcmVzY28wggEiMA0GCSqGSIb3
8 | DQEBAQUAA4IBDwAwggEKAoIBAQDyADMdFg6pdXymN4lBTnc6b0rB2CYAkXZh4Uwr
9 | qZTF1ArHOqH4oc890MnhVAqVMf0RVhHSZhYX/4nFFagJhcQM2iz6vM7YL6xWarhK
10 | HqPJQW2PLZ+OsMu8l7WuVVFIpouf0M66lUv9I7laBAkFJlLYk7xdbpXjQ4aBH4fT
11 | pvcSILZMdeBjTSIZKhItzg1aRd02i1Zqxb+WFKPzReN/zTt4DOlNXunThvU5/Q9a
12 | 9hZQoG6aIZyRra3Cvuvcc9ZAzsrIxBZpq7HUDzkU7kJ/klh44y2sMkLRd0muP8QO
13 | amZSxsbaoD0VdjF0QwDXoCPvwDe6BUZ6nFbpD8oKcfLf2wBRAgMBAAGjbzBtMAwG
14 | A1UdEwEB/wQCMAAwHQYDVR0OBBYEFADNnSpNxptKZS0Lu/liMSkEg8dWMAsGA1Ud
15 | DwQEAwIEsDARBglghkgBhvhCAQEEBAMCBaAwHgYJYIZIAYb4QgENBBEWD3hjYSBj
16 | ZXJ0aWZpY2F0ZTANBgkqhkiG9w0BAQUFAAOCAQEAP41arJUkCtnUDme1M2TdNNkT
17 | Krz/gB6nK3ynniGkDrKC3aWkH1xmRuEGo/+fOWZsVE5jexj19vtE0+9SZmOuUVSM
18 | /BmvGBZq02fAvD52wiukRw1njG9alF6JPQrknyV3XYiUNH5BEUgDg9xwqPJwLz8j
19 | b2ocUmAGsx2p8IxUp1fzlPi9LNi8f5rTZS6keKiURKgR9qOivl1i+/oR6NAhX61V
20 | Snr4F1XV6k0ZMiKaNguHNnKcK8lXREBHynKh3ncgXoWeJUh4kMR1UqSgVYLGwHrr
21 | DfPN10fstI3K8G4qPNw2vt9FMWLwT5479BPSg5khGhScuX/lVrw/mru1LMLf+g==
22 | -----END CERTIFICATE-----
23 |
--------------------------------------------------------------------------------
/templates/201605-GA/httpd/assets/pki/CA/index.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201605-GA/httpd/assets/pki/CA/index.txt
--------------------------------------------------------------------------------
/templates/201605-GA/httpd/assets/pki/CA/private/cakey.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEowIBAAKCAQEAnn5lhyoyuY+fQ8toiM1/drM/BJ3Y3tJpGQfKLcGGOZ0buQR7
3 | 6m0fDazrIY+CGPw7VrcNyaa+sB9/J0G2X/NbcZ7J89MJAcLxUEkGyj+gBAnvYpua
4 | m/l1qavJbXgGkoiR65ee8lpmF/OKaOo/HDc5JrUURTdmGBySMNCpzr5bj7kt0Qvq
5 | AnZ/doGAqv8NZe7IlJM+qpbng15fzVSSvv2+9E5Ph3QqZiijZIimJ4B3B72dzHZg
6 | cO9sHyRMbt7UIfLxPWcutBsz6Ae2wBS8KQJKnh1IQ/mqyAHNXibdBPVgPw4LfdqS
7 | 8Q11bvC9JyTAmE1cYbtLyPLEUD5qGQDjLVAf7wIDAQABAoIBAEJm0CB11HSbsG0V
8 | zkDqX4mahT9o5lBMNQ3wjorm9lYy9UdpkoTfnM/87zHLTwUqv62P2a3vNxrQx1Pq
9 | Gv9OFLSggxmtA6wCQVmSjs6zI1Yt12YnrPnF5L7mIujDDXXc082xYz1EFFvag9V6
10 | tmAa3s3RtaFeGV7msXTUJyBf7jpjAM78Tasdbpa5L5AHz5o7dEuX5w1A4hbSQviI
11 | vyN5JJg2P5BdL8VpWmJ5b7id+PErblAKj5F1iicA4E8iHvwJrMlGMCcrcDK8xL14
12 | TpA6JeKq74Xj3sIncUJBH6VrbgJrRunwIVIQWfHVp7DPfmi+WgWUKqZWOmb1c4n6
13 | DlmIApkCgYEA0zS799+RoeN1wvHNaQQLOIPg49AIqMShS8zZSFyF10upkEwY8ok9
14 | rrrlWxafFmEnHKy9D1lSucgZmeuWYar/ipBy7p404qKvlayiaSp2BTwAotiHrDFL
15 | 4xvh6bTUzkZjOEr/ZsQ8E0nLEWuVMFYOMpc5gH51ZVnQbJYWdGRCvFsCgYEAwBuw
16 | 89kT3A2d7v861rOqklIz9QwQn8Uad0g/n0PpfpsNFLllYTeZQRmGCKJhDPgvaHe9
17 | km6s7sokaLmnlbKDeNkQiy8y17w2R6Ltl5Vl9YJTrDV+r/F+SUUXQY1a5SPQht0f
18 | 5RlTPk2dmKbvY+A6rkWPHZFSojjJnmDEVUxdDv0CgYBqLnThpTBeJzCpFU+joDjT
19 | 7Nk/LvNrhY9hwFbsnjdbidpxhRB1vrGYCrYMGU9ZvPYg4GccNFf2trbIPzyXVZSr
20 | YPunIzqLRiboJKZyILq83vGi7SEoXJA+WWI2UIc8PP7c6jeEvttFBzBkTaXvaxQw
21 | Mv7hrrHuhjzWmo4nbdBvSQKBgD87HhQ0+B9u7/PRWEmA23zLx8Q5U2NzGdH3GtHO
22 | JZWBbV3L4/2KskvGHeLLp4wASIJnHyOKgCscp708lldkaXemYpadU2vEzEzp6LAD
23 | AYs8eVPuS6OXpgxxzETMRQW0sxcgwzXCDy8rltq+336NOGNSC9gclAlHDb2udhDp
24 | UJv1AoGBALmbkRYjrWqj5B1S1etto2YqeZINXl+tQHsnu5v92nNqegXV0D08huOp
25 | GNjUQdVLJlYBxhbVtNZ/YV0/GgxYSbcB9TXZuZKxbT4iIc39q1e+kIroRvxXNYbb
26 | w8zQ1CCqOgzPytGe8bOD0fr0BquDKhStO9dlGa+hJbzdac9e3NgZ
27 | -----END RSA PRIVATE KEY-----
28 |
--------------------------------------------------------------------------------
/templates/201605-GA/httpd/assets/pki/CA/private/server.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEogIBAAKCAQEA8gAzHRYOqXV8pjeJQU53Om9KwdgmAJF2YeFMK6mUxdQKxzqh
3 | +KHPPdDJ4VQKlTH9EVYR0mYWF/+JxRWoCYXEDNos+rzO2C+sVmq4Sh6jyUFtjy2f
4 | jrDLvJe1rlVRSKaLn9DOupVL/SO5WgQJBSZS2JO8XW6V40OGgR+H06b3EiC2THXg
5 | Y00iGSoSLc4NWkXdNotWasW/lhSj80Xjf807eAzpTV7p04b1Of0PWvYWUKBumiGc
6 | ka2twr7r3HPWQM7KyMQWaaux1A85FO5Cf5JYeOMtrDJC0XdJrj/EDmpmUsbG2qA9
7 | FXYxdEMA16Aj78A3ugVGepxW6Q/KCnHy39sAUQIDAQABAoIBAEaL+lqTUIjkAAdw
8 | jymjlyxIv1FNEp79yLX1+L+NuxoEm3PCyu7xNLn/gKqYVlFx9iU0oxNjwTMTwnTa
9 | wFauUR2yCIS7v8zT8PhsOfcZgYOs+CRSF36AWZRL4aHFq2Fzc6aON4W6+iD8Zg8w
10 | t/RxXJtYTgQqtbU/vRktOOphdQsqPvd/jvRJXw6XiJETMsHiQWhUwXpTyTrESAAB
11 | MWMCoSS0qxwYogX6Ep1xJGbiQEt4mStZzxiCcXmFohteAuwzMsIsAOIhH58JbyN9
12 | Xqj3bkt8bK6Q/dAH1n0Szl8a/cqhhPOI/Ttu3rKbdTnAtu+qUkOL5IAr0OsCqTnt
13 | yXTa6uUCgYEA/MexqioWv4bKQDU62V+INHIBxC2ftkzWx1bTafZBay6R3uXkzSSY
14 | G9j084eVRoB6CxcYs8Jd1Y3u3vKN0lIfSm7WI+E98Nuzx4m6Ww0jkE0NIkfNU5nB
15 | MQX3mOgqed8IXR7JvS1bR80rRkxUvYXVJ+ovQAyGtbIIpg7sl0g7/pcCgYEA9RVa
16 | 2CxswZNfEVRn5c4Ni0D9se2JrpAsJovlYoAnHQJDm9xCHQYHgorhya+DEn5Oce44
17 | AM3l0D9UeHj2/SLLjB/mG51Kt5MplMW9Kv1z5abLfypFYvoNBrP50J9nge4a5yPj
18 | CAqRT2PFViol4p+Nsa5jcbhT3q5wCwmyk43OvVcCgYADCBoXYl3XejRexMSp6r1l
19 | c6CVy75In29MALyUXsG2GV7if3tZAoFYhCeb7BpcOBo+m85OCZy6fPNKdTpCNX3u
20 | lJm44HCvvNLRJ9O2V9f/WQ05RgcuY3+vqNSpXs9zmrss8ruUq0CXAdztAOlbRImj
21 | 6ukaKYxMDZCQ/UjVH6aojQKBgGDh3zaDYT6odjVQi33RlZMNzvvuLbYe8gUO2k+0
22 | 30FdasKLMGtuvbtCEX177zF5UqNBC0xuGEHZNxgkoWZxwcsTtRAHfsjQ2OghvuTm
23 | qlEHPXx4hlNZC5sxvDhXO0CmkmX6zr2YB9c9Vn34TV+nuQibKl6DAkyN4mbKn5gq
24 | v6YjAoGAdDiKFXLB/mTBA0ahHYfLPt6dKS+64P3S4OSVqcUTF84nC0ZFtBP3UI6V
25 | e5OAcwZgatkXSFjXEJN3mhs+1WQRAi3PvEAKrek4/1vNKFhjqKBC3RtTzQMSDmEq
26 | psK+JpIWIp8zDacnw6Y1zvqHg21CBHxxMLh3GKi/p6XyDxPHb3c=
27 | -----END RSA PRIVATE KEY-----
28 |
--------------------------------------------------------------------------------
/templates/201605-GA/httpd/assets/pki/CA/serial:
--------------------------------------------------------------------------------
1 | 01
2 |
--------------------------------------------------------------------------------
/templates/201605-GA/openldap/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM centos:centos7
2 | MAINTAINER keensoft
3 |
4 | RUN yum update -y \
5 | && yum clean all
6 |
7 | RUN yum install -y \
8 | openldap-servers.x86_64 \
9 | openldap-clients.x86_64
10 |
11 | COPY assets/chrootpw.ldif /tmp/chrootpw.ldif
12 | COPY assets/chdomain.ldif /tmp/chdomain.ldif
13 | COPY assets/basedomain.ldif /tmp/basedomain.ldif
14 | COPY assets/pki/cacert.pem /etc/openldap/certs/cacert.pem
15 | COPY assets/pki/server.crt /etc/openldap/certs/servercrt.pem
16 | COPY assets/pki/server.key /etc/openldap/certs/serverkey.pem
17 | COPY assets/mod_ssl.ldif /tmp/mod_ssl.ldif
18 | ENV LDAP_URLS "ldapi:/// ldap:///"
19 | RUN set -x \
20 | && rm -rf /var/lib/ldap/* \
21 | && cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG \
22 | && chown ldap. /var/lib/ldap/DB_CONFIG \
23 | && /usr/sbin/slapd -u ldap -h "${LDAP_URLS}" \
24 | && ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/chrootpw.ldif \
25 | && rm /tmp/chrootpw.ldif \
26 | && ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif \
27 | && ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/nis.ldif \
28 | && ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif \
29 | && ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/chdomain.ldif \
30 | && rm /tmp/chdomain.ldif \
31 | && ldapadd -x -D cn=Manager,dc=keensoft,dc=es -w secret -f /tmp/basedomain.ldif \
32 | && rm /tmp/basedomain.ldif \
33 | && ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/mod_ssl.ldif \
34 | && rm /tmp/mod_ssl.ldif
35 |
36 |
37 | EXPOSE 389 636
38 | ENTRYPOINT ["slapd"]
39 | CMD ["-h", "ldap:/// ldapi:/// ldaps:///", "-u", "ldap", "-g", "ldap", "-d0"]
40 |
--------------------------------------------------------------------------------
/templates/201605-GA/openldap/assets/basedomain.ldif:
--------------------------------------------------------------------------------
1 | dn: dc=keensoft,dc=es
2 | objectClass: top
3 | objectClass: dcObject
4 | objectclass: organization
5 | o: keensoft
6 | dc: keensoft
7 |
8 | dn: cn=Manager,dc=keensoft,dc=es
9 | objectClass: organizationalRole
10 | cn: Manager
11 | description: Directory Manager
12 |
13 | dn: ou=People,dc=keensoft,dc=es
14 | objectClass: organizationalUnit
15 | ou: People
16 |
17 | dn: ou=Group,dc=keensoft,dc=es
18 | objectClass: organizationalUnit
19 | ou: Group
20 |
21 | dn: uid=mikel,ou=People,dc=keensoft,dc=es
22 | objectClass: person
23 | objectClass: inetOrgPerson
24 | cn: mikel
25 | sn: mikel
26 | uid: mikel
27 | userPassword: mikel
28 |
29 | dn: uid=admin,ou=People,dc=keensoft,dc=es
30 | objectClass: person
31 | objectClass: inetOrgPerson
32 | cn: admin
33 | sn: admin
34 | uid: admin
35 | userPassword: secret
36 |
--------------------------------------------------------------------------------
/templates/201605-GA/openldap/assets/chdomain.ldif:
--------------------------------------------------------------------------------
1 | # replace to your own domain name for "dc=***,dc=***" section
2 | # specify the password generated above for "olcRootPW" section
3 | dn: olcDatabase={1}monitor,cn=config
4 | changetype: modify
5 | replace: olcAccess
6 | olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth"
7 | read by dn.base="cn=Manager,dc=keensoft,dc=es" read by * none
8 |
9 | dn: olcDatabase={2}hdb,cn=config
10 | changetype: modify
11 | replace: olcSuffix
12 | olcSuffix: dc=keensoft,dc=es
13 |
14 | dn: olcDatabase={2}hdb,cn=config
15 | changetype: modify
16 | replace: olcRootDN
17 | olcRootDN: cn=Manager,dc=keensoft,dc=es
18 |
19 | dn: olcDatabase={2}hdb,cn=config
20 | changetype: modify
21 | add: olcRootPW
22 | olcRootPW: {SSHA}X8zIgqgJcmxYjBfhJGj/C0ynA3dq3bjX
23 |
24 | dn: olcDatabase={2}hdb,cn=config
25 | changetype: modify
26 | add: olcAccess
27 | olcAccess: {0}to attrs=userPassword,shadowLastChange by
28 | dn="cn=Manager,dc=keensoft,dc=es" write by anonymous auth by self write by * none
29 | olcAccess: {1}to dn.base="" by * read
30 | olcAccess: {2}to * by dn="cn=Manager,dc=keensoft,dc=es" write by * read
31 |
--------------------------------------------------------------------------------
/templates/201605-GA/openldap/assets/chrootpw.ldif:
--------------------------------------------------------------------------------
1 | # specify the password generated above for "olcRootPW" section
2 | dn: olcDatabase={0}config,cn=config
3 | changetype: modify
4 | add: olcRootPW
5 | olcRootPW: {SSHA}X8zIgqgJcmxYjBfhJGj/C0ynA3dq3bjX
6 |
--------------------------------------------------------------------------------
/templates/201605-GA/openldap/assets/mod_ssl.ldif:
--------------------------------------------------------------------------------
1 | # create new
2 | dn: cn=config
3 | changetype: modify
4 | add: olcTLSCACertificateFile
5 | olcTLSCACertificateFile: /etc/openldap/certs/cacert.pem
6 | -
7 | replace: olcTLSCertificateFile
8 | olcTLSCertificateFile: /etc/openldap/certs/servercrt.pem
9 | -
10 | replace: olcTLSCertificateKeyFile
11 | olcTLSCertificateKeyFile: /etc/openldap/certs/serverkey.pem
12 |
--------------------------------------------------------------------------------
/templates/201605-GA/openldap/assets/pki/cacert.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDdjCCAl6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJFUzEP
3 | MA0GA1UEBxMGTWFkcmlkMREwDwYDVQQKEwhrZWVuc29mdDELMAkGA1UECxMCSVQx
4 | DTALBgNVBAMTBFJPT1QxIDAeBgkqhkiG9w0BCQEWEWFkbWluQGtlZW5zb2Z0LmVz
5 | MB4XDTE2MDkwNjA3MzcwMFoXDTE3MDkwNjA3MzcwMFowbzELMAkGA1UEBhMCRVMx
6 | DzANBgNVBAcTBk1hZHJpZDERMA8GA1UEChMIa2VlbnNvZnQxCzAJBgNVBAsTAklU
7 | MQ0wCwYDVQQDEwRST09UMSAwHgYJKoZIhvcNAQkBFhFhZG1pbkBrZWVuc29mdC5l
8 | czCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ5+ZYcqMrmPn0PLaIjN
9 | f3azPwSd2N7SaRkHyi3BhjmdG7kEe+ptHw2s6yGPghj8O1a3DcmmvrAffydBtl/z
10 | W3GeyfPTCQHC8VBJBso/oAQJ72Kbmpv5damryW14BpKIkeuXnvJaZhfzimjqPxw3
11 | OSa1FEU3ZhgckjDQqc6+W4+5LdEL6gJ2f3aBgKr/DWXuyJSTPqqW54NeX81Ukr79
12 | vvROT4d0KmYoo2SIpieAdwe9ncx2YHDvbB8kTG7e1CHy8T1nLrQbM+gHtsAUvCkC
13 | Sp4dSEP5qsgBzV4m3QT1YD8OC33akvENdW7wvSckwJhNXGG7S8jyxFA+ahkA4y1Q
14 | H+8CAwEAAaMdMBswDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAowwDQYJKoZIhvcN
15 | AQEFBQADggEBABDS8qfKNAHOrsvs7SnIoFkpY73dcKnWPv4AtZ3tPJCFm/8wdd0j
16 | 3C8jDptqCCjtKq30JhgeyA7Ty9ouwHHSH+fSdN/ppC5BTMp56wDtCISMOeSyTMuq
17 | 2/v18xXqjeWOhv+ADve5zmXBSEFUVtAsdqBpqHTssbnhnwv3NPpsJOO4LbMD+mJe
18 | 1kVzgjTSFTXtfaQzVN75PFnsreRPj6QrSsucksN3MU6GVpuVxFtSkvhRfwzsFptv
19 | x/hGjbAypl2yM+2WHxau4cNK2gBC/GDWhLi8rG4CAzXeFvAyKrXFs2to9Y1eRc2x
20 | Sbl85sBzsTY7U7UD0N3499vgx+gJeaQUXWI=
21 | -----END CERTIFICATE-----
22 |
--------------------------------------------------------------------------------
/templates/201605-GA/openldap/assets/pki/server.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDpjCCAo6gAwIBAgIBBzANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJFUzEP
3 | MA0GA1UEBxMGTWFkcmlkMREwDwYDVQQKEwhrZWVuc29mdDELMAkGA1UECxMCSVQx
4 | DTALBgNVBAMTBFJPT1QxIDAeBgkqhkiG9w0BCQEWEWFkbWluQGtlZW5zb2Z0LmVz
5 | MB4XDTE2MTEwNzExNTAwMFoXDTE3MDkwNjA3MzcwMFowTTELMAkGA1UEBhMCRVMx
6 | DzANBgNVBAgTBk1hZHJpZDERMA8GA1UEChMIa2VlbnNvZnQxCzAJBgNVBAsTAklU
7 | MQ0wCwYDVQQDEwRsZGFwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
8 | 6xTcp/ktpyZfygME0B3J55bIg6+l9R28I1br8ZCu3pgdGS5AxFzx987rcRGIeXPR
9 | 1BAUKsx+rHHuB2e7ecHLWQIrD0sGTAyWgi44sraJ9k/bX6C+4BDmD0ct1vTCvmkn
10 | plZ6nGrHECQrnyo6beY9GmvI3/SsE+VODh5d0FqaalHFID9DOH9sAeNW6HrIlLvW
11 | +n3gQtz82BX7+VG+Y0MjOH/FutjesOwaWsnQJ4j7gbmdpeyydpmPSvJUK/hMZpfK
12 | tFt8QiG6Pj9CzA4wnjbMcBJa7kG2jhXf4dvfIR0e1k6pk8jtbPcBTV9r6Ogjx9kO
13 | vatK3ZCDE73mwF3maI8RbwIDAQABo28wbTAMBgNVHRMBAf8EAjAAMB0GA1UdDgQW
14 | BBRi8GoezvZvMic0xS1hgP2sT2HxxjALBgNVHQ8EBAMCBeAwEQYJYIZIAYb4QgEB
15 | BAQDAgZAMB4GCWCGSAGG+EIBDQQRFg94Y2EgY2VydGlmaWNhdGUwDQYJKoZIhvcN
16 | AQEFBQADggEBAAE9EF+gwPvlVV8I0CEyOrp3Poe3PjXuQ8XHASSjcMo6WXlfu4pk
17 | 2RlKDk/t7IzUikbTGKMKzCYat0ic1uj4oDm2+r6bw0OE+ArFZ2cKdc6MlI2eonpU
18 | bd+kV1oiB0YZ9PpajoNlxE9sKOiW3vd17hppSE+stGM3C/M6NO/TPQAXLMs4dEqs
19 | FCiIYVX2pKRCAk3xClbOpqyhIjvhGP6Iccs0CUl57yIDGPqk1N/vIf5jenqmbowl
20 | EmQTXKxhXqB/YiMuwUE3XI0PBIZJMj4wGpni9iWg3Q+yEjrZhpQXUMZBcKTg0S5e
21 | gOj0vAYII1wdIqIA92VvZPci/FvyGI+JNFY=
22 | -----END CERTIFICATE-----
--------------------------------------------------------------------------------
/templates/201605-GA/openldap/assets/pki/server.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEpAIBAAKCAQEA6xTcp/ktpyZfygME0B3J55bIg6+l9R28I1br8ZCu3pgdGS5A
3 | xFzx987rcRGIeXPR1BAUKsx+rHHuB2e7ecHLWQIrD0sGTAyWgi44sraJ9k/bX6C+
4 | 4BDmD0ct1vTCvmknplZ6nGrHECQrnyo6beY9GmvI3/SsE+VODh5d0FqaalHFID9D
5 | OH9sAeNW6HrIlLvW+n3gQtz82BX7+VG+Y0MjOH/FutjesOwaWsnQJ4j7gbmdpeyy
6 | dpmPSvJUK/hMZpfKtFt8QiG6Pj9CzA4wnjbMcBJa7kG2jhXf4dvfIR0e1k6pk8jt
7 | bPcBTV9r6Ogjx9kOvatK3ZCDE73mwF3maI8RbwIDAQABAoIBAQC5wbBioslqTS5f
8 | 6GbDNOa4MzOaqw8OU0K5AhRKu7MSfUxw+1V+VJt233C31czre5OQaGwnLZPjG9uk
9 | ylkf6vyOBuKToQsGyOOdVnzC6u61TYDhXZm2YGQKKoqUUrAX2evUynz0YIOPw6Uc
10 | jjfBY69g007VePcIeadmDKTA4PcnjpXtOFUGHVDuG3dnaB0/1HWwXU9StBMrKbn2
11 | pE9TPl6Ctm9IwBvB0xinZXtJTI2q+khGnurhjajDkm6F8Tpwkmwvdw0WbFLBISF2
12 | 0pWnO/88ZQ1E6Ygp7QKNOyjDj5ieDkI1x2+yov0PYIwdNF5xLoNlEPdTSjIDlSLn
13 | LMeMWrGBAoGBAPX93xYXB+ChscPao8SXAn07Q2W8ZFWavePjf+l04MCCHEBXseOA
14 | CaKWavvMWfCbZwwvHNYGONZw7d1IfASA0ypaVatQ0vyxkAa01ln4liDlCkxshz1e
15 | jk6hzcmVWozYzeMFOpFWBqVgzQsn/Eyp15pREMUGTA8I2onoXbfjBpwhAoGBAPSl
16 | WvRv94Ex9fgVWK2jw9zXqey1VoE39hSLPowyJnZw9WvS75e1utvZYRmhIkstJvD3
17 | bxJFP62+HGFVXQRK071XJkCOycGvWS09qvVgTYT4+0tezdstRQG907PPmg2Y5mvB
18 | g75sfIGuHlk2DuQSOcmDMXkikWVpPhJxmCifmnuPAoGBANM98tBOcMZXNIei/xW4
19 | NDwEo2j/Mg5NNxo26EY7xzGpycb7R9i8wAluMGsQ3n9/hCtzXcjxSOflzG5Fa7KW
20 | SkBJmN3oJ3c2qB8KNjTHA202IvTkEfMCeyRNUKH2bu8a0xtMBzJ9dHGaQhp9eO0A
21 | wRRU3xjCwpf6m2joMWrTO37hAoGAWC0FFFcKyRj9w3XGKYd9/6oHh9ZwIFDQM+Vg
22 | HN2yeTwLaNp1GqQYfkbiNX+bQac7gtxbvyUQZ4m+5uICjZp+qJ6xndEZLOMLbD/u
23 | z1PvfL7Uq/y2i4nMdm050XRA3Se/3RS5bDfjxEXCkHrocRGUnGnZugRYjUmaYsFo
24 | izPDVUcCgYA8Lqq5qob1K9WjXjjwrlqqLfhM7NTJOrtR9KPWpGdV3xjw97h9KsDz
25 | 22QigaiIRdLdcpTARIEW1xmUartpPOzxGuK1h7fVvgRLcKzapR9GYNrVAP1zlhLK
26 | /m2+1UaTw3zRrJnIv99qshgAnOqAPVdQzWWWXC6REgRYbTcseEibCg==
27 | -----END RSA PRIVATE KEY-----
28 |
--------------------------------------------------------------------------------
/templates/201605-GA/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i es_ES -c -f UTF-8 -A /usr/share/locale/locale.alias es_ES.UTF-8
3 | ENV LANG es_ES.utf8
4 |
--------------------------------------------------------------------------------
/templates/201605-GA/share/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201605-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | WORKDIR $CATALINA_HOME
9 | ENV ALF_HOME $CATALINA_HOME
10 |
11 | # basic configuration
12 | RUN set -x \
13 | && mkdir -p conf/Catalina/localhost \
14 | && mv $DIST/web-server/shared . \
15 | && mv $DIST/web-server/webapps/share.war webapps/share.war \
16 | && cp -r $DIST/bin . \
17 | && mv $DIST/licenses . \
18 | && mv $DIST/README.txt . \
19 | && rm -rf webapps/docs \
20 | && rm -rf webapps/examples \
21 | && mkdir shared/lib amps_share \
22 | && rm -rf $DIST
23 |
24 |
25 | COPY assets/tomcat/catalina.properties conf/catalina.properties
26 | COPY assets/tomcat/setenv.sh bin/setenv.sh
27 | COPY assets/share/share-config-custom.xml shared/classes/alfresco/web-extension/share-config-custom.xml
28 | COPY assets/cas/java-cas-client.properties /etc/java-cas-client.properties
29 | COPY assets/cas/cacerts /usr/java/default/jre/lib/security/cacerts
30 |
31 | # AMPS installation
32 | COPY assets/share/apply_share_amps.sh bin/apply_amps.sh
33 | COPY assets/amps_share amps_share
34 | RUN bash ./bin/apply_amps.sh -nobackup -force
35 |
36 | ENV PATH $ALF_HOME/bin:$PATH
37 |
38 | RUN useradd -ms /bin/bash alfresco
39 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
40 | USER alfresco
41 |
42 | EXPOSE 8080
43 | CMD ["catalina.sh", "run"]
44 |
--------------------------------------------------------------------------------
/templates/201605-GA/share/assets/amps_share/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201605-GA/share/assets/cas/cacerts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201605-GA/share/assets/cas/cacerts
--------------------------------------------------------------------------------
/templates/201605-GA/share/assets/cas/java-cas-client.properties:
--------------------------------------------------------------------------------
1 | casServerLoginUrl=https://cas:8443/cas/login
2 | serverName=https://alfresco
3 | ticketValidatorClass=org.jasig.cas.client.validation.Cas30ServiceTicketValidator
4 | casServerUrlPrefix=https://cas:8443/cas
5 |
--------------------------------------------------------------------------------
/templates/201605-GA/share/assets/share/apply_share_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME
9 | required_java_version="1.7"
10 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
11 | . $CATALINA_HOME/bin/setenv.sh
12 | fi
13 |
14 | # Verify Java installation into ALF_HOME folder
15 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
16 | echo
17 | echo "Found java executable in $ALF_HOME/java"
18 | _java=$ALF_HOME/java/bin/java
19 |
20 | # Verify Java installation into JAVA_HOME
21 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
22 | echo
23 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
24 |
25 | _java="$JAVA_HOME/bin/java"
26 |
27 | # Verify Java installation from linux repositories
28 | elif type -p java; then
29 | echo
30 | echo "Found installed java executable on the system"
31 |
32 | _java=java
33 |
34 | else
35 | echo
36 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
37 | echo "Please install Java and try again. Script will be closed. "
38 | read DUMMY
39 | exit 15
40 | fi
41 |
42 | echo
43 | echo "This script will apply all the AMPs in amps_share to the share.war file in $CATALINA_HOME/webapps"
44 | echo "Press control-c to stop this script . . ."
45 | echo "Press any other key to continue . . ."
46 | read RESP
47 | {
48 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps_share $CATALINA_HOME/webapps/share.war -directory $*
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/share.war
50 | } ||
51 | {
52 | echo
53 | echo "Error. Appling of the AMPs is failed. See error message above."
54 | echo
55 | }
56 | echo "About to clean out $ALF_HOME/tomcat/webapps/share directory and temporary files..."
57 | echo "Press control-c to stop this script . . ."
58 | echo "Press any other key to continue . . ."
59 | read DUMMY
60 | rm -rf $CATALINA_HOME/webapps/share
61 | . $ALF_HOME/bin/clean_tomcat.sh
62 | popd>/dev/null
63 |
--------------------------------------------------------------------------------
/templates/201605-GA/share/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
2 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
3 | #JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
4 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
5 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
6 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx1024M" # java-memory-settings
7 | export JAVA_OPTS
8 |
9 |
--------------------------------------------------------------------------------
/templates/201605-GA/solr4/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201605-GA
2 | MAINTAINER keensoft
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y sed \
10 | && yum clean all
11 |
12 | WORKDIR $CATALINA_HOME
13 | ENV SOLR4_HOME $CATALINA_HOME/solr4
14 | ENV ALF_HOME $CATALINA_HOME
15 |
16 | # basic Solr4 configuration
17 | RUN set -x \
18 | && mkdir -p conf/Catalina/localhost \
19 | && mv $DIST/web-server/webapps/solr4.war webapps/solr4.war \
20 | && mv $DIST/alf_data . \
21 | && mv $DIST/solr4/context.xml conf/Catalina/localhost/solr4.xml \
22 | && mv $DIST/solr4 . \
23 | && mv $DIST/licenses . \
24 | && mv $DIST/README.txt .
25 |
26 | RUN set -x \
27 | && sed -i 's,@@ALFRESCO_SOLR4_DIR@@,'"$ALF_HOME"'/solr4,g' conf/Catalina/localhost/solr4.xml \
28 | && sed -i 's,@@ALFRESCO_SOLR4_MODEL_DIR@@,'"$ALF_HOME"'/alf_data/solr4/model,g' conf/Catalina/localhost/solr4.xml \
29 | && sed -i 's,@@ALFRESCO_SOLR4_CONTENT_DIR@@,'"$ALF_HOME"'/alf_data/solr4/content,g' conf/Catalina/localhost/solr4.xml \
30 |
31 | && sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"$ALF_HOME"'/alf_data/solr4/index,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
32 | && sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"$ALF_HOME"'/alf_data/solr4/index,g' solr4/archive-SpacesStore/conf/solrcore.properties \
33 |
34 | && sed -i 's,alfresco.host=localhost,alfresco.host=alfresco,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
35 | && sed -i 's,alfresco.host=localhost,alfresco.host=alfresco,g' solr4/archive-SpacesStore/conf/solrcore.properties \
36 | && sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
37 | && sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/archive-SpacesStore/conf/solrcore.properties
38 |
39 | ENV PATH $ALF_HOME/bin:$PATH
40 | ENV LANG es_ES.utf8
41 |
42 | RUN useradd -ms /bin/bash solr
43 | RUN set -x && chown -RL solr:solr $ALF_HOME
44 | USER solr
45 |
46 | EXPOSE 8080
47 | CMD ["catalina.sh", "run"]
48 |
--------------------------------------------------------------------------------
/templates/201612-GA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201612-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y \
10 | ImageMagick \
11 | ghostscript \
12 | && yum clean all
13 |
14 | ENV ALF_HOME /usr/local/alfresco
15 | ENV CATALINA_HOME /usr/local/alfresco/tomcat
16 | WORKDIR $ALF_HOME
17 |
18 | # basic configuration
19 | RUN set -x \
20 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
21 | && mv $DIST/web-server/conf/Catalina tomcat/conf/ \
22 | && mv $DIST/web-server/shared tomcat/ \
23 | && mv $DIST/web-server/lib/*.jar tomcat/lib/ \
24 | && mv $DIST/web-server/webapps/alfresco.war tomcat/webapps/ \
25 | && mv $DIST/web-server/webapps/share.war tomcat/webapps/ \
26 | && mv $DIST/web-server/webapps/solr4.war tomcat/webapps/ \
27 | && mv $DIST/solr4/context.xml tomcat/conf/Catalina/localhost/solr4.xml \
28 | && mv $DIST/solr4 . \
29 | && mv $DIST/alf_data . \
30 | && mv $DIST/amps . \
31 | && mv $DIST/bin . \
32 | && mv $DIST/licenses . \
33 | && mv $DIST/README.txt . \
34 | && rm -rf $CATALINA_HOME/webapps/docs \
35 | && rm -rf $CATALINA_HOME/webapps/examples \
36 | && mkdir $CATALINA_HOME/shared/lib $ALF_HOME/amps_share \
37 | && rm -rf $DIST
38 |
39 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
40 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
41 | COPY assets/alfresco/alfresco-global.properties tomcat/shared/classes/alfresco-global.properties
42 |
43 | # Solr4 Configuration
44 | RUN set -x \
45 | && sed -i 's,@@ALFRESCO_SOLR4_DIR@@,'"$ALF_HOME"'/solr4,g' tomcat/conf/Catalina/localhost/solr4.xml \
46 | && sed -i 's,@@ALFRESCO_SOLR4_MODEL_DIR@@,'"$ALF_HOME"'/alf_data/solr4/model,g' tomcat/conf/Catalina/localhost/solr4.xml \
47 | && sed -i 's,@@ALFRESCO_SOLR4_CONTENT_DIR@@,'"$ALF_HOME"'/alf_data/solr4/content,g' tomcat/conf/Catalina/localhost/solr4.xml \
48 | && sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"$ALF_HOME"'/alf_data/solr4/index,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
49 | && sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"$ALF_HOME"'/alf_data/solr4/index,g' solr4/archive-SpacesStore/conf/solrcore.properties \
50 | && sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
51 | && sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/archive-SpacesStore/conf/solrcore.properties
52 |
53 |
54 | # AMPS installation
55 | COPY assets/amps amps
56 | COPY assets/amps_share amps_share
57 | RUN bash ./bin/apply_amps.sh -force -nobackup
58 |
59 | # Add api-explorer WAR file
60 | COPY assets/api-explorer/api-explorer.war tomcat/webapps/api-explorer.war
61 |
62 | ENV PATH $ALF_HOME/bin:$PATH
63 | ENV LANG es_ES.utf8
64 |
65 | RUN useradd -ms /bin/bash alfresco
66 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
67 | USER alfresco
68 |
69 | ENV JPDA_ADDRESS="9999"
70 | ENV JPDA_TRANSPORT="dt_socket"
71 |
72 | EXPOSE 8080 8009 9999
73 | VOLUME $ALF_HOME/alf_data
74 | CMD ["catalina.sh", "jpda", "run"]
75 |
--------------------------------------------------------------------------------
/templates/201612-GA/alfresco/assets/amps/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201612-GA/alfresco/assets/amps_share/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201612-GA/alfresco/assets/api-explorer/api-explorer.war:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201612-GA/alfresco/assets/api-explorer/api-explorer.war
--------------------------------------------------------------------------------
/templates/201612-GA/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 | export JAVA_OPTS
10 |
11 |
--------------------------------------------------------------------------------
/templates/201612-GA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | alfresco:
4 | build: ./alfresco
5 | links:
6 | - solr6
7 | - libreoffice
8 | ports:
9 | - 8080:8080
10 | - 9999:9999
11 |
12 | db:
13 | build: ./postgres
14 | network_mode: service:alfresco
15 | environment:
16 | - POSTGRES_DB=alfresco
17 | - POSTGRES_USER=alfresco
18 | - POSTGRES_PASSWORD=alfresco
19 |
20 | solr6:
21 | image: keensoft/alfresco-solr6:201612-GA
22 | ports:
23 | - 8983:8983
24 |
25 | libreoffice:
26 | image: xcgd/libreoffice
27 |
--------------------------------------------------------------------------------
/templates/201612-GA/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i es_ES -c -f UTF-8 -A /usr/share/locale/locale.alias es_ES.UTF-8
3 | ENV LANG es_ES.utf8
4 |
--------------------------------------------------------------------------------
/templates/201701-GA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201701-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y \
10 | ImageMagick \
11 | ghostscript \
12 | && yum clean all
13 |
14 | ENV ALF_HOME /usr/local/alfresco
15 | ENV CATALINA_HOME /usr/local/alfresco/tomcat
16 | WORKDIR $ALF_HOME
17 |
18 | # basic configuration
19 | RUN set -x \
20 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
21 | && mv $DIST/web-server/conf/Catalina tomcat/conf/ \
22 | && mv $DIST/web-server/shared tomcat/ \
23 | && mv $DIST/web-server/lib/*.jar tomcat/lib/ \
24 | && mv $DIST/web-server/webapps/alfresco.war tomcat/webapps/ \
25 | && mv $DIST/web-server/webapps/share.war tomcat/webapps/ \
26 | && mv $DIST/alf_data . \
27 | && mv $DIST/amps . \
28 | && mv $DIST/bin . \
29 | && mv $DIST/licenses . \
30 | && mv $DIST/README.txt . \
31 | && rm -rf $CATALINA_HOME/webapps/docs \
32 | && rm -rf $CATALINA_HOME/webapps/examples \
33 | && mkdir $CATALINA_HOME/shared/lib $ALF_HOME/amps_share \
34 | && rm -rf $DIST
35 |
36 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
37 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
38 | COPY assets/alfresco/alfresco-global.properties tomcat/shared/classes/alfresco-global.properties
39 |
40 | # AMPS installation
41 | COPY assets/amps amps
42 | COPY assets/amps_share amps_share
43 | RUN bash ./bin/apply_amps.sh -force -nobackup
44 |
45 | # Add api-explorer WAR file
46 | COPY assets/api-explorer/api-explorer.war tomcat/webapps/api-explorer.war
47 |
48 | ENV PATH $ALF_HOME/bin:$PATH
49 | ENV LANG es_ES.utf8
50 |
51 | RUN useradd -ms /bin/bash alfresco
52 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
53 | USER alfresco
54 |
55 | ENV JPDA_ADDRESS="9999"
56 | ENV JPDA_TRANSPORT="dt_socket"
57 |
58 | EXPOSE 8080 8009 9999
59 | VOLUME $ALF_HOME/alf_data
60 | CMD ["catalina.sh", "jpda", "run"]
61 |
--------------------------------------------------------------------------------
/templates/201701-GA/alfresco/assets/amps/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201701-GA/alfresco/assets/amps_share/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201701-GA/alfresco/assets/api-explorer/api-explorer.war:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201701-GA/alfresco/assets/api-explorer/api-explorer.war
--------------------------------------------------------------------------------
/templates/201701-GA/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 | export JAVA_OPTS
10 |
11 |
--------------------------------------------------------------------------------
/templates/201701-GA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | alfresco:
4 | build: ./alfresco
5 | links:
6 | - solr6
7 | - libreoffice
8 | ports:
9 | - 80:80
10 | - 9999:9999
11 |
12 | httpd:
13 | build: ./httpd
14 | network_mode: service:alfresco
15 |
16 | db:
17 | build: ./postgres
18 | network_mode: service:alfresco
19 | environment:
20 | - POSTGRES_DB=alfresco
21 | - POSTGRES_USER=alfresco
22 | - POSTGRES_PASSWORD=alfresco
23 |
24 | solr6:
25 | image: keensoft/alfresco-solr6:201701-GA
26 | ports:
27 | - 8983:8983
28 |
29 | libreoffice:
30 | image: xcgd/libreoffice
31 |
--------------------------------------------------------------------------------
/templates/201701-GA/httpd/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM centos:centos7
2 | MAINTAINER keensoft
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y \
10 | httpd
11 |
12 | COPY assets/alfresco.conf /etc/httpd/conf.d/alfresco.conf
13 |
14 | EXPOSE 80
15 | CMD httpd -DFOREGROUND
16 |
--------------------------------------------------------------------------------
/templates/201701-GA/httpd/assets/alfresco.conf:
--------------------------------------------------------------------------------
1 |
2 | ServerName localhost
3 |
4 | ProxyPass / ajp://localhost:8009/
5 | ProxyPassReverse / ajp://localhost:8009/
6 |
7 |
--------------------------------------------------------------------------------
/templates/201701-GA/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i es_ES -c -f UTF-8 -A /usr/share/locale/locale.alias es_ES.UTF-8
3 | ENV LANG es_ES.utf8
4 |
--------------------------------------------------------------------------------
/templates/201702-GA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201702-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum install -y \
6 | ImageMagick \
7 | ghostscript \
8 | && yum clean all
9 |
10 | ENV ALF_HOME /usr/local/alfresco
11 | ENV CATALINA_HOME /usr/local/alfresco/tomcat
12 | WORKDIR $ALF_HOME
13 |
14 | # basic configuration
15 | RUN set -x \
16 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
17 | && mkdir -p $CATALINA_HOME/conf/Catalina/localhost $CATALINA_HOME/shared/classes/alfresco/extension $CATALINA_HOME/shared/lib $ALF_HOME/modules/platform \
18 | && mv $DIST/web-server/conf/Catalina/localhost/alfresco.xml tomcat/conf/Catalina/localhost/ \
19 | && mv $DIST/web-server/lib/*.jar tomcat/lib/ \
20 | && mv $DIST/web-server/webapps/alfresco.war tomcat/webapps/ \
21 | && mv $DIST/alf_data . \
22 | && mv $DIST/amps . \
23 | && mv $DIST/bin . \
24 | && mv $DIST/licenses . \
25 | && mv $DIST/README.txt . \
26 | && rm -rf $CATALINA_HOME/webapps/docs \
27 | && rm -rf $CATALINA_HOME/webapps/examples \
28 | && rm -rf $DIST
29 |
30 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
31 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
32 | COPY assets/alfresco/alfresco-global.properties tomcat/shared/classes/alfresco-global.properties
33 |
34 | # AMPS installation
35 | COPY assets/alfresco/apply_alfresco_amps.sh $ALF_HOME/bin/apply_amps.sh
36 | COPY assets/amps amps
37 | RUN bash ./bin/apply_amps.sh -nobackup
38 |
39 | # Add api-explorer WAR file
40 | RUN set -x \
41 | && wget https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/api-explorer/5.2.0/api-explorer-5.2.0.war -O tomcat/webapps/api-explorer.war
42 |
43 | ENV PATH $ALF_HOME/bin:$PATH
44 | ENV LANG es_ES.utf8
45 |
46 | RUN useradd -ms /bin/bash alfresco
47 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
48 | USER alfresco
49 |
50 | ENV JPDA_ADDRESS="9999"
51 | ENV JPDA_TRANSPORT="dt_socket"
52 |
53 | EXPOSE 8080 8009 9999
54 | VOLUME $ALF_HOME/alf_data
55 | CMD ["catalina.sh", "jpda", "run"]
56 |
--------------------------------------------------------------------------------
/templates/201702-GA/alfresco/assets/alfresco/apply_alfresco_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME/tomcat
9 | required_java_version="1.7"
10 |
11 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
12 | . $CATALINA_HOME/bin/setenv.sh
13 | fi
14 |
15 | # Verify Java installation into ALF_HOME folder
16 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
17 | echo
18 | echo "Found java executable in $ALF_HOME/java"
19 | _java=$ALF_HOME/java/bin/java
20 |
21 | # Verify Java installation into JAVA_HOME
22 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
23 | echo
24 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
25 |
26 | _java="$JAVA_HOME/bin/java"
27 |
28 | # Verify Java installation from linux repositories
29 | elif type -p java; then
30 | echo
31 | echo "Found installed java executable on the system"
32 |
33 | _java=java
34 |
35 | else
36 | echo
37 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
38 | echo "Please install Java and try again. Script will be closed. "
39 | read DUMMY
40 | exit 15
41 | fi
42 |
43 | echo
44 | echo "This script will apply all the AMPs in amps to the alfresco.war files in $CATALINA_HOME/webapps"
45 | echo "Press control-c to stop this script . . ."
46 | echo "Press any other key to continue . . ."
47 | read RESP
48 | {
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps $CATALINA_HOME/webapps/alfresco.war -directory $*
50 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/alfresco.war
51 | } ||
52 | {
53 | echo
54 | echo "Error. Appling of the AMPs is failed. See error message above."
55 | echo
56 | }
57 | echo "About to clean out $ALF_HOME/tomcat/webapps/alfresco directory and temporary files..."
58 | echo "Press control-c to stop this script . . ."
59 | echo "Press any other key to continue . . ."
60 | read DUMMY
61 | rm -rf $CATALINA_HOME/webapps/alfresco
62 | . $ALF_HOME/bin/clean_tomcat.sh
63 | popd>/dev/null
--------------------------------------------------------------------------------
/templates/201702-GA/alfresco/assets/amps/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201702-GA/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 | export JAVA_OPTS
10 |
11 |
--------------------------------------------------------------------------------
/templates/201702-GA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | alfresco:
4 | build: ./alfresco
5 | links:
6 | - share
7 | - solr6
8 | - libreoffice
9 | ports:
10 | - 9999:9999
11 |
12 | share:
13 | build: ./share
14 |
15 | httpd:
16 | build: ./httpd
17 | links:
18 | - alfresco:alfresco
19 | - share:share
20 | ports:
21 | - 80:80
22 |
23 | db:
24 | build: ./postgres
25 | network_mode: service:alfresco
26 | environment:
27 | - POSTGRES_DB=alfresco
28 | - POSTGRES_USER=alfresco
29 | - POSTGRES_PASSWORD=alfresco
30 |
31 | solr6:
32 | image: keensoft/alfresco-solr6:201702-GA
33 | ports:
34 | - 8983:8983
35 |
36 | libreoffice:
37 | image: xcgd/libreoffice
38 |
39 | swagger-editor:
40 | image: swaggerapi/swagger-editor
41 | ports:
42 | - 8080:8080
43 |
44 |
45 |
--------------------------------------------------------------------------------
/templates/201702-GA/httpd/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM centos:centos7
2 | MAINTAINER keensoft
3 |
4 | RUN set -x \
5 | && yum install -y \
6 | httpd \
7 | && yum clean all
8 |
9 | COPY assets/alfresco.conf /etc/httpd/conf.d/alfresco.conf
10 |
11 | EXPOSE 80
12 | CMD httpd -DFOREGROUND
13 |
--------------------------------------------------------------------------------
/templates/201702-GA/httpd/assets/alfresco.conf:
--------------------------------------------------------------------------------
1 |
2 | ServerName localhost
3 |
4 | ProxyPass "/alfresco" "ajp://alfresco:8009/alfresco"
5 | ProxyPassReverse "/alfresco" "ajp://alfresco:8009/"
6 |
7 | ProxyPass "/api-explorer" "ajp://alfresco:8009/api-explorer"
8 | ProxyPassReverse "/api-explorer" "ajp://alfresco:8009/api-explorer"
9 |
10 | ProxyPass "/share" "ajp://share:8009/share"
11 | ProxyPassReverse "/share" "ajp://share:8009/share"
12 |
13 |
14 |
--------------------------------------------------------------------------------
/templates/201702-GA/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i es_ES -c -f UTF-8 -A /usr/share/locale/locale.alias es_ES.UTF-8
3 | ENV LANG es_ES.utf8
4 |
--------------------------------------------------------------------------------
/templates/201702-GA/share/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201702-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | ENV ALF_HOME /usr/local/alfresco
9 | ENV CATALINA_HOME /usr/local/alfresco/tomcat
10 | WORKDIR $ALF_HOME
11 |
12 | # basic configuration
13 | RUN set -x \
14 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
15 | && mkdir -p $CATALINA_HOME/conf/Catalina/localhost $CATALINA_HOME/shared/classes/alfresco/web-extensio $CATALINA_HOME/shared/lib $ALF_HOME/modules/share \
16 | && mv $DIST/web-server/conf/Catalina/localhost/share.xml tomcat/conf/Catalina/localhost \
17 | && mv $DIST/web-server/webapps/share.war tomcat/webapps/ \
18 | && mv $DIST/bin . \
19 | && mv $DIST/amps_share . \
20 | && mv $DIST/licenses . \
21 | && mv $DIST/README.txt . \
22 | && rm -rf $CATALINA_HOME/webapps/docs \
23 | && rm -rf $CATALINA_HOME/webapps/examples \
24 | && rm -rf $DIST
25 |
26 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
27 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
28 | COPY assets/share/share-config-custom.xml tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
29 |
30 | # AMPS installation
31 | COPY assets/share/apply_share_amps.sh $ALF_HOME/bin/apply_amps.sh
32 | COPY assets/amps_share amps_share
33 | RUN bash ./bin/apply_amps.sh -force -nobackup
34 |
35 | ENV PATH $ALF_HOME/bin:$PATH
36 | ENV LANG es_ES.utf8
37 |
38 | RUN useradd -ms /bin/bash alfresco
39 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
40 | USER alfresco
41 |
42 | EXPOSE 8080 8009
43 | CMD ["catalina.sh", "run"]
44 |
--------------------------------------------------------------------------------
/templates/201702-GA/share/assets/amps_share/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201702-GA/share/assets/share/apply_share_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME/tomcat
9 | required_java_version="1.7"
10 |
11 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
12 | . $CATALINA_HOME/bin/setenv.sh
13 | fi
14 |
15 | # Verify Java installation into ALF_HOME folder
16 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
17 | echo
18 | echo "Found java executable in $ALF_HOME/java"
19 | _java=$ALF_HOME/java/bin/java
20 |
21 | # Verify Java installation into JAVA_HOME
22 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
23 | echo
24 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
25 |
26 | _java="$JAVA_HOME/bin/java"
27 |
28 | # Verify Java installation from linux repositories
29 | elif type -p java; then
30 | echo
31 | echo "Found installed java executable on the system"
32 |
33 | _java=java
34 |
35 | else
36 | echo
37 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
38 | echo "Please install Java and try again. Script will be closed. "
39 | read DUMMY
40 | exit 15
41 | fi
42 |
43 | echo
44 | echo "This script will apply all the AMPs in amps_share to the share.war file in $CATALINA_HOME/webapps"
45 | echo "Press control-c to stop this script . . ."
46 | echo "Press any other key to continue . . ."
47 | read RESP
48 | {
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps_share $CATALINA_HOME/webapps/share.war -directory $*
50 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/share.war
51 | } ||
52 | {
53 | echo
54 | echo "Error. Appling of the AMPs is failed. See error message above."
55 | echo
56 | }
57 | echo "About to clean out $ALF_HOME/tomcat/webapps/share directory and temporary files..."
58 | echo "Press control-c to stop this script . . ."
59 | echo "Press any other key to continue . . ."
60 | read DUMMY
61 | rm -rf $CATALINA_HOME/webapps/share
62 | . $ALF_HOME/bin/clean_tomcat.sh
63 | popd>/dev/null
--------------------------------------------------------------------------------
/templates/201702-GA/share/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 | export JAVA_OPTS
10 |
11 |
--------------------------------------------------------------------------------
/templates/201704-GA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201704-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum install -y \
6 | ImageMagick \
7 | ghostscript \
8 | postgresql \
9 | && yum clean all
10 |
11 | ENV ALF_HOME /usr/local/alfresco
12 | ENV CATALINA_HOME /usr/local/alfresco/tomcat
13 | WORKDIR $ALF_HOME
14 |
15 | # basic configuration
16 | RUN set -x \
17 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
18 | && mkdir -p $CATALINA_HOME/conf/Catalina/localhost $CATALINA_HOME/shared/classes/alfresco/extension $CATALINA_HOME/shared/lib $ALF_HOME/modules/platform \
19 | && mv $DIST/web-server/conf/Catalina/localhost/alfresco.xml tomcat/conf/Catalina/localhost/ \
20 | && mv $DIST/web-server/lib/*.jar tomcat/lib/ \
21 | && mv $DIST/web-server/webapps/alfresco.war tomcat/webapps/ \
22 | && mv $DIST/alf_data . \
23 | && mv $DIST/amps . \
24 | && mv $DIST/bin . \
25 | && mv $DIST/licenses . \
26 | && mv $DIST/README.txt . \
27 | && rm -rf $CATALINA_HOME/webapps/docs \
28 | && rm -rf $CATALINA_HOME/webapps/examples \
29 | && rm -rf $DIST
30 |
31 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
32 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
33 | COPY assets/alfresco/alfresco-global.properties tomcat/shared/classes/alfresco-global.properties
34 |
35 | # AMPS installation
36 | COPY assets/alfresco/apply_alfresco_amps.sh $ALF_HOME/bin/apply_amps.sh
37 | COPY assets/amps amps
38 | RUN bash ./bin/apply_amps.sh -nobackup
39 |
40 | # Add api-explorer WAR file
41 | RUN set -x \
42 | && wget https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/api-explorer/5.2.0/api-explorer-5.2.0.war -O tomcat/webapps/api-explorer.war
43 |
44 | ENV PATH $ALF_HOME/bin:$PATH
45 | ENV LANG es_ES.utf8
46 |
47 | COPY assets/wait-for-postgres.sh wait-for-postgres.sh
48 | RUN set -x && chmod +x wait-for-postgres.sh
49 |
50 | RUN useradd -ms /bin/bash alfresco
51 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
52 | USER alfresco
53 |
54 | RUN set -x \
55 | && echo "db:5432:alfresco:alfresco:alfresco" > /home/alfresco/.pgpass \
56 | && chmod 0600 /home/alfresco/.pgpass \
57 | && chown alfresco:alfresco /home/alfresco/.pgpass
58 |
59 | ENV JPDA_ADDRESS="9999"
60 | ENV JPDA_TRANSPORT="dt_socket"
61 |
62 | EXPOSE 8080 8009 9999
63 | VOLUME $ALF_HOME/alf_data
64 | CMD ["./wait-for-postgres.sh", "db", "catalina.sh", "jpda", "run"]
65 |
--------------------------------------------------------------------------------
/templates/201704-GA/alfresco/assets/alfresco/apply_alfresco_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME/tomcat
9 | required_java_version="1.7"
10 |
11 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
12 | . $CATALINA_HOME/bin/setenv.sh
13 | fi
14 |
15 | # Verify Java installation into ALF_HOME folder
16 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
17 | echo
18 | echo "Found java executable in $ALF_HOME/java"
19 | _java=$ALF_HOME/java/bin/java
20 |
21 | # Verify Java installation into JAVA_HOME
22 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
23 | echo
24 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
25 |
26 | _java="$JAVA_HOME/bin/java"
27 |
28 | # Verify Java installation from linux repositories
29 | elif type -p java; then
30 | echo
31 | echo "Found installed java executable on the system"
32 |
33 | _java=java
34 |
35 | else
36 | echo
37 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
38 | echo "Please install Java and try again. Script will be closed. "
39 | read DUMMY
40 | exit 15
41 | fi
42 |
43 | echo
44 | echo "This script will apply all the AMPs in amps to the alfresco.war files in $CATALINA_HOME/webapps"
45 | echo "Press control-c to stop this script . . ."
46 | echo "Press any other key to continue . . ."
47 | read RESP
48 | {
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps $CATALINA_HOME/webapps/alfresco.war -directory $*
50 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/alfresco.war
51 | } ||
52 | {
53 | echo
54 | echo "Error. Appling of the AMPs is failed. See error message above."
55 | echo
56 | }
57 | echo "About to clean out $ALF_HOME/tomcat/webapps/alfresco directory and temporary files..."
58 | echo "Press control-c to stop this script . . ."
59 | echo "Press any other key to continue . . ."
60 | read DUMMY
61 | rm -rf $CATALINA_HOME/webapps/alfresco
62 | . $ALF_HOME/bin/clean_tomcat.sh
63 | popd>/dev/null
--------------------------------------------------------------------------------
/templates/201704-GA/alfresco/assets/amps/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201704-GA/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 | export JAVA_OPTS
10 |
11 |
--------------------------------------------------------------------------------
/templates/201704-GA/alfresco/assets/wait-for-postgres.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # wait-for-postgres.sh
3 |
4 | set -e
5 |
6 | host="$1"
7 | shift
8 | cmd="$@"
9 |
10 | until psql -h "$host" -U "alfresco" -d "alfresco" -c '\d'; do
11 | >&2 echo "Postgres is unavailable - sleeping"
12 | sleep 1
13 | done
14 |
15 | >&2 echo "Postgres is up - executing command"
16 | exec $cmd
17 |
18 |
--------------------------------------------------------------------------------
/templates/201704-GA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3'
2 | services:
3 | alfresco:
4 | build: ./alfresco
5 | links:
6 | - db
7 | - share
8 | - solr6
9 | - libreoffice
10 | ports:
11 | - 9999:9999
12 |
13 | share:
14 | build: ./share
15 | ports:
16 | - 8080:8080
17 |
18 | nginx:
19 | build: ./nginx
20 | links:
21 | - alfresco:alfresco
22 | - share:share
23 | ports:
24 | - 80:80
25 | - 443:443
26 |
27 | db:
28 | build: ./postgres
29 | environment:
30 | - POSTGRES_DB=alfresco
31 | - POSTGRES_USER=alfresco
32 | - POSTGRES_PASSWORD=alfresco
33 |
34 | solr6:
35 | image: keensoft/alfresco-solr6:201704-GA
36 | ports:
37 | - 8983:8983
38 |
39 | libreoffice:
40 | image: xcgd/libreoffice
41 |
--------------------------------------------------------------------------------
/templates/201704-GA/nginx/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM nginx:stable
2 | MAINTAINER keensoft
3 |
4 | RUN set -x \
5 | && mkdir /etc/nginx/ssl
6 |
7 | COPY assets/pki/localhost.crt /etc/nginx/ssl/localhost.crt
8 | COPY assets/pki/localhost.key /etc/nginx/ssl/localhost.key
9 | COPY assets/nginx.conf /etc/nginx/nginx.conf
10 | COPY assets/alfresco.conf /etc/nginx/conf.d/alfresco.conf
11 |
12 |
13 |
--------------------------------------------------------------------------------
/templates/201704-GA/nginx/assets/alfresco.conf:
--------------------------------------------------------------------------------
1 | server
2 | {
3 | listen 80;
4 | server_name localhost;
5 | return 301 https://$server_name$request_uri;
6 | }
7 |
8 | server
9 | {
10 | listen 443 ssl;
11 | server_name localhost;
12 |
13 | ssl on;
14 | ssl_certificate /etc/nginx/ssl/localhost.crt;
15 | ssl_certificate_key /etc/nginx/ssl/localhost.key;
16 | gzip on;
17 | gzip_comp_level 1;
18 | gzip_proxied any;
19 |
20 | location / {
21 | rewrite ^/$ /share;
22 | }
23 |
24 | location /share/ {
25 | proxy_set_header Host $host;
26 | proxy_pass http://share:8080;
27 | }
28 |
29 | location /alfresco/ {
30 | proxy_set_header Host $host;
31 | proxy_pass http://alfresco:8080;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/templates/201704-GA/nginx/assets/nginx.conf:
--------------------------------------------------------------------------------
1 | user nginx;
2 | worker_processes 1;
3 |
4 | error_log /var/log/nginx/error.log warn;
5 | pid /var/run/nginx.pid;
6 |
7 |
8 | events {
9 | worker_connections 1024;
10 | }
11 |
12 |
13 | http {
14 | include /etc/nginx/mime.types;
15 | default_type application/octet-stream;
16 |
17 | proxy_cache_path /var/cache/nginx keys_zone=alf-cache:1512m inactive=1d;
18 |
19 | #pagespeed on;
20 | #pagespeed FileCachePath /var/ngx_pagespeed_cache;
21 | #pagespeed EnableFilters combine_css,combine_javasript,rewrite_javascript;
22 |
23 | log_format main '$remote_addr - $remote_user [$time_local] "$request" '
24 | '$status $body_bytes_sent "$http_referer" '
25 | '"$http_user_agent" "$http_x_forwarded_for"';
26 |
27 | access_log /var/log/nginx/access.log main;
28 |
29 | sendfile on;
30 | #tcp_nopush on;
31 |
32 | keepalive_timeout 65;
33 |
34 | #gzip on;
35 |
36 | include /etc/nginx/conf.d/alfresco.conf;
37 | }
38 |
--------------------------------------------------------------------------------
/templates/201704-GA/nginx/assets/pki/localhost.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDujCCAqKgAwIBAgIBCDANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJFUzEP
3 | MA0GA1UEBxMGTWFkcmlkMREwDwYDVQQKEwhrZWVuc29mdDELMAkGA1UECxMCSVQx
4 | DTALBgNVBAMTBFJPT1QxIDAeBgkqhkiG9w0BCQEWEWFkbWluQGtlZW5zb2Z0LmVz
5 | MB4XDTE3MDIxMjA2NDcwMFoXDTE3MDkwNjA3MzcwMFowYTELMAkGA1UEBhMCRVMx
6 | DjAMBgNVBAgTBVNwYWluMQ8wDQYDVQQHEwZNYWRyaWQxETAPBgNVBAoTCGtlZW5z
7 | b2Z0MQswCQYDVQQLEwJJVDERMA8GA1UEAxMIYWxmcmVzY28wggEiMA0GCSqGSIb3
8 | DQEBAQUAA4IBDwAwggEKAoIBAQDyADMdFg6pdXymN4lBTnc6b0rB2CYAkXZh4Uwr
9 | qZTF1ArHOqH4oc890MnhVAqVMf0RVhHSZhYX/4nFFagJhcQM2iz6vM7YL6xWarhK
10 | HqPJQW2PLZ+OsMu8l7WuVVFIpouf0M66lUv9I7laBAkFJlLYk7xdbpXjQ4aBH4fT
11 | pvcSILZMdeBjTSIZKhItzg1aRd02i1Zqxb+WFKPzReN/zTt4DOlNXunThvU5/Q9a
12 | 9hZQoG6aIZyRra3Cvuvcc9ZAzsrIxBZpq7HUDzkU7kJ/klh44y2sMkLRd0muP8QO
13 | amZSxsbaoD0VdjF0QwDXoCPvwDe6BUZ6nFbpD8oKcfLf2wBRAgMBAAGjbzBtMAwG
14 | A1UdEwEB/wQCMAAwHQYDVR0OBBYEFADNnSpNxptKZS0Lu/liMSkEg8dWMAsGA1Ud
15 | DwQEAwIEsDARBglghkgBhvhCAQEEBAMCBaAwHgYJYIZIAYb4QgENBBEWD3hjYSBj
16 | ZXJ0aWZpY2F0ZTANBgkqhkiG9w0BAQUFAAOCAQEAP41arJUkCtnUDme1M2TdNNkT
17 | Krz/gB6nK3ynniGkDrKC3aWkH1xmRuEGo/+fOWZsVE5jexj19vtE0+9SZmOuUVSM
18 | /BmvGBZq02fAvD52wiukRw1njG9alF6JPQrknyV3XYiUNH5BEUgDg9xwqPJwLz8j
19 | b2ocUmAGsx2p8IxUp1fzlPi9LNi8f5rTZS6keKiURKgR9qOivl1i+/oR6NAhX61V
20 | Snr4F1XV6k0ZMiKaNguHNnKcK8lXREBHynKh3ncgXoWeJUh4kMR1UqSgVYLGwHrr
21 | DfPN10fstI3K8G4qPNw2vt9FMWLwT5479BPSg5khGhScuX/lVrw/mru1LMLf+g==
22 | -----END CERTIFICATE-----
23 |
--------------------------------------------------------------------------------
/templates/201704-GA/nginx/assets/pki/localhost.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEogIBAAKCAQEA8gAzHRYOqXV8pjeJQU53Om9KwdgmAJF2YeFMK6mUxdQKxzqh
3 | +KHPPdDJ4VQKlTH9EVYR0mYWF/+JxRWoCYXEDNos+rzO2C+sVmq4Sh6jyUFtjy2f
4 | jrDLvJe1rlVRSKaLn9DOupVL/SO5WgQJBSZS2JO8XW6V40OGgR+H06b3EiC2THXg
5 | Y00iGSoSLc4NWkXdNotWasW/lhSj80Xjf807eAzpTV7p04b1Of0PWvYWUKBumiGc
6 | ka2twr7r3HPWQM7KyMQWaaux1A85FO5Cf5JYeOMtrDJC0XdJrj/EDmpmUsbG2qA9
7 | FXYxdEMA16Aj78A3ugVGepxW6Q/KCnHy39sAUQIDAQABAoIBAEaL+lqTUIjkAAdw
8 | jymjlyxIv1FNEp79yLX1+L+NuxoEm3PCyu7xNLn/gKqYVlFx9iU0oxNjwTMTwnTa
9 | wFauUR2yCIS7v8zT8PhsOfcZgYOs+CRSF36AWZRL4aHFq2Fzc6aON4W6+iD8Zg8w
10 | t/RxXJtYTgQqtbU/vRktOOphdQsqPvd/jvRJXw6XiJETMsHiQWhUwXpTyTrESAAB
11 | MWMCoSS0qxwYogX6Ep1xJGbiQEt4mStZzxiCcXmFohteAuwzMsIsAOIhH58JbyN9
12 | Xqj3bkt8bK6Q/dAH1n0Szl8a/cqhhPOI/Ttu3rKbdTnAtu+qUkOL5IAr0OsCqTnt
13 | yXTa6uUCgYEA/MexqioWv4bKQDU62V+INHIBxC2ftkzWx1bTafZBay6R3uXkzSSY
14 | G9j084eVRoB6CxcYs8Jd1Y3u3vKN0lIfSm7WI+E98Nuzx4m6Ww0jkE0NIkfNU5nB
15 | MQX3mOgqed8IXR7JvS1bR80rRkxUvYXVJ+ovQAyGtbIIpg7sl0g7/pcCgYEA9RVa
16 | 2CxswZNfEVRn5c4Ni0D9se2JrpAsJovlYoAnHQJDm9xCHQYHgorhya+DEn5Oce44
17 | AM3l0D9UeHj2/SLLjB/mG51Kt5MplMW9Kv1z5abLfypFYvoNBrP50J9nge4a5yPj
18 | CAqRT2PFViol4p+Nsa5jcbhT3q5wCwmyk43OvVcCgYADCBoXYl3XejRexMSp6r1l
19 | c6CVy75In29MALyUXsG2GV7if3tZAoFYhCeb7BpcOBo+m85OCZy6fPNKdTpCNX3u
20 | lJm44HCvvNLRJ9O2V9f/WQ05RgcuY3+vqNSpXs9zmrss8ruUq0CXAdztAOlbRImj
21 | 6ukaKYxMDZCQ/UjVH6aojQKBgGDh3zaDYT6odjVQi33RlZMNzvvuLbYe8gUO2k+0
22 | 30FdasKLMGtuvbtCEX177zF5UqNBC0xuGEHZNxgkoWZxwcsTtRAHfsjQ2OghvuTm
23 | qlEHPXx4hlNZC5sxvDhXO0CmkmX6zr2YB9c9Vn34TV+nuQibKl6DAkyN4mbKn5gq
24 | v6YjAoGAdDiKFXLB/mTBA0ahHYfLPt6dKS+64P3S4OSVqcUTF84nC0ZFtBP3UI6V
25 | e5OAcwZgatkXSFjXEJN3mhs+1WQRAi3PvEAKrek4/1vNKFhjqKBC3RtTzQMSDmEq
26 | psK+JpIWIp8zDacnw6Y1zvqHg21CBHxxMLh3GKi/p6XyDxPHb3c=
27 | -----END RSA PRIVATE KEY-----
28 |
--------------------------------------------------------------------------------
/templates/201704-GA/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i es_ES -c -f UTF-8 -A /usr/share/locale/locale.alias es_ES.UTF-8
3 | ENV LANG es_ES.utf8
4 |
--------------------------------------------------------------------------------
/templates/201704-GA/share/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201704-GA
2 | MAINTAINER keensoft.es
3 |
4 | ENV ALF_HOME /usr/local/alfresco
5 | WORKDIR $ALF_HOME
6 |
7 | # basic configuration
8 | RUN set -x \
9 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
10 | && mkdir -p $CATALINA_HOME/conf/Catalina/localhost $CATALINA_HOME/shared/classes/alfresco/web-extensio $CATALINA_HOME/shared/lib $ALF_HOME/modules/share \
11 | && mv $DIST/web-server/conf/Catalina/localhost/share.xml tomcat/conf/Catalina/localhost \
12 | && mv $DIST/web-server/webapps/share.war tomcat/webapps/ \
13 | && mv $DIST/bin . \
14 | && mv $DIST/amps_share . \
15 | && mv $DIST/licenses . \
16 | && mv $DIST/README.txt . \
17 | && rm -rf $CATALINA_HOME/webapps/docs \
18 | && rm -rf $CATALINA_HOME/webapps/examples \
19 | && rm -rf $DIST
20 |
21 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
22 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
23 | COPY assets/share/share-config-custom.xml tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
24 |
25 | # AMPS installation
26 | COPY assets/share/apply_share_amps.sh $ALF_HOME/bin/apply_amps.sh
27 | COPY assets/amps_share amps_share
28 | RUN bash ./bin/apply_amps.sh -force -nobackup
29 |
30 | ENV PATH $ALF_HOME/bin:$PATH
31 | ENV LANG es_ES.utf8
32 |
33 | RUN useradd -ms /bin/bash alfresco
34 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
35 | USER alfresco
36 |
37 | EXPOSE 8080 8009
38 | CMD ["catalina.sh", "run"]
39 |
--------------------------------------------------------------------------------
/templates/201704-GA/share/assets/amps_share/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201704-GA/share/assets/share/apply_share_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME/tomcat
9 | required_java_version="1.7"
10 |
11 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
12 | . $CATALINA_HOME/bin/setenv.sh
13 | fi
14 |
15 | # Verify Java installation into ALF_HOME folder
16 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
17 | echo
18 | echo "Found java executable in $ALF_HOME/java"
19 | _java=$ALF_HOME/java/bin/java
20 |
21 | # Verify Java installation into JAVA_HOME
22 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
23 | echo
24 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
25 |
26 | _java="$JAVA_HOME/bin/java"
27 |
28 | # Verify Java installation from linux repositories
29 | elif type -p java; then
30 | echo
31 | echo "Found installed java executable on the system"
32 |
33 | _java=java
34 |
35 | else
36 | echo
37 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
38 | echo "Please install Java and try again. Script will be closed. "
39 | read DUMMY
40 | exit 15
41 | fi
42 |
43 | echo
44 | echo "This script will apply all the AMPs in amps_share to the share.war file in $CATALINA_HOME/webapps"
45 | echo "Press control-c to stop this script . . ."
46 | echo "Press any other key to continue . . ."
47 | read RESP
48 | {
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps_share $CATALINA_HOME/webapps/share.war -directory $*
50 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/share.war
51 | } ||
52 | {
53 | echo
54 | echo "Error. Appling of the AMPs is failed. See error message above."
55 | echo
56 | }
57 | echo "About to clean out $ALF_HOME/tomcat/webapps/share directory and temporary files..."
58 | echo "Press control-c to stop this script . . ."
59 | echo "Press any other key to continue . . ."
60 | read DUMMY
61 | rm -rf $CATALINA_HOME/webapps/share
62 | . $ALF_HOME/bin/clean_tomcat.sh
63 | popd>/dev/null
--------------------------------------------------------------------------------
/templates/201704-GA/share/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 | export JAVA_OPTS
10 |
11 |
--------------------------------------------------------------------------------
/templates/201707-GA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201707-GA
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum install -y \
6 | ImageMagick \
7 | ghostscript \
8 | postgresql \
9 | && yum clean all
10 |
11 | ENV ALF_HOME /usr/local/alfresco
12 | ENV CATALINA_HOME /usr/local/alfresco/tomcat
13 | WORKDIR $ALF_HOME
14 |
15 | # basic configuration
16 | RUN set -x \
17 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
18 | && mkdir -p $CATALINA_HOME/conf/Catalina/localhost $CATALINA_HOME/shared/classes/alfresco/extension $CATALINA_HOME/shared/lib $ALF_HOME/modules/platform \
19 | && mv $DIST/web-server/lib/*.jar tomcat/lib/ \
20 | && mv $DIST/web-server/webapps/alfresco.war tomcat/webapps/ \
21 | && mv $DIST/alf_data . \
22 | && mv $DIST/amps . \
23 | && mv $DIST/bin . \
24 | && mv $DIST/licenses . \
25 | && mv $DIST/README.txt . \
26 | && rm -rf $CATALINA_HOME/webapps/docs \
27 | && rm -rf $CATALINA_HOME/webapps/examples \
28 | && rm -rf $DIST
29 |
30 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
31 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
32 | COPY assets/tomcat/alfresco.xml tomcat/conf/Catalina/localhost/
33 | COPY assets/alfresco/alfresco-global.properties tomcat/shared/classes/alfresco-global.properties
34 |
35 | # alfresco-pdf-renderer
36 | RUN set -x \
37 | && mkdir /usr/local/alfresco/alfresco-pdf-renderer \
38 | && wget https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/alfresco-pdf-renderer/1.0/alfresco-pdf-renderer-1.0-linux.tgz \
39 | && tar xzvf alfresco-pdf-renderer-1.0-linux.tgz -C /usr/local/alfresco/alfresco-pdf-renderer \
40 | && rm -f alfresco-pdf-renderer-1.0-linux.tgz
41 |
42 | # AMPS installation
43 | COPY assets/alfresco/apply_alfresco_amps.sh $ALF_HOME/bin/apply_amps.sh
44 | COPY assets/amps amps
45 | RUN bash ./bin/apply_amps.sh -nobackup
46 |
47 | # JARS installation
48 | COPY assets/jars/ $ALF_HOME/modules/platform
49 |
50 | # Add api-explorer WAR file
51 | RUN set -x \
52 | && wget https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/api-explorer/5.2.0/api-explorer-5.2.0.war -O tomcat/webapps/api-explorer.war
53 |
54 | ENV PATH $ALF_HOME/bin:$PATH
55 | ENV LANG es_ES.utf8
56 |
57 | COPY assets/wait-for-postgres.sh wait-for-postgres.sh
58 | RUN set -x && chmod +x wait-for-postgres.sh
59 |
60 | RUN useradd -ms /bin/bash alfresco
61 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
62 | USER alfresco
63 |
64 | RUN set -x \
65 | && echo "db:5432:alfresco:alfresco:alfresco" > /home/alfresco/.pgpass \
66 | && chmod 0600 /home/alfresco/.pgpass \
67 | && chown alfresco:alfresco /home/alfresco/.pgpass
68 |
69 | ENV JPDA_ADDRESS="9999"
70 | ENV JPDA_TRANSPORT="dt_socket"
71 |
72 | EXPOSE 8080 8009 9999
73 | VOLUME $ALF_HOME/alf_data
74 | CMD ["./wait-for-postgres.sh", "db", "catalina.sh", "jpda", "run"]
75 |
--------------------------------------------------------------------------------
/templates/201707-GA/alfresco/assets/alfresco/alfresco-global.properties:
--------------------------------------------------------------------------------
1 | ###############################
2 | ## Common Alfresco Properties #
3 | ###############################
4 |
5 | #
6 | # Sample custom content and index data location
7 | #
8 | dir.root=/usr/local/alfresco/alf_data
9 |
10 | alfresco.context=alfresco
11 | alfresco.host=127.0.0.1
12 | alfresco.port=8080
13 | alfresco.protocol=http
14 |
15 | share.context=share
16 | share.host=127.0.0.1
17 | share.port=8080
18 | share.protocol=http
19 |
20 | ### database connection properties ###
21 | db.driver=org.postgresql.Driver
22 | db.username=alfresco
23 | db.password=alfresco
24 | db.name=alfresco
25 | db.url=jdbc:postgresql://db:5432/${db.name}
26 | db.pool.max=275
27 | db.pool.validate.query=SELECT 1
28 |
29 | # The server mode. Set value here
30 | # UNKNOWN | TEST | BACKUP | PRODUCTION
31 | system.serverMode=UNKNOWN
32 |
33 | ### FTP Server Configuration ###
34 | ftp.enabled=false
35 | ftp.port=2121
36 |
37 | ### CIFS Server Configuration ###
38 | cifs.enabled=false
39 |
40 | ### RMI registry port for JMX ###
41 | alfresco.rmi.services.port=50500
42 |
43 | ### External executable locations ###
44 | ooo.exe=soffice.bin
45 | ooo.host=libreoffice
46 | ooo.enabled=true
47 | ooo.port=8100
48 | img.exe=/usr/bin/convert
49 | alfresco-pdf-renderer.root=/usr/local/alfresco/alfresco-pdf-renderer
50 | alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer
51 | jodconverter.enabled=false
52 | jodconverter.officeHome=/opt/libreoffice
53 | jodconverter.portNumbers=8100
54 |
55 | ### E-mail site invitation setting ###
56 | notification.email.siteinvite=false
57 |
58 | ### License location ###
59 | dir.license.external=/usr/local/alfresco
60 |
61 | ### Allow extended ResultSet processing
62 | security.anyDenyDenies=false
63 |
64 | ### Smart Folders Config Properties ###
65 | smart.folders.enabled=false
66 |
67 | ### Remote JMX (Default: disabled) ###
68 | alfresco.jmx.connector.enabled=false
69 |
70 | ### IMAP Server Configuration ###
71 | imap.server.enabled=false
72 |
73 | alfresco.rmi.services.host=0.0.0.0
74 |
75 | #Smart Folders Config Properties
76 | smart.folders.enabled=false
77 | smart.folders.model=alfresco/model/smartfolder-model.xml
78 | smart.folders.model.labels=alfresco/messages/smartfolder-model
79 |
80 | ### Solr indexing ###
81 | index.subsystem.name=solr6
82 | solr.host=solr6
83 | solr.port=8983
84 | solr.port.ssl=8443
85 | solr.secureComms=none
86 |
--------------------------------------------------------------------------------
/templates/201707-GA/alfresco/assets/alfresco/apply_alfresco_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME/tomcat
9 | required_java_version="1.7"
10 |
11 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
12 | . $CATALINA_HOME/bin/setenv.sh
13 | fi
14 |
15 | # Verify Java installation into ALF_HOME folder
16 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
17 | echo
18 | echo "Found java executable in $ALF_HOME/java"
19 | _java=$ALF_HOME/java/bin/java
20 |
21 | # Verify Java installation into JAVA_HOME
22 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
23 | echo
24 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
25 |
26 | _java="$JAVA_HOME/bin/java"
27 |
28 | # Verify Java installation from linux repositories
29 | elif type -p java; then
30 | echo
31 | echo "Found installed java executable on the system"
32 |
33 | _java=java
34 |
35 | else
36 | echo
37 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
38 | echo "Please install Java and try again. Script will be closed. "
39 | read DUMMY
40 | exit 15
41 | fi
42 |
43 | echo
44 | echo "This script will apply all the AMPs in amps to the alfresco.war files in $CATALINA_HOME/webapps"
45 | echo "Press control-c to stop this script . . ."
46 | echo "Press any other key to continue . . ."
47 | read RESP
48 | {
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps $CATALINA_HOME/webapps/alfresco.war -directory $*
50 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/alfresco.war
51 | } ||
52 | {
53 | echo
54 | echo "Error. Appling of the AMPs is failed. See error message above."
55 | echo
56 | }
57 | echo "About to clean out $ALF_HOME/tomcat/webapps/alfresco directory and temporary files..."
58 | echo "Press control-c to stop this script . . ."
59 | echo "Press any other key to continue . . ."
60 | read DUMMY
61 | rm -rf $CATALINA_HOME/webapps/alfresco
62 | . $ALF_HOME/bin/clean_tomcat.sh
63 | popd>/dev/null
--------------------------------------------------------------------------------
/templates/201707-GA/alfresco/assets/amps/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201707-GA/alfresco/assets/jars/enablecors-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201707-GA/alfresco/assets/jars/enablecors-1.0.jar
--------------------------------------------------------------------------------
/templates/201707-GA/alfresco/assets/tomcat/alfresco.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/templates/201707-GA/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 | export JAVA_OPTS
10 |
11 |
--------------------------------------------------------------------------------
/templates/201707-GA/alfresco/assets/wait-for-postgres.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # wait-for-postgres.sh
3 |
4 | set -e
5 |
6 | host="$1"
7 | shift
8 | cmd="$@"
9 |
10 | until psql -h "$host" -U "alfresco" -d "alfresco" -c '\d'; do
11 | >&2 echo "Postgres is unavailable - sleeping"
12 | sleep 1
13 | done
14 |
15 | >&2 echo "Postgres is up - executing command"
16 | exec $cmd
17 |
18 |
--------------------------------------------------------------------------------
/templates/201707-GA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3.1'
2 |
3 | networks:
4 | appNet:
5 |
6 | services:
7 | alfresco:
8 | build: ./alfresco
9 | networks:
10 | appNet:
11 | aliases:
12 | - alfresco
13 | ports:
14 | - 8080:8080
15 | - 9999:9999
16 | environment:
17 | - LANG=en_US.utf8
18 |
19 | share:
20 | build: ./share
21 | ports:
22 | - 9090:8080
23 | networks:
24 | appNet:
25 | aliases:
26 | - share
27 |
28 | db:
29 | build: ./postgres
30 | environment:
31 | - POSTGRES_DB=alfresco
32 | - POSTGRES_USER=alfresco
33 | - POSTGRES_PASSWORD=alfresco
34 | networks:
35 | appNet:
36 | aliases:
37 | - db
38 |
39 | solr6:
40 | image: keensoft/alfresco-solr6:201707-GA
41 | networks:
42 | appNet:
43 | aliases:
44 | - solr6
45 |
46 | libreoffice:
47 | image: keensoft/libreoffice:latest
48 | networks:
49 | appNet:
50 | aliases:
51 | - libreoffice
52 |
--------------------------------------------------------------------------------
/templates/201707-GA/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
3 | ENV LANG en_US.utf8
4 |
--------------------------------------------------------------------------------
/templates/201707-GA/share/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:201707-GA
2 | MAINTAINER keensoft.es
3 |
4 | ENV ALF_HOME /usr/local/alfresco
5 | WORKDIR $ALF_HOME
6 |
7 | # basic configuration
8 | RUN set -x \
9 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
10 | && mkdir -p $CATALINA_HOME/conf/Catalina/localhost $CATALINA_HOME/shared/classes/alfresco/web-extension $CATALINA_HOME/shared/lib $ALF_HOME/modules/share $ALF_HOME/amps_share \
11 | && mv $DIST/web-server/webapps/share.war tomcat/webapps/ \
12 | && mv $DIST/bin . \
13 | && mv $DIST/licenses . \
14 | && mv $DIST/README.txt . \
15 | && rm -rf $CATALINA_HOME/webapps/docs \
16 | && rm -rf $CATALINA_HOME/webapps/examples \
17 | && rm -rf $DIST
18 |
19 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
20 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
21 | COPY assets/tomcat/share.xml tomcat/conf/Catalina/localhost
22 |
23 | COPY assets/share/share-config-custom.xml tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
24 |
25 | # AMPS installation
26 | COPY assets/share/apply_share_amps.sh $ALF_HOME/bin/apply_amps.sh
27 | COPY assets/amps_share amps_share
28 | RUN bash ./bin/apply_amps.sh -force -nobackup
29 |
30 | ENV PATH $ALF_HOME/bin:$PATH
31 | ENV LANG es_ES.utf8
32 |
33 | RUN useradd -ms /bin/bash alfresco
34 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
35 | USER alfresco
36 |
37 | EXPOSE 8080 8009
38 | CMD ["catalina.sh", "run"]
39 |
--------------------------------------------------------------------------------
/templates/201707-GA/share/assets/amps_share/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/201707-GA/share/assets/share/apply_share_amps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -------
3 | # Script for apply AMPs to installed WAR
4 | # -------
5 | pushd $(dirname $0)>/dev/null
6 | export SCRIPTPATH=$(pwd)
7 | export ALF_HOME=${SCRIPTPATH%/*}
8 | export CATALINA_HOME=$ALF_HOME/tomcat
9 | required_java_version="1.7"
10 |
11 | if [ -f $CATALINA_HOME/bin/setenv.sh ]; then
12 | . $CATALINA_HOME/bin/setenv.sh
13 | fi
14 |
15 | # Verify Java installation into ALF_HOME folder
16 | if [ -f $ALF_HOME/java/bin/java ] && [ -x $ALF_HOME/java/bin/java ]; then
17 | echo
18 | echo "Found java executable in $ALF_HOME/java"
19 | _java=$ALF_HOME/java/bin/java
20 |
21 | # Verify Java installation into JAVA_HOME
22 | elif [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
23 | echo
24 | echo "Found java executable in JAVA_HOME: $JAVA_HOME"
25 |
26 | _java="$JAVA_HOME/bin/java"
27 |
28 | # Verify Java installation from linux repositories
29 | elif type -p java; then
30 | echo
31 | echo "Found installed java executable on the system"
32 |
33 | _java=java
34 |
35 | else
36 | echo
37 | echo "Java is not installed . . . The required Java version is $required_java_version or higher"
38 | echo "Please install Java and try again. Script will be closed. "
39 | read DUMMY
40 | exit 15
41 | fi
42 |
43 | echo
44 | echo "This script will apply all the AMPs in amps_share to the share.war file in $CATALINA_HOME/webapps"
45 | echo "Press control-c to stop this script . . ."
46 | echo "Press any other key to continue . . ."
47 | read RESP
48 | {
49 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar install $ALF_HOME/amps_share $CATALINA_HOME/webapps/share.war -directory $*
50 | $_java -jar $ALF_HOME/bin/alfresco-mmt.jar list $CATALINA_HOME/webapps/share.war
51 | } ||
52 | {
53 | echo
54 | echo "Error. Appling of the AMPs is failed. See error message above."
55 | echo
56 | }
57 | echo "About to clean out $ALF_HOME/tomcat/webapps/share directory and temporary files..."
58 | echo "Press control-c to stop this script . . ."
59 | echo "Press any other key to continue . . ."
60 | read DUMMY
61 | rm -rf $CATALINA_HOME/webapps/share
62 | . $ALF_HOME/bin/clean_tomcat.sh
63 | popd>/dev/null
--------------------------------------------------------------------------------
/templates/201707-GA/share/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 | export JAVA_OPTS
10 |
11 |
--------------------------------------------------------------------------------
/templates/201707-GA/share/assets/tomcat/share.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/templates/201804-EA/Makefile:
--------------------------------------------------------------------------------
1 | run: setup_volumes
2 | docker-compose up -d
3 |
4 | setup_volumes:
5 | docker volume create alf-repo-data
6 | docker volume create postgres-data
7 | docker volume create solr-data
8 |
9 | clean:
10 | docker volume remove alf-repo-data
11 | docker volume remove postgres-data
12 | docker volume remove solr-data
13 |
14 | default: run
--------------------------------------------------------------------------------
/templates/201804-EA/README.md:
--------------------------------------------------------------------------------
1 | # Alfresco Docker 201804-EA
2 |
3 | *Production-ready* composition based in official [Docker Composition](https://github.com/Alfresco/acs-community-deployment/tree/master/docker-compose) provided by Alfresco.
4 |
5 | #### Containers
6 |
7 | * alfresco 6.0.5-ea
8 | * share 6.0.a
9 | * postgres 10.1
10 | * solr6 (alfresco-search-services-1.1.1)
11 |
12 | #### Components
13 |
14 | * AOS 1.2.0-RC2
15 | * api-explorer 5.2.2
16 |
17 | # How to use this composition
18 |
19 | You can setup Alfresco using either the included Makefile or by using manual commands.
20 |
21 | 1. Automatic
22 |
23 | Use the Makefile, run `make` on the checked out project root to automatically create the volumes and start docker as a daemon.
24 |
25 | 2. Manual
26 |
27 | See below.
28 |
29 | ## Setting up manually
30 |
31 |
32 | Before starting to use this project, three Named Docker Volumes must be available
33 |
34 | ### Ensure volmes are available
35 |
36 | Check for the existance of volumes by issuing `docker volume list`.
37 |
38 | ```bash
39 | $ docker volume list
40 | local alf-repo-data
41 | local postgres-data
42 | local solr-data
43 | ```
44 |
45 | ### Create Volumes
46 |
47 | You can create the volumes by using following commands:
48 |
49 | ```bash
50 | $ docker volume create alf-repo-data
51 | $ docker volume create postgres-data
52 | $ docker volume create solr-data
53 | ```
54 |
55 | ### Start Docker
56 |
57 | Start docker and check the ports are correctly bound.
58 |
59 | ```bash
60 | $ docker-compose up -d
61 | $ docker ps
62 | docker_httpd 80/tcp,
63 | 0.0.0.0:443->443/tcp
64 | docker_alfresco 1137-1139/tcp,
65 | 1445/tcp, 8080/tcp,
66 | 0.0.0.0:143->1143/tcp,
67 | 0.0.0.0:21->2121/tcp,
68 | 0.0.0.0:25->2525/tcp
69 | postgres:10.1 0.0.0.0:5432->5432/tcp
70 | alfresco/alfresco-search-services:1.1.1 8983/tcp
71 | docker_share 8080/tcp
72 | ```
73 |
74 | ### Viewing System Logs
75 |
76 | You can view the system logs by issuing the following.
77 |
78 | ```bash
79 | $ docker-compose logs -f
80 | ```
81 |
82 | ## Access
83 |
84 | Use the following username/password combination to login.
85 |
86 | - User: admin
87 | - Password: admin
88 |
89 | Alfresco and related web applications can be accessed from the below URIs when the servers have started.
90 |
91 | ```
92 | https://localhost/share
93 | https://localhost/alfresco
94 | https://localhost/solr
95 | https://localhost/api-explorer
96 | ```
97 |
98 | ## Further configuration
99 |
100 | ### Deploying additional Addons
101 |
102 | You can copy additional Alfresco addons to following paths.
103 |
104 | ```
105 | alfresco/target/amps
106 | alfresco/target/jars
107 | share/target/amps_share
108 | share/target/jars
109 | ```
110 |
111 | After you `rebuild` the image, they will be available within the Alfresco instance.
112 |
113 | ### Adding configuration to repository
114 |
115 | You can set additional properties to repository configuration by including these lines in file `alfresco/Dockerfile`
116 |
117 | ```bash
118 | # Add services configuration to alfresco-global.properties
119 | RUN echo -e '\n\
120 | property=value\n\
121 | \n\
122 | ' >> /usr/local/tomcat/shared/classes/alfresco-global.properties
123 | ```
124 |
125 | ### Using real SSL certificates
126 |
127 | Default SSL certificates are *self-generated*. You can include your certificates at `httpd/assets` folder
128 |
129 |
130 | ### Contributors
131 | - [Bhagya Silva](http://about.me/bhagyas) - [Loftux AB](http://loftux.com?ref=githubx)
--------------------------------------------------------------------------------
/templates/201804-EA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM alfresco/alfresco-content-repository-community:6.0.5-ea
2 |
3 | # Add services configuration to alfresco-global.properties
4 | RUN echo -e '\n\
5 | alfresco.host=localhost\n\
6 | alfresco.port=443\n\
7 | alfresco.protocol=https\n\
8 | \n\
9 | share.host=localhost\n\
10 | share.port=443\n\
11 | share.protocol=https\n\
12 | \n\
13 | ftp.enabled=true\n\
14 | ftp.port=2121\n\
15 | \n\
16 | imap.server.enabled=true\n\
17 | imap.server.port=1143\n\
18 | \n\
19 | email.server.enabled=true\n\
20 | email.server.port=2525\n\
21 | \n\
22 | cifs.enabled=true\n\
23 | cifs.tcpipSMB.port=1445\n\
24 | cifs.netBIOSSMB.namePort=1137\n\
25 | cifs.netBIOSSMB.datagramPort=1138\n\
26 | cifs.netBIOSSMB.sessionPort=1139\n\
27 | \n\
28 | ' >> /usr/local/tomcat/shared/classes/alfresco-global.properties
29 |
30 | # Extra software
31 | RUN set -x \
32 | && yum install -y \
33 | wget \
34 | unzip \
35 | && yum clean all
36 |
37 | # Install api-explorer webapp for REST API
38 | RUN set -x \
39 | && wget https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/api-explorer/5.2.2/api-explorer-5.2.2.war -O /usr/local/tomcat/webapps/api-explorer.war
40 |
41 | ARG TOMCAT_DIR=/usr/local/tomcat
42 |
43 | RUN mkdir -p $TOMCAT_DIR/amps
44 |
45 | # Install AOS
46 | RUN set -x \
47 | && mkdir /tmp/aos \
48 | && wget --no-check-certificate https://download.alfresco.com/cloudfront/release/community/201804-EA-build-00073/alfresco-aos-module-distributionzip-1.2.0-RC2.zip \
49 | && unzip alfresco-aos-module-distributionzip-1.2.0-RC2.zip -d /tmp/aos \
50 | && mv /tmp/aos/extension/* /usr/local/tomcat/shared/classes/alfresco/extension \
51 | && mv /tmp/aos/alfresco-aos-module-1.2.0-RC2.amp amps \
52 | && mv /tmp/aos/aos-module-license.txt licenses \
53 | && mv /tmp/aos/_vti_bin.war /usr/local/tomcat/webapps \
54 | && rm -rf /tmp/aos alfresco-aos-module-distributionzip-1.2.0-RC2.zip
55 |
56 | # Install modules and addons
57 | COPY target/amps $TOMCAT_DIR/amps
58 | COPY target/jars $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib
59 |
60 | RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
61 | $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force
62 |
63 | EXPOSE 2121 1143 2525 1445 1137/udp 1138/udp 1139
64 |
--------------------------------------------------------------------------------
/templates/201804-EA/alfresco/target/amps/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201804-EA/alfresco/target/amps/empty
--------------------------------------------------------------------------------
/templates/201804-EA/alfresco/target/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201804-EA/alfresco/target/empty
--------------------------------------------------------------------------------
/templates/201804-EA/alfresco/target/jars/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201804-EA/alfresco/target/jars/empty
--------------------------------------------------------------------------------
/templates/201804-EA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | httpd:
5 | build: ./httpd
6 | ports:
7 | - 443:443 #HTTPs
8 | links:
9 | - alfresco
10 | - share
11 | - solr6
12 |
13 | alfresco:
14 | # image: alfresco/alfresco-content-repository-community:6.0.5-ea
15 | build: ./alfresco
16 | environment:
17 | JAVA_OPTS : "
18 | -Ddb.driver=org.postgresql.Driver
19 | -Ddb.username=alfresco
20 | -Ddb.password=alfresco
21 | -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
22 | -Dsolr.host=solr6
23 | -Dsolr.port=8983
24 | -Dsolr.secureComms=none
25 | -Dsolr.base.url=/solr
26 | -Dindex.subsystem.name=solr6
27 | -Ddeployment.method=DOCKER_COMPOSE
28 | "
29 | volumes:
30 | - alf-repo-data:/usr/local/tomcat/alf_data
31 | ports:
32 | - 21:2121 #FTP port
33 | - 25:2525 #SMTP port
34 | - 143:1143 #IMAP port
35 | # - 445:1145 #CIFS
36 | # - 137:1137/udp #CIFS
37 | # - 138:1138/udp #CIFS
38 | # - 139:1139 #CIFS
39 |
40 | share:
41 | # image: alfresco/alfresco-share:6.0.a
42 | build: ./share
43 | environment:
44 | - REPO_HOST=alfresco
45 | - REPO_PORT=8080
46 |
47 | postgres:
48 | image: postgres:10.1
49 | environment:
50 | - POSTGRES_PASSWORD=alfresco
51 | - POSTGRES_USER=alfresco
52 | - POSTGRES_DB=alfresco
53 | volumes:
54 | - postgres-data:/var/lib/postgresql/data
55 | ports:
56 | - 5432:5432
57 |
58 | solr6:
59 | image: alfresco/alfresco-search-services:1.1.1
60 | environment:
61 | #Solr needs to know how to register itself with Alfresco
62 | - SOLR_ALFRESCO_HOST=alfresco
63 | - SOLR_ALFRESCO_PORT=8080
64 | #Alfresco needs to know how to call solr
65 | - SOLR_SOLR_HOST=solr6
66 | - SOLR_SOLR_PORT=8983
67 | #Create the default alfresco and archive cores
68 | - SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
69 | volumes:
70 | - solr-data:/opt/alfresco-search-services/data
71 |
72 | volumes:
73 | alf-repo-data:
74 | external: true
75 | postgres-data:
76 | external: true
77 | solr-data:
78 | external: true
79 |
--------------------------------------------------------------------------------
/templates/201804-EA/httpd/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM httpd:2.4
2 | COPY assets/alfresco-vhost.conf /usr/local/apache2/conf/extra/alfresco-vhost.conf
3 | COPY assets/server.key /usr/local/apache2/conf/server.key
4 | COPY assets/server.crt /usr/local/apache2/conf/server.crt
5 | COPY assets/CA.pem /etc/pki/tls/certs/cacert.pem
6 |
7 | RUN set -x \
8 | && cd /etc/pki/tls/certs \
9 | && ln -s cacert.pem 808a7e8e.0 \
10 | && sed -i 's,#LoadModule ssl_module modules/mod_ssl.so,LoadModule ssl_module modules/mod_ssl.so,g' /usr/local/apache2/conf/httpd.conf \
11 | && sed -i 's,#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,g' /usr/local/apache2/conf/httpd.conf \
12 | && sed -i 's,#LoadModule xml2enc_module modules/mod_xml2enc.so,LoadModule xml2enc_module modules/mod_xml2enc.so,g' /usr/local/apache2/conf/httpd.conf \
13 | && sed -i 's,#LoadModule rewrite_module modules/mod_rewrite.so,LoadModule rewrite_module modules/mod_rewrite.so,g' /usr/local/apache2/conf/httpd.conf \
14 | && sed -i 's,#LoadModule proxy_html_module modules/mod_proxy_html.so,LoadModule proxy_html_module modules/mod_proxy_html.so,g' /usr/local/apache2/conf/httpd.conf \
15 | && sed -i 's,#LoadModule proxy_module modules/mod_proxy.so,LoadModule proxy_module modules/mod_proxy.so,g' /usr/local/apache2/conf/httpd.conf \
16 | && sed -i 's,#LoadModule proxy_connect_module modules/mod_proxy_connect.so,LoadModule proxy_connect_module modules/mod_proxy_connect.so,g' /usr/local/apache2/conf/httpd.conf \
17 | && sed -i 's,#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so,LoadModule proxy_ajp_module modules/mod_proxy_ajp.so,g' /usr/local/apache2/conf/httpd.conf \
18 | && sed -i 's,#LoadModule proxy_http_module modules/mod_proxy_http.so,LoadModule proxy_http_module modules/mod_proxy_http.so,g' /usr/local/apache2/conf/httpd.conf \
19 | && echo "Include conf/extra/alfresco-vhost.conf" >> /usr/local/apache2/conf/httpd.conf
20 |
21 | EXPOSE 443
--------------------------------------------------------------------------------
/templates/201804-EA/httpd/assets/CA.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIECjCCAvKgAwIBAgIJAJHpfKBg+tg7MA0GCSqGSIb3DQEBCwUAMIGZMQswCQYD
3 | VQQGEwJFUzEOMAwGA1UECAwFU3BhaW4xDzANBgNVBAcMBk1hZHJpZDERMA8GA1UE
4 | CgwIa2VlbnNvZnQxETAPBgNVBAsMCEFsZnJlc2NvMRwwGgYDVQQDDBNjYS5rZWVu
5 | c29mdC50ZXN0LmVzMSUwIwYJKoZIhvcNAQkBFhZtaWtlbC5hc2xhQGtlZW5zb2Z0
6 | LmVzMB4XDTE3MTIxMTE3MTgxNFoXDTQ1MDUyMjE3MTgxNFowgZkxCzAJBgNVBAYT
7 | AkVTMQ4wDAYDVQQIDAVTcGFpbjEPMA0GA1UEBwwGTWFkcmlkMREwDwYDVQQKDAhr
8 | ZWVuc29mdDERMA8GA1UECwwIQWxmcmVzY28xHDAaBgNVBAMME2NhLmtlZW5zb2Z0
9 | LnRlc3QuZXMxJTAjBgkqhkiG9w0BCQEWFm1pa2VsLmFzbGFAa2VlbnNvZnQuZXMw
10 | ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDOFRzGt44IAqTU3HTxFpfG
11 | w/gULBmj7La+oGZ7OyKgBfCW+83x9/bPcXapuiPLB9cdL5AB5BwUhMfa/5mVatNm
12 | 5H7Rez3uzApM7bZKcQTF1CmfSBc3C0lQerK8yCmbEPJ+WlwaHaEMgdbc2/p6b6Zu
13 | 66LdTznjuuW+pSdl7hhLRor9BItifOy9YR1uEhHsl60Ejb9IMuzFDI7c7EhsYycV
14 | 45TKU1ewIQa5Ixh2YolT5en4RpxfTot4rAXzgf82rHLBqTL5tfwLvYgUTPlQ7oqG
15 | JcTe+zUakLO/eRXWthw5dLaKufP9ggI1QR9mdB8fzgxePv6Xl9Hq7tg2fh7XZ5/B
16 | AgMBAAGjUzBRMB0GA1UdDgQWBBTY8qqo3+slKfaHfu0GjX+2cdokhzAfBgNVHSME
17 | GDAWgBTY8qqo3+slKfaHfu0GjX+2cdokhzAPBgNVHRMBAf8EBTADAQH/MA0GCSqG
18 | SIb3DQEBCwUAA4IBAQB80eX1ritwrwIooGaDZX2bovoSiEr+PhXN0C8x8hPFt6/t
19 | BwB3ijMA7BHFiagbuIX9qhNJzkl8BiaPydIayrvDAGyoxhtcU+QkyZxqPEL7SZOo
20 | MNCicJYwmNvnIaIfqoHto1I7vdz6BNViq3cGsd6JFQn55F/it3kdaAy2NDJtgTt9
21 | dnQ1sLNa1HDTZdAoQxhmqdbZeP1/7lvJGnjGNxbG43n6AaDtJyYMqtHQVFgL83L4
22 | ieU5iK3DZFDDGAN3dSCsz7QDXnBIJDqcFOWkW3NfzTwk1O1zGtJKMMIL9VhKoB0f
23 | ymcOzzdgW05FfOpI+4fSTi+UCP6fxJWwAKVIXVet
24 | -----END CERTIFICATE-----
25 |
--------------------------------------------------------------------------------
/templates/201804-EA/httpd/assets/alfresco-vhost.conf:
--------------------------------------------------------------------------------
1 | Listen 443
2 |
3 |
4 | ServerName alfresco.keensoft.es
5 |
6 | SSLEngine on
7 | SSLCertificateFile /usr/local/apache2/conf/server.crt
8 | SSLCertificateKeyFile /usr/local/apache2/conf/server.key
9 | SSLCACertificatePath /etc/pki/tls/certs/
10 | SSLOptions +StdEnvVars +ExportCertData
11 |
12 | ProxyPass "/share" "ajp://share:8009/share"
13 | ProxyPassReverse "/share" "ajp://share:8009/share"
14 |
15 | ProxyPass "/solr" "http://solr6:8983/solr"
16 | ProxyPassReverse "/solr" "http://solr6:8983/solr"
17 |
18 | ProxyPass "/api-explorer" "ajp://alfresco:8009/api-explorer"
19 | ProxyPassReverse "/api-explorer" "ajp://alfresco:8009/api-explorer"
20 |
21 | ProxyPass "/alfresco/webdav" "ajp://alfresco:8009/alfresco/webdav"
22 | ProxyPassReverse "/alfresco/webdav" "ajp://alfresco:8009/alfresco/webdav"
23 |
24 | ProxyPass "/" "ajp://alfresco:8009/"
25 | ProxyPassReverse "/" "ajp://alfresco:8009/"
26 |
27 | ProxyPass "/_vti_inf.html" "ajp://alfresco:8009/_vti_inf.html"
28 | ProxyPassReverse "/_vti_inf.html" "ajp://alfresco:8009/_vti_inf.html"
29 |
30 | ProxyPass "/_vti_bin" "ajp://alfresco:8009/_vti_bin"
31 | ProxyPassReverse "/_vti_bin" "ajp://alfresco:8009/_vti_bin"
32 |
33 | ProxyPass "/alfresco" "ajp://alfresco:8009/alfresco"
34 | ProxyPassReverse "/alfresco" "ajp://alfresco:8009/alfresco"
35 |
36 | ProxyPass "/alfresco/aos" "ajp://alfresco:8009/alfresco/aos"
37 | ProxyPassReverse "/alfresco/aos" "ajp://alfresco:8009/alfresco/aos"
38 |
39 | ProxyPass "/alfresco/images" "ajp://alfresco:8009/alfresco/images"
40 | ProxyPassReverse "/alfresco/images" "ajp://alfresco:8009/alfresco/images"
41 |
42 | ProxyPass "/alfresco/css" "ajp://alfresco:8009/alfresco/css"
43 | ProxyPassReverse "/alfresco/css" "ajp://alfresco:8009/alfresco/css"
44 |
45 | ProxyPass "/alfresco/api" "ajp://alfresco:8009/alfresco/api"
46 | ProxyPassReverse "/alfresco/api" "ajp://alfresco:8009/alfresco/api"
47 |
48 | ProxyPass "/alfresco/service" "ajp://alfresco:8009/alfresco/service"
49 | ProxyPassReverse "/alfresco/service" "ajp://alfresco:8009/alfresco/service"
50 |
51 | ProxyPass "/alfresco/cmisatom" "ajp://alfresco:8009/alfresco/cmisatom"
52 | ProxyPassReverse "/alfresco/cmisatom" "ajp://alfresco:8009/alfresco/cmisatom"
53 |
54 |
--------------------------------------------------------------------------------
/templates/201804-EA/httpd/assets/server.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDyDCCArCgAwIBAgIJAI/gcM3e8yMNMA0GCSqGSIb3DQEBCwUAMIGZMQswCQYD
3 | VQQGEwJFUzEOMAwGA1UECAwFU3BhaW4xDzANBgNVBAcMBk1hZHJpZDERMA8GA1UE
4 | CgwIa2VlbnNvZnQxETAPBgNVBAsMCEFsZnJlc2NvMRwwGgYDVQQDDBNjYS5rZWVu
5 | c29mdC50ZXN0LmVzMSUwIwYJKoZIhvcNAQkBFhZtaWtlbC5hc2xhQGtlZW5zb2Z0
6 | LmVzMB4XDTE3MTIxMTE3MjIwNFoXDTIwMDkwNTE3MjIwNFowWDELMAkGA1UEBhMC
7 | RVMxDTALBgNVBAgMBE5vbmUxETAPBgNVBAcMCGtlZW5zb2Z0MREwDwYDVQQKDAhB
8 | bGZyZXNjbzEUMBIGA1UEAwwLKi5vcGltcy5jb20wggEiMA0GCSqGSIb3DQEBAQUA
9 | A4IBDwAwggEKAoIBAQDmBChPNaCxUAKneL0+EydwWJ4qRDMkzOkrPz0JO6Z2WKL6
10 | UrbqX4AS/wyQSetlcfEIWvZtErYX3+f1FKUHGM0E2ODGrkyS6eo8vGAFAJwagI0+
11 | o+xfTRsidXQn7J1lq08R9IXC/vH72bOsb1RCaCG3iL9foHHQqntJ0Zr4kFls6Cjg
12 | DjDVgzgxhjBxjwNM2czOX+HNpZsBjDRFMlOshIqrrQaj3b1Q1xbEECrTWzOu9gLW
13 | jlyebQoj56Yyo5MEQq9OHwSRDLIhegT48ebXuIgUD7YRjPgJPuTj4eb9jUufQlL8
14 | vdwkfeWIuRxGxtYBIj98sF1wePOlltDB13cWu1NnAgMBAAGjUzBRMB8GA1UdIwQY
15 | MBaAFNjyqqjf6yUp9od+7QaNf7Zx2iSHMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgTw
16 | MBYGA1UdEQQPMA2CCyoub3BpbXMuY29tMA0GCSqGSIb3DQEBCwUAA4IBAQAz+OL1
17 | qSLqSjs+UMAZMXee0sDc+sKyW6FNiwaYiQdhobV2mktAYQfllwWfC5bEuzS2ROK0
18 | 2Os5OSS1Jk+BraZSQkAzX4Chr40yBXv4sOyLPap97vA8Pv8in5kLCHxQK3t1US2H
19 | TgwwLz5xrcYUvmmDmOsdbS7jLP04vOrU9mazxm+kxAiHSQnfMWLg6b//UUwCSNd+
20 | aHqc17dff7pxuhXmOwzNhFt0xFgh1eJy2hL1A2vdM0MHHroijHNCWYzE2D4x3Obm
21 | mrF2DVL6iPYzhaGf7V4CpSj7nBftAim54k5jLO1LhKAxNUb8mbU7ESJXp38A1dVN
22 | WGBoBL6j7ENduLyr
23 | -----END CERTIFICATE-----
24 |
--------------------------------------------------------------------------------
/templates/201804-EA/httpd/assets/server.key:
--------------------------------------------------------------------------------
1 | -----BEGIN PRIVATE KEY-----
2 | MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDmBChPNaCxUAKn
3 | eL0+EydwWJ4qRDMkzOkrPz0JO6Z2WKL6UrbqX4AS/wyQSetlcfEIWvZtErYX3+f1
4 | FKUHGM0E2ODGrkyS6eo8vGAFAJwagI0+o+xfTRsidXQn7J1lq08R9IXC/vH72bOs
5 | b1RCaCG3iL9foHHQqntJ0Zr4kFls6CjgDjDVgzgxhjBxjwNM2czOX+HNpZsBjDRF
6 | MlOshIqrrQaj3b1Q1xbEECrTWzOu9gLWjlyebQoj56Yyo5MEQq9OHwSRDLIhegT4
7 | 8ebXuIgUD7YRjPgJPuTj4eb9jUufQlL8vdwkfeWIuRxGxtYBIj98sF1wePOlltDB
8 | 13cWu1NnAgMBAAECggEBAJLBWE6hcrNuzyK3AFcYtXMSt2dUOCVkr+gt4u1/J4ge
9 | qW15VMdYw0hbflKZNx10g0rHbq7M322AKGjQETLj+fr7vP5GuwiJQjAaKFFIwFCQ
10 | cI3k3K05bvSfZ8sJRqtVj49vKeDt9Mqxbde4+FOeSNTm5ONIZRWzkBHbMDsjLksy
11 | 5yDQUeN5yb59nROn3g9r1mK9YWDRRlBTE43uerEGqhJr5i3Ok2uwKBBzGC3XuppI
12 | bwbxnrp/+a9G3rPl0K5yBoYJUFqv7TQ2dDEtJLsnuy2W8XWH/m+h30jK7CNGvOAV
13 | dMRUKKVNO/yluBgpzsV1oF3f3dpF1So8VAThTbzrnfECgYEA9poOyGZDv9uD6ybI
14 | Qoza18+gnJuBoUbR8mm+cUJZRI0IlwSGA9fjci2VSGyvaNPUTmNpAOn3lYPzlzM1
15 | DPrOpOYRUfGMBaSL6KttRL9ne/ih5zeDr1IKlC7hbHU/YEj/FF0zfcTJl1xSDzR3
16 | ijkN/SFAPwuQ7E7+G/87qSpuyIUCgYEA7shI4lTywwPD39MgquKjBmQr5G/f06m/
17 | dkVIjxFsYm9fMEUn46Ed8Ak0roCU19XV6hXcoG8G6+exEWSeaLi1F0Ayr8Ug/o0Y
18 | YHWGjmESYHowoIbvUC/sSUuAEBBDof+XtzK3VmTDGfAyd7+C/MiBWSwP0Nj88jD1
19 | mud7R1cTpfsCgYA6KkhGWGiufjZ1ZqZhnBuaP6zgg4Vl5vBqPyreSAoKM0HNbRG3
20 | IlrReZL2jDwre5teCfCgeI8fQwpXpYpjz1yiZGm9bD3crt0ZOiYByyu7f/+gK+Xx
21 | mmZIYW5mSJl0OoN/6CPXDG2IOAxa7cMsZRy5kfg3ZqD+O/uP2vnVgt6yiQKBgDcT
22 | IxxxE30/hRI/FC3WEFwNBsKtuyaK5IpW+KFnF2Ss43uyt7ydENaoiOom5i3SOIDB
23 | gh3O/f2zdvfYCWGGGN7AA/Deuvl7eb/l259DbIWsKUMdXF1WcF2HeIY7+h2HYmry
24 | 266llwqIiFtuZLwBUzRKIWu+YLlL6ZpNAfY2c2W5AoGBAK+iC53arcA3U90wYwDd
25 | 8PTyRLoS69dxUDQYCTRvLAtIxLtqkRwQDxr2WGXnw80lKxFqTuuwR7QG5XmTxV4K
26 | BkzPlqC3uMy2WNx1JxFr8+fQvu1YeeG/dOknnqGDEcbMi/ke+9gxn6/IxV/fQzI0
27 | K3nkd8gJbSYXI4h53IaFDMy/
28 | -----END PRIVATE KEY-----
29 |
--------------------------------------------------------------------------------
/templates/201804-EA/share/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM alfresco/alfresco-share:6.0.a
2 |
3 | ARG TOMCAT_DIR=/usr/local/tomcat
4 |
5 | RUN mkdir -p $TOMCAT_DIR/amps_share
6 |
7 | COPY target/amps_share $TOMCAT_DIR/amps_share
8 | COPY target/jars $TOMCAT_DIR/webapps/share/WEB-INF/lib
9 |
10 | RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
11 | $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force
--------------------------------------------------------------------------------
/templates/201804-EA/share/target/amps_share/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201804-EA/share/target/amps_share/empty
--------------------------------------------------------------------------------
/templates/201804-EA/share/target/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201804-EA/share/target/empty
--------------------------------------------------------------------------------
/templates/201804-EA/share/target/jars/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201804-EA/share/target/jars/empty
--------------------------------------------------------------------------------
/templates/201806-GA/README.md:
--------------------------------------------------------------------------------
1 | # Alfresco Docker 201806-GA
2 |
3 | *Production-ready* composition based in official [Docker Composition](https://github.com/Alfresco/acs-community-deployment/tree/master/docker-compose) provided by Alfresco.
4 |
5 | ## Containers
6 |
7 | * alfresco 6.0.7-ga
8 | * share 6.0.b
9 | * postgres 10.1
10 | * solr6 (alfresco-search-services-1.1.1)
11 |
12 | ## Components
13 |
14 | * AOS 1.2.0
15 | * api-explorer 6.0.7-ga
16 |
17 | # How to use this composition
18 |
19 | Data wil be persisted automatically in `data` folder. Once launched, Docker will create three subfolders for following services:
20 |
21 | * `alf-repo-data` for Content Store
22 | * `postgres-data` for Database
23 | * `solr-data` for Indexes
24 |
25 | For Linux hosts, set `solr-data` folder permissions to user with UID 1001, as `alfresco-search-services` is using an container user named `solr` with UID 1001.
26 |
27 | ## Start Docker
28 |
29 | Start docker and check the ports are correctly bound.
30 |
31 | ```bash
32 | $ docker-compose up -d
33 | $ docker ps
34 | docker_httpd 80/tcp,
35 | 0.0.0.0:443->443/tcp
36 | docker_alfresco 1137-1139/tcp,
37 | 1445/tcp, 8080/tcp,
38 | 0.0.0.0:143->1143/tcp,
39 | 0.0.0.0:21->2121/tcp,
40 | 0.0.0.0:25->2525/tcp
41 | postgres:10.1 0.0.0.0:5432->5432/tcp
42 | alfresco/alfresco-search-services:1.1.1 8983/tcp
43 | docker_share 8080/tcp
44 | ```
45 |
46 | ### Viewing System Logs
47 |
48 | You can view the system logs by issuing the following.
49 |
50 | ```bash
51 | $ docker-compose logs -f
52 | ```
53 |
54 | ## Access
55 |
56 | Use the following username/password combination to login.
57 |
58 | - User: admin
59 | - Password: admin
60 |
61 | Alfresco and related web applications can be accessed from the below URIs when the servers have started.
62 |
63 | ```
64 | https://localhost/share
65 | https://localhost/alfresco
66 | https://localhost/solr
67 | https://localhost/api-explorer
68 | ```
69 |
70 | ## Further configuration
71 |
72 | ### Deploying additional Addons
73 |
74 | You can copy additional Alfresco addons to following paths.
75 |
76 | ```
77 | alfresco/modules/amps
78 | alfresco/modules/jars
79 | share/modules/amps_share
80 | share/modules/jars
81 | ```
82 |
83 | After you `rebuild` the image, they will be available within the Alfresco instance.
84 |
85 | ### Adding configuration to repository
86 |
87 | You can set additional properties to repository configuration by including these lines in file `alfresco/Dockerfile`
88 |
89 | ```bash
90 | # Add services configuration to alfresco-global.properties
91 | RUN echo -e '\n\
92 | property=value\n\
93 | \n\
94 | ' >> /usr/local/tomcat/shared/classes/alfresco-global.properties
95 | ```
96 |
97 | ### Using real SSL certificates
98 |
99 | Default SSL certificates are *self-generated*. You can include your certificates at `https/assets` folder
100 |
101 | ### Using plain HTTP
102 |
103 | You can use plain HTTP by using `docker-compose-http.yml` Docker Compose
104 |
105 | ```
106 | $ docker-compose -f docker-compose-http.yml` up
107 | ```
108 |
109 | With this option, following services are available:
110 |
111 | ```
112 | http://localhost/share
113 | http://localhost/alfresco
114 | http://localhost/solr
115 | http://localhost/api-explorer
116 | ```
117 |
118 |
119 |
--------------------------------------------------------------------------------
/templates/201806-GA/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM alfresco/alfresco-content-repository-community:6.0.7-ga
2 |
3 | # Add services configuration to alfresco-global.properties
4 | RUN echo -e '\n\
5 | alfresco.host=localhost\n\
6 | alfresco.port=443\n\
7 | alfresco.protocol=https\n\
8 | \n\
9 | share.host=localhost\n\
10 | share.port=443\n\
11 | share.protocol=https\n\
12 | \n\
13 | ftp.enabled=true\n\
14 | ftp.port=2121\n\
15 | \n\
16 | imap.server.enabled=true\n\
17 | imap.server.port=1143\n\
18 | \n\
19 | email.server.enabled=true\n\
20 | email.server.port=2525\n\
21 | \n\
22 | cifs.enabled=true\n\
23 | cifs.tcpipSMB.port=1445\n\
24 | cifs.netBIOSSMB.namePort=1137\n\
25 | cifs.netBIOSSMB.datagramPort=1138\n\
26 | cifs.netBIOSSMB.sessionPort=1139\n\
27 | \n\
28 | ' >> /usr/local/tomcat/shared/classes/alfresco-global.properties
29 |
30 | # Extra software
31 | RUN set -x \
32 | && yum install -y \
33 | wget \
34 | unzip \
35 | && yum clean all
36 |
37 | # Install api-explorer webapp for REST API
38 | RUN set -x \
39 | && wget https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/api-explorer/6.0.7-ga/api-explorer-6.0.7-ga.war -O /usr/local/tomcat/webapps/api-explorer.war
40 |
41 | ARG TOMCAT_DIR=/usr/local/tomcat
42 |
43 | RUN mkdir -p $TOMCAT_DIR/amps
44 |
45 | # Install AOS
46 | RUN set -x \
47 | && mkdir /tmp/aos \
48 | && wget --no-check-certificate https://download.alfresco.com/cloudfront/release/community/201806-GA-build-00113/alfresco-aos-module-distributionzip-1.2.0.zip \
49 | && unzip alfresco-aos-module-distributionzip-1.2.0.zip -d /tmp/aos \
50 | && mv /tmp/aos/extension/* /usr/local/tomcat/shared/classes/alfresco/extension \
51 | && mv /tmp/aos/alfresco-aos-module-1.2.0.amp amps \
52 | && mv /tmp/aos/aos-module-license.txt licenses \
53 | && mv /tmp/aos/_vti_bin.war /usr/local/tomcat/webapps \
54 | && rm -rf /tmp/aos alfresco-aos-module-distributionzip-1.2.0.zip
55 |
56 | # Install modules and addons
57 | COPY modules/amps $TOMCAT_DIR/amps
58 | COPY modules/jars $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib
59 |
60 | RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
61 | $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force
62 |
63 | EXPOSE 2121 1143 2525 1445 1137/udp 1138/udp 1139
64 |
--------------------------------------------------------------------------------
/templates/201806-GA/alfresco/modules/amps/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/alfresco/modules/amps/empty
--------------------------------------------------------------------------------
/templates/201806-GA/alfresco/modules/amps/javascript-console-repo-0.6.0.amp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/alfresco/modules/amps/javascript-console-repo-0.6.0.amp
--------------------------------------------------------------------------------
/templates/201806-GA/alfresco/modules/amps/support-tools-repo-1.1.0.0-SNAPSHOT.amp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/alfresco/modules/amps/support-tools-repo-1.1.0.0-SNAPSHOT.amp
--------------------------------------------------------------------------------
/templates/201806-GA/alfresco/modules/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/alfresco/modules/empty
--------------------------------------------------------------------------------
/templates/201806-GA/alfresco/modules/jars/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/alfresco/modules/jars/empty
--------------------------------------------------------------------------------
/templates/201806-GA/data/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/data/empty
--------------------------------------------------------------------------------
/templates/201806-GA/docker-compose-http.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | http:
5 | build: ./http
6 | ports:
7 | - 80:80 #HTTP
8 | links:
9 | - alfresco
10 | - share
11 | - solr6
12 |
13 | alfresco:
14 | # image: alfresco/alfresco-content-repository-community:6.0.5-ea
15 | build: ./alfresco
16 | environment:
17 | JAVA_OPTS : "
18 | -Ddb.driver=org.postgresql.Driver
19 | -Ddb.username=alfresco
20 | -Ddb.password=alfresco
21 | -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
22 | -Dsolr.host=solr6
23 | -Dsolr.port=8983
24 | -Dsolr.secureComms=none
25 | -Dsolr.base.url=/solr
26 | -Dindex.subsystem.name=solr6
27 | -Ddeployment.method=DOCKER_COMPOSE
28 | "
29 | volumes:
30 | - ./data/alf-repo-data:/usr/local/tomcat/alf_data
31 | ports:
32 | - 21:2121 #FTP port
33 | - 25:2525 #SMTP port
34 | - 143:1143 #IMAP port
35 | # - 445:1145 #CIFS
36 | # - 137:1137/udp #CIFS
37 | # - 138:1138/udp #CIFS
38 | # - 139:1139 #CIFS
39 |
40 | share:
41 | # image: alfresco/alfresco-share:6.0.a
42 | build: ./share
43 | environment:
44 | - REPO_HOST=alfresco
45 | - REPO_PORT=8080
46 |
47 | postgres:
48 | image: postgres:10.1
49 | environment:
50 | - POSTGRES_PASSWORD=alfresco
51 | - POSTGRES_USER=alfresco
52 | - POSTGRES_DB=alfresco
53 | command: postgres -c max_connections=300 -c log_min_messages=LOG
54 | volumes:
55 | - ./data/postgres-data:/var/lib/postgresql/data
56 | ports:
57 | - 5432:5432
58 |
59 | solr6:
60 | image: alfresco/alfresco-search-services:1.1.1
61 | environment:
62 | #Solr needs to know how to register itself with Alfresco
63 | - SOLR_ALFRESCO_HOST=alfresco
64 | - SOLR_ALFRESCO_PORT=8080
65 | #Alfresco needs to know how to call solr
66 | - SOLR_SOLR_HOST=solr6
67 | - SOLR_SOLR_PORT=8983
68 | #Create the default alfresco and archive cores
69 | - SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
70 | volumes:
71 | - ./data/solr-data:/opt/alfresco-search-services/data
--------------------------------------------------------------------------------
/templates/201806-GA/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | https:
5 | build: ./https
6 | ports:
7 | - 443:443 #HTTPs
8 | links:
9 | - alfresco
10 | - share
11 | - solr6
12 |
13 | alfresco:
14 | # image: alfresco/alfresco-content-repository-community:6.0.5-ea
15 | build: ./alfresco
16 | environment:
17 | JAVA_OPTS : "
18 | -Ddb.driver=org.postgresql.Driver
19 | -Ddb.username=alfresco
20 | -Ddb.password=alfresco
21 | -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
22 | -Dsolr.host=solr6
23 | -Dsolr.port=8983
24 | -Dsolr.secureComms=none
25 | -Dsolr.base.url=/solr
26 | -Dindex.subsystem.name=solr6
27 | -Ddeployment.method=DOCKER_COMPOSE
28 | "
29 | volumes:
30 | - ./data/alf-repo-data:/usr/local/tomcat/alf_data
31 | ports:
32 | - 21:2121 #FTP port
33 | - 25:2525 #SMTP port
34 | - 143:1143 #IMAP port
35 | # - 445:1145 #CIFS
36 | # - 137:1137/udp #CIFS
37 | # - 138:1138/udp #CIFS
38 | # - 139:1139 #CIFS
39 |
40 | share:
41 | # image: alfresco/alfresco-share:6.0.a
42 | build: ./share
43 | environment:
44 | - REPO_HOST=alfresco
45 | - REPO_PORT=8080
46 |
47 | postgres:
48 | image: postgres:10.1
49 | environment:
50 | - POSTGRES_PASSWORD=alfresco
51 | - POSTGRES_USER=alfresco
52 | - POSTGRES_DB=alfresco
53 | command: postgres -c max_connections=300 -c log_min_messages=LOG
54 | volumes:
55 | - ./data/postgres-data:/var/lib/postgresql/data
56 | ports:
57 | - 5432:5432
58 |
59 | solr6:
60 | image: alfresco/alfresco-search-services:1.1.1
61 | environment:
62 | #Solr needs to know how to register itself with Alfresco
63 | - SOLR_ALFRESCO_HOST=alfresco
64 | - SOLR_ALFRESCO_PORT=8080
65 | #Alfresco needs to know how to call solr
66 | - SOLR_SOLR_HOST=solr6
67 | - SOLR_SOLR_PORT=8983
68 | #Create the default alfresco and archive cores
69 | - SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
70 | volumes:
71 | - ./data/solr-data:/opt/alfresco-search-services/data
--------------------------------------------------------------------------------
/templates/201806-GA/http/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM httpd:2.4
2 | COPY assets/alfresco-vhost.conf /usr/local/apache2/conf/extra/alfresco-vhost.conf
3 |
4 | RUN set -x \
5 | && sed -i 's,#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,g' /usr/local/apache2/conf/httpd.conf \
6 | && sed -i 's,#LoadModule xml2enc_module modules/mod_xml2enc.so,LoadModule xml2enc_module modules/mod_xml2enc.so,g' /usr/local/apache2/conf/httpd.conf \
7 | && sed -i 's,#LoadModule rewrite_module modules/mod_rewrite.so,LoadModule rewrite_module modules/mod_rewrite.so,g' /usr/local/apache2/conf/httpd.conf \
8 | && sed -i 's,#LoadModule proxy_html_module modules/mod_proxy_html.so,LoadModule proxy_html_module modules/mod_proxy_html.so,g' /usr/local/apache2/conf/httpd.conf \
9 | && sed -i 's,#LoadModule proxy_module modules/mod_proxy.so,LoadModule proxy_module modules/mod_proxy.so,g' /usr/local/apache2/conf/httpd.conf \
10 | && sed -i 's,#LoadModule proxy_connect_module modules/mod_proxy_connect.so,LoadModule proxy_connect_module modules/mod_proxy_connect.so,g' /usr/local/apache2/conf/httpd.conf \
11 | && sed -i 's,#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so,LoadModule proxy_ajp_module modules/mod_proxy_ajp.so,g' /usr/local/apache2/conf/httpd.conf \
12 | && sed -i 's,#LoadModule proxy_http_module modules/mod_proxy_http.so,LoadModule proxy_http_module modules/mod_proxy_http.so,g' /usr/local/apache2/conf/httpd.conf \
13 | && echo "Include conf/extra/alfresco-vhost.conf" >> /usr/local/apache2/conf/httpd.conf
14 |
15 | EXPOSE 80
--------------------------------------------------------------------------------
/templates/201806-GA/http/assets/alfresco-vhost.conf:
--------------------------------------------------------------------------------
1 |
2 | ServerName alfresco.keensoft.es
3 |
4 | ProxyPass "/share" "ajp://share:8009/share"
5 | ProxyPassReverse "/share" "ajp://share:8009/share"
6 |
7 | ProxyPass "/solr" "http://solr6:8983/solr"
8 | ProxyPassReverse "/solr" "http://solr6:8983/solr"
9 |
10 | ProxyPass "/api-explorer" "ajp://alfresco:8009/api-explorer"
11 | ProxyPassReverse "/api-explorer" "ajp://alfresco:8009/api-explorer"
12 |
13 | ProxyPass "/alfresco/webdav" "ajp://alfresco:8009/alfresco/webdav"
14 | ProxyPassReverse "/alfresco/webdav" "ajp://alfresco:8009/alfresco/webdav"
15 |
16 | ProxyPass "/" "ajp://alfresco:8009/"
17 | ProxyPassReverse "/" "ajp://alfresco:8009/"
18 |
19 | ProxyPass "/_vti_inf.html" "ajp://alfresco:8009/_vti_inf.html"
20 | ProxyPassReverse "/_vti_inf.html" "ajp://alfresco:8009/_vti_inf.html"
21 |
22 | ProxyPass "/_vti_bin" "ajp://alfresco:8009/_vti_bin"
23 | ProxyPassReverse "/_vti_bin" "ajp://alfresco:8009/_vti_bin"
24 |
25 | ProxyPass "/alfresco" "ajp://alfresco:8009/alfresco"
26 | ProxyPassReverse "/alfresco" "ajp://alfresco:8009/alfresco"
27 |
28 | ProxyPass "/alfresco/aos" "ajp://alfresco:8009/alfresco/aos"
29 | ProxyPassReverse "/alfresco/aos" "ajp://alfresco:8009/alfresco/aos"
30 |
31 | ProxyPass "/alfresco/images" "ajp://alfresco:8009/alfresco/images"
32 | ProxyPassReverse "/alfresco/images" "ajp://alfresco:8009/alfresco/images"
33 |
34 | ProxyPass "/alfresco/css" "ajp://alfresco:8009/alfresco/css"
35 | ProxyPassReverse "/alfresco/css" "ajp://alfresco:8009/alfresco/css"
36 |
37 | ProxyPass "/alfresco/api" "ajp://alfresco:8009/alfresco/api"
38 | ProxyPassReverse "/alfresco/api" "ajp://alfresco:8009/alfresco/api"
39 |
40 | ProxyPass "/alfresco/service" "ajp://alfresco:8009/alfresco/service"
41 | ProxyPassReverse "/alfresco/service" "ajp://alfresco:8009/alfresco/service"
42 |
43 | ProxyPass "/alfresco/cmisatom" "ajp://alfresco:8009/alfresco/cmisatom"
44 | ProxyPassReverse "/alfresco/cmisatom" "ajp://alfresco:8009/alfresco/cmisatom"
45 |
46 |
--------------------------------------------------------------------------------
/templates/201806-GA/https/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM httpd:2.4
2 | COPY assets/alfresco-vhost.conf /usr/local/apache2/conf/extra/alfresco-vhost.conf
3 | COPY assets/server.key /usr/local/apache2/conf/server.key
4 | COPY assets/server.crt /usr/local/apache2/conf/server.crt
5 | COPY assets/CA.pem /etc/pki/tls/certs/cacert.pem
6 |
7 | RUN set -x \
8 | && cd /etc/pki/tls/certs \
9 | && ln -s cacert.pem 808a7e8e.0 \
10 | && sed -i 's,#LoadModule ssl_module modules/mod_ssl.so,LoadModule ssl_module modules/mod_ssl.so,g' /usr/local/apache2/conf/httpd.conf \
11 | && sed -i 's,#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,LoadModule socache_shmcb_module modules/mod_socache_shmcb.so,g' /usr/local/apache2/conf/httpd.conf \
12 | && sed -i 's,#LoadModule xml2enc_module modules/mod_xml2enc.so,LoadModule xml2enc_module modules/mod_xml2enc.so,g' /usr/local/apache2/conf/httpd.conf \
13 | && sed -i 's,#LoadModule rewrite_module modules/mod_rewrite.so,LoadModule rewrite_module modules/mod_rewrite.so,g' /usr/local/apache2/conf/httpd.conf \
14 | && sed -i 's,#LoadModule proxy_html_module modules/mod_proxy_html.so,LoadModule proxy_html_module modules/mod_proxy_html.so,g' /usr/local/apache2/conf/httpd.conf \
15 | && sed -i 's,#LoadModule proxy_module modules/mod_proxy.so,LoadModule proxy_module modules/mod_proxy.so,g' /usr/local/apache2/conf/httpd.conf \
16 | && sed -i 's,#LoadModule proxy_connect_module modules/mod_proxy_connect.so,LoadModule proxy_connect_module modules/mod_proxy_connect.so,g' /usr/local/apache2/conf/httpd.conf \
17 | && sed -i 's,#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so,LoadModule proxy_ajp_module modules/mod_proxy_ajp.so,g' /usr/local/apache2/conf/httpd.conf \
18 | && sed -i 's,#LoadModule proxy_http_module modules/mod_proxy_http.so,LoadModule proxy_http_module modules/mod_proxy_http.so,g' /usr/local/apache2/conf/httpd.conf \
19 | && echo "Include conf/extra/alfresco-vhost.conf" >> /usr/local/apache2/conf/httpd.conf
20 |
21 | EXPOSE 443
--------------------------------------------------------------------------------
/templates/201806-GA/https/assets/CA.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIECjCCAvKgAwIBAgIJAJHpfKBg+tg7MA0GCSqGSIb3DQEBCwUAMIGZMQswCQYD
3 | VQQGEwJFUzEOMAwGA1UECAwFU3BhaW4xDzANBgNVBAcMBk1hZHJpZDERMA8GA1UE
4 | CgwIa2VlbnNvZnQxETAPBgNVBAsMCEFsZnJlc2NvMRwwGgYDVQQDDBNjYS5rZWVu
5 | c29mdC50ZXN0LmVzMSUwIwYJKoZIhvcNAQkBFhZtaWtlbC5hc2xhQGtlZW5zb2Z0
6 | LmVzMB4XDTE3MTIxMTE3MTgxNFoXDTQ1MDUyMjE3MTgxNFowgZkxCzAJBgNVBAYT
7 | AkVTMQ4wDAYDVQQIDAVTcGFpbjEPMA0GA1UEBwwGTWFkcmlkMREwDwYDVQQKDAhr
8 | ZWVuc29mdDERMA8GA1UECwwIQWxmcmVzY28xHDAaBgNVBAMME2NhLmtlZW5zb2Z0
9 | LnRlc3QuZXMxJTAjBgkqhkiG9w0BCQEWFm1pa2VsLmFzbGFAa2VlbnNvZnQuZXMw
10 | ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDOFRzGt44IAqTU3HTxFpfG
11 | w/gULBmj7La+oGZ7OyKgBfCW+83x9/bPcXapuiPLB9cdL5AB5BwUhMfa/5mVatNm
12 | 5H7Rez3uzApM7bZKcQTF1CmfSBc3C0lQerK8yCmbEPJ+WlwaHaEMgdbc2/p6b6Zu
13 | 66LdTznjuuW+pSdl7hhLRor9BItifOy9YR1uEhHsl60Ejb9IMuzFDI7c7EhsYycV
14 | 45TKU1ewIQa5Ixh2YolT5en4RpxfTot4rAXzgf82rHLBqTL5tfwLvYgUTPlQ7oqG
15 | JcTe+zUakLO/eRXWthw5dLaKufP9ggI1QR9mdB8fzgxePv6Xl9Hq7tg2fh7XZ5/B
16 | AgMBAAGjUzBRMB0GA1UdDgQWBBTY8qqo3+slKfaHfu0GjX+2cdokhzAfBgNVHSME
17 | GDAWgBTY8qqo3+slKfaHfu0GjX+2cdokhzAPBgNVHRMBAf8EBTADAQH/MA0GCSqG
18 | SIb3DQEBCwUAA4IBAQB80eX1ritwrwIooGaDZX2bovoSiEr+PhXN0C8x8hPFt6/t
19 | BwB3ijMA7BHFiagbuIX9qhNJzkl8BiaPydIayrvDAGyoxhtcU+QkyZxqPEL7SZOo
20 | MNCicJYwmNvnIaIfqoHto1I7vdz6BNViq3cGsd6JFQn55F/it3kdaAy2NDJtgTt9
21 | dnQ1sLNa1HDTZdAoQxhmqdbZeP1/7lvJGnjGNxbG43n6AaDtJyYMqtHQVFgL83L4
22 | ieU5iK3DZFDDGAN3dSCsz7QDXnBIJDqcFOWkW3NfzTwk1O1zGtJKMMIL9VhKoB0f
23 | ymcOzzdgW05FfOpI+4fSTi+UCP6fxJWwAKVIXVet
24 | -----END CERTIFICATE-----
25 |
--------------------------------------------------------------------------------
/templates/201806-GA/https/assets/alfresco-vhost.conf:
--------------------------------------------------------------------------------
1 | Listen 443
2 |
3 |
4 | ServerName alfresco.keensoft.es
5 |
6 | SSLEngine on
7 | SSLCertificateFile /usr/local/apache2/conf/server.crt
8 | SSLCertificateKeyFile /usr/local/apache2/conf/server.key
9 | SSLCACertificatePath /etc/pki/tls/certs/
10 | SSLOptions +StdEnvVars +ExportCertData
11 |
12 | ProxyPass "/share" "ajp://share:8009/share"
13 | ProxyPassReverse "/share" "ajp://share:8009/share"
14 |
15 | ProxyPass "/solr" "http://solr6:8983/solr"
16 | ProxyPassReverse "/solr" "http://solr6:8983/solr"
17 |
18 | ProxyPass "/api-explorer" "ajp://alfresco:8009/api-explorer"
19 | ProxyPassReverse "/api-explorer" "ajp://alfresco:8009/api-explorer"
20 |
21 | ProxyPass "/alfresco/webdav" "ajp://alfresco:8009/alfresco/webdav"
22 | ProxyPassReverse "/alfresco/webdav" "ajp://alfresco:8009/alfresco/webdav"
23 |
24 | ProxyPass "/" "ajp://alfresco:8009/"
25 | ProxyPassReverse "/" "ajp://alfresco:8009/"
26 |
27 | ProxyPass "/_vti_inf.html" "ajp://alfresco:8009/_vti_inf.html"
28 | ProxyPassReverse "/_vti_inf.html" "ajp://alfresco:8009/_vti_inf.html"
29 |
30 | ProxyPass "/_vti_bin" "ajp://alfresco:8009/_vti_bin"
31 | ProxyPassReverse "/_vti_bin" "ajp://alfresco:8009/_vti_bin"
32 |
33 | ProxyPass "/alfresco" "ajp://alfresco:8009/alfresco"
34 | ProxyPassReverse "/alfresco" "ajp://alfresco:8009/alfresco"
35 |
36 | ProxyPass "/alfresco/aos" "ajp://alfresco:8009/alfresco/aos"
37 | ProxyPassReverse "/alfresco/aos" "ajp://alfresco:8009/alfresco/aos"
38 |
39 | ProxyPass "/alfresco/images" "ajp://alfresco:8009/alfresco/images"
40 | ProxyPassReverse "/alfresco/images" "ajp://alfresco:8009/alfresco/images"
41 |
42 | ProxyPass "/alfresco/css" "ajp://alfresco:8009/alfresco/css"
43 | ProxyPassReverse "/alfresco/css" "ajp://alfresco:8009/alfresco/css"
44 |
45 | ProxyPass "/alfresco/api" "ajp://alfresco:8009/alfresco/api"
46 | ProxyPassReverse "/alfresco/api" "ajp://alfresco:8009/alfresco/api"
47 |
48 | ProxyPass "/alfresco/service" "ajp://alfresco:8009/alfresco/service"
49 | ProxyPassReverse "/alfresco/service" "ajp://alfresco:8009/alfresco/service"
50 |
51 | ProxyPass "/alfresco/cmisatom" "ajp://alfresco:8009/alfresco/cmisatom"
52 | ProxyPassReverse "/alfresco/cmisatom" "ajp://alfresco:8009/alfresco/cmisatom"
53 |
54 |
--------------------------------------------------------------------------------
/templates/201806-GA/https/assets/server.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDyDCCArCgAwIBAgIJAI/gcM3e8yMNMA0GCSqGSIb3DQEBCwUAMIGZMQswCQYD
3 | VQQGEwJFUzEOMAwGA1UECAwFU3BhaW4xDzANBgNVBAcMBk1hZHJpZDERMA8GA1UE
4 | CgwIa2VlbnNvZnQxETAPBgNVBAsMCEFsZnJlc2NvMRwwGgYDVQQDDBNjYS5rZWVu
5 | c29mdC50ZXN0LmVzMSUwIwYJKoZIhvcNAQkBFhZtaWtlbC5hc2xhQGtlZW5zb2Z0
6 | LmVzMB4XDTE3MTIxMTE3MjIwNFoXDTIwMDkwNTE3MjIwNFowWDELMAkGA1UEBhMC
7 | RVMxDTALBgNVBAgMBE5vbmUxETAPBgNVBAcMCGtlZW5zb2Z0MREwDwYDVQQKDAhB
8 | bGZyZXNjbzEUMBIGA1UEAwwLKi5vcGltcy5jb20wggEiMA0GCSqGSIb3DQEBAQUA
9 | A4IBDwAwggEKAoIBAQDmBChPNaCxUAKneL0+EydwWJ4qRDMkzOkrPz0JO6Z2WKL6
10 | UrbqX4AS/wyQSetlcfEIWvZtErYX3+f1FKUHGM0E2ODGrkyS6eo8vGAFAJwagI0+
11 | o+xfTRsidXQn7J1lq08R9IXC/vH72bOsb1RCaCG3iL9foHHQqntJ0Zr4kFls6Cjg
12 | DjDVgzgxhjBxjwNM2czOX+HNpZsBjDRFMlOshIqrrQaj3b1Q1xbEECrTWzOu9gLW
13 | jlyebQoj56Yyo5MEQq9OHwSRDLIhegT48ebXuIgUD7YRjPgJPuTj4eb9jUufQlL8
14 | vdwkfeWIuRxGxtYBIj98sF1wePOlltDB13cWu1NnAgMBAAGjUzBRMB8GA1UdIwQY
15 | MBaAFNjyqqjf6yUp9od+7QaNf7Zx2iSHMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgTw
16 | MBYGA1UdEQQPMA2CCyoub3BpbXMuY29tMA0GCSqGSIb3DQEBCwUAA4IBAQAz+OL1
17 | qSLqSjs+UMAZMXee0sDc+sKyW6FNiwaYiQdhobV2mktAYQfllwWfC5bEuzS2ROK0
18 | 2Os5OSS1Jk+BraZSQkAzX4Chr40yBXv4sOyLPap97vA8Pv8in5kLCHxQK3t1US2H
19 | TgwwLz5xrcYUvmmDmOsdbS7jLP04vOrU9mazxm+kxAiHSQnfMWLg6b//UUwCSNd+
20 | aHqc17dff7pxuhXmOwzNhFt0xFgh1eJy2hL1A2vdM0MHHroijHNCWYzE2D4x3Obm
21 | mrF2DVL6iPYzhaGf7V4CpSj7nBftAim54k5jLO1LhKAxNUb8mbU7ESJXp38A1dVN
22 | WGBoBL6j7ENduLyr
23 | -----END CERTIFICATE-----
24 |
--------------------------------------------------------------------------------
/templates/201806-GA/https/assets/server.key:
--------------------------------------------------------------------------------
1 | -----BEGIN PRIVATE KEY-----
2 | MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDmBChPNaCxUAKn
3 | eL0+EydwWJ4qRDMkzOkrPz0JO6Z2WKL6UrbqX4AS/wyQSetlcfEIWvZtErYX3+f1
4 | FKUHGM0E2ODGrkyS6eo8vGAFAJwagI0+o+xfTRsidXQn7J1lq08R9IXC/vH72bOs
5 | b1RCaCG3iL9foHHQqntJ0Zr4kFls6CjgDjDVgzgxhjBxjwNM2czOX+HNpZsBjDRF
6 | MlOshIqrrQaj3b1Q1xbEECrTWzOu9gLWjlyebQoj56Yyo5MEQq9OHwSRDLIhegT4
7 | 8ebXuIgUD7YRjPgJPuTj4eb9jUufQlL8vdwkfeWIuRxGxtYBIj98sF1wePOlltDB
8 | 13cWu1NnAgMBAAECggEBAJLBWE6hcrNuzyK3AFcYtXMSt2dUOCVkr+gt4u1/J4ge
9 | qW15VMdYw0hbflKZNx10g0rHbq7M322AKGjQETLj+fr7vP5GuwiJQjAaKFFIwFCQ
10 | cI3k3K05bvSfZ8sJRqtVj49vKeDt9Mqxbde4+FOeSNTm5ONIZRWzkBHbMDsjLksy
11 | 5yDQUeN5yb59nROn3g9r1mK9YWDRRlBTE43uerEGqhJr5i3Ok2uwKBBzGC3XuppI
12 | bwbxnrp/+a9G3rPl0K5yBoYJUFqv7TQ2dDEtJLsnuy2W8XWH/m+h30jK7CNGvOAV
13 | dMRUKKVNO/yluBgpzsV1oF3f3dpF1So8VAThTbzrnfECgYEA9poOyGZDv9uD6ybI
14 | Qoza18+gnJuBoUbR8mm+cUJZRI0IlwSGA9fjci2VSGyvaNPUTmNpAOn3lYPzlzM1
15 | DPrOpOYRUfGMBaSL6KttRL9ne/ih5zeDr1IKlC7hbHU/YEj/FF0zfcTJl1xSDzR3
16 | ijkN/SFAPwuQ7E7+G/87qSpuyIUCgYEA7shI4lTywwPD39MgquKjBmQr5G/f06m/
17 | dkVIjxFsYm9fMEUn46Ed8Ak0roCU19XV6hXcoG8G6+exEWSeaLi1F0Ayr8Ug/o0Y
18 | YHWGjmESYHowoIbvUC/sSUuAEBBDof+XtzK3VmTDGfAyd7+C/MiBWSwP0Nj88jD1
19 | mud7R1cTpfsCgYA6KkhGWGiufjZ1ZqZhnBuaP6zgg4Vl5vBqPyreSAoKM0HNbRG3
20 | IlrReZL2jDwre5teCfCgeI8fQwpXpYpjz1yiZGm9bD3crt0ZOiYByyu7f/+gK+Xx
21 | mmZIYW5mSJl0OoN/6CPXDG2IOAxa7cMsZRy5kfg3ZqD+O/uP2vnVgt6yiQKBgDcT
22 | IxxxE30/hRI/FC3WEFwNBsKtuyaK5IpW+KFnF2Ss43uyt7ydENaoiOom5i3SOIDB
23 | gh3O/f2zdvfYCWGGGN7AA/Deuvl7eb/l259DbIWsKUMdXF1WcF2HeIY7+h2HYmry
24 | 266llwqIiFtuZLwBUzRKIWu+YLlL6ZpNAfY2c2W5AoGBAK+iC53arcA3U90wYwDd
25 | 8PTyRLoS69dxUDQYCTRvLAtIxLtqkRwQDxr2WGXnw80lKxFqTuuwR7QG5XmTxV4K
26 | BkzPlqC3uMy2WNx1JxFr8+fQvu1YeeG/dOknnqGDEcbMi/ke+9gxn6/IxV/fQzI0
27 | K3nkd8gJbSYXI4h53IaFDMy/
28 | -----END PRIVATE KEY-----
29 |
--------------------------------------------------------------------------------
/templates/201806-GA/share/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM alfresco/alfresco-share:6.0.b
2 |
3 | ARG TOMCAT_DIR=/usr/local/tomcat
4 |
5 | RUN mkdir -p $TOMCAT_DIR/amps_share
6 |
7 | COPY modules/amps_share $TOMCAT_DIR/amps_share
8 | COPY modules/jars $TOMCAT_DIR/webapps/share/WEB-INF/lib
9 |
10 | RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
11 | $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force
--------------------------------------------------------------------------------
/templates/201806-GA/share/modules/amps_share/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/share/modules/amps_share/empty
--------------------------------------------------------------------------------
/templates/201806-GA/share/modules/amps_share/javascript-console-share-0.6.0.amp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/share/modules/amps_share/javascript-console-share-0.6.0.amp
--------------------------------------------------------------------------------
/templates/201806-GA/share/modules/amps_share/support-tools-share-1.1.0.0-SNAPSHOT.amp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/share/modules/amps_share/support-tools-share-1.1.0.0-SNAPSHOT.amp
--------------------------------------------------------------------------------
/templates/201806-GA/share/modules/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/share/modules/empty
--------------------------------------------------------------------------------
/templates/201806-GA/share/modules/jars/empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/201806-GA/share/modules/jars/empty
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:4.2.c
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y ImageMagick ghostscript \
10 | && yum clean all
11 |
12 | ENV ALF_HOME /usr/local/alfresco
13 | ENV CATALINA_HOME /usr/local/alfresco/tomcat
14 | WORKDIR $ALF_HOME
15 |
16 | # basic configuration
17 | RUN set -x \
18 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
19 | && mkdir -p tomcat/conf/Catalina/localhost \
20 | && mv $DIST/web-server/shared tomcat/ \
21 | && mv $DIST/web-server/lib/*.jar tomcat/lib/ \
22 | && mv $DIST/web-server/webapps/alfresco.war tomcat/webapps/ \
23 | && mv $DIST/web-server/webapps/share.war tomcat/webapps/ \
24 | && mv $DIST/bin . \
25 | && mv $DIST/licenses . \
26 | && mv $DIST/README.txt . \
27 | && rm -rf $CATALINA_HOME/webapps/docs \
28 | && rm -rf $CATALINA_HOME/webapps/examples \
29 | && mkdir $CATALINA_HOME/shared/lib $ALF_HOME/amps_share \
30 | && rm -rf $DIST
31 |
32 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
33 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
34 | COPY assets/tomcat/server.xml tomcat/conf/server.xml
35 | COPY assets/tomcat/tomcat-users.xml tomcat/conf/tomcat-users.xml
36 | COPY assets/alfresco/alfresco-global.properties tomcat/shared/classes/alfresco-global.properties
37 |
38 | # Solr installation
39 | RUN set -x \
40 | && mv $SOLR/alf_data . \
41 | && mkdir alf_data/solr \
42 | && mv $SOLR/docs alf_data/solr \
43 | && mv $SOLR/workspace-SpacesStore alf_data/solr \
44 | && mv $SOLR/archive-SpacesStore alf_data/solr \
45 | && mv $SOLR/templates alf_data/solr \
46 | && mv $SOLR/lib alf_data/solr \
47 | && mv $SOLR/solr.xml alf_data/solr \
48 | && mv $SOLR/*.war* alf_data/solr \
49 | && rm -rf $SOLR
50 |
51 | COPY assets/solr/solr-tomcat-context.xml tomcat/conf/Catalina/localhost/solr.xml
52 | COPY assets/solr/workspace-solrcore.properties alf_data/solr/workspace-SpacesStore/conf/solrcore.properties
53 | COPY assets/solr/archive-solrcore.properties alf_data/solr/archive-SpacesStore/conf/solrcore.properties
54 |
55 | # AMPS installation
56 | COPY assets/amps amps
57 | COPY assets/amps_share amps_share
58 | RUN bash ./bin/apply_amps.sh -force -nobackup
59 |
60 | # JARS installation
61 | #COPY assets/jars/*.jar $CATALINA_HOME/shared/lib/
62 |
63 | ENV PATH $ALF_HOME/bin:$PATH
64 | ENV LANG es_ES.utf8
65 |
66 | RUN useradd -ms /bin/bash alfresco
67 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
68 | USER alfresco
69 |
70 | VOLUME $ALF_HOME/alf_data
71 | EXPOSE 8080 8009
72 | CMD ["catalina.sh", "run"]
73 |
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/assets/alfresco/alfresco-global.properties:
--------------------------------------------------------------------------------
1 |
2 | ###############################
3 | ## Common Alfresco Properties #
4 | ###############################
5 |
6 | dir.root=/usr/local/alfresco/alf_data
7 |
8 | alfresco.context=alfresco
9 | alfresco.host=127.0.0.1
10 | alfresco.port=8080
11 | alfresco.protocol=http
12 |
13 | share.context=share
14 | share.host=127.0.0.1
15 | share.port=8080
16 | share.protocol=http
17 |
18 | ### database connection properties ###
19 | db.driver=org.postgresql.Driver
20 | db.username=alfresco
21 | db.password=alfresco
22 | db.name=alfresco
23 | db.url=jdbc:postgresql://localhost:5432/${db.name}
24 |
25 | ### FTP Server Configuration ###
26 | ftp.enabled=false
27 | ftp.port=2121
28 |
29 | cifs.enabled=false
30 |
31 | ### RMI service ports ###
32 | alfresco.rmi.services.port=50500
33 | avm.rmi.service.port=0
34 | avmsync.rmi.service.port=0
35 | attribute.rmi.service.port=0
36 | authentication.rmi.service.port=0
37 | repo.rmi.service.port=0
38 | action.rmi.service.port=0
39 | deployment.rmi.service.port=0
40 |
41 | ### External executable locations ###
42 | ooo.exe=/opt/libreoffice/program/soffice.bin
43 | ooo.host=libreoffice
44 | ooo.enabled=true
45 | ooo.port=8997
46 |
47 | img.root=/usr/lib64/ImageMagick-6.7.8
48 | img.dyn=/usr/bin
49 | img.gslib=/usr/bin
50 | img.exe=${img.dyn}/convert
51 | img.config=${img.root}/config
52 | img.coders=${img.root}/modules-Q16/coders
53 | swf.exe=/usr/local/bin/pdf2swf
54 |
55 | jodconverter.enabled=false
56 | jodconverter.officeHome=/opt/libreoffice
57 | jodconverter.portNumbers=8100
58 |
59 | ### E-mail site invitation setting ###
60 | notification.email.siteinvite=false
61 |
62 | ### Solr indexing ###
63 | index.subsystem.name=solr
64 | dir.keystore=${dir.root}/keystore
65 | solr.port.ssl=8443
66 |
67 | ### BPM Engine ###
68 | system.workflow.engine.jbpm.enabled=false
69 |
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/assets/amps/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/assets/amps_share/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !/.gitignore
3 |
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/assets/solr/archive-solrcore.properties:
--------------------------------------------------------------------------------
1 | #
2 | # solrcore.properties - used in solrconfig.xml
3 | #
4 | # data is in ${data.dir.root}/${data.dir.store}
5 |
6 | data.dir.root=/usr/local/alfresco/alf_data/solr
7 | data.dir.store=archive/SpacesStore
8 | enable.alfresco.tracking=true
9 | cache.alfresco.size=100
10 | max.field.length=2147483647
11 |
12 |
13 | #
14 | # Properties loaded during alfresco tracking
15 | #
16 |
17 | alfresco.host=localhost
18 | alfresco.port=8080
19 | alfresco.port.ssl=8443
20 | alfresco.baseUrl=/alfresco
21 | alfresco.cron=0/15 * * * * ? *
22 | alfresco.stores=archive://SpacesStore
23 | alfresco.lag=1000
24 | alfresco.hole.retention=3600000
25 | alfresco.batch.count=1000
26 |
27 | # encryption
28 |
29 | # none, https
30 | alfresco.secureComms=https
31 |
32 | # ssl
33 | alfresco.encryption.ssl.keystore.type=JCEKS
34 | alfresco.encryption.ssl.keystore.provider=
35 | alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore
36 | alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties
37 | alfresco.encryption.ssl.truststore.type=JCEKS
38 | alfresco.encryption.ssl.truststore.provider=
39 | alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore
40 | alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties
41 |
42 | ## Tracking
43 |
44 | alfresco.enableMultiThreadedTracking=true
45 | alfresco.corePoolSize=3
46 | alfresco.maximumPoolSize=-1
47 | alfresco.keepAliveTime=120
48 | alfresco.threadPriority=5
49 | alfresco.threadDaemon=true
50 | alfresco.workQueueSize=-1
51 |
52 | # HTTP Client
53 |
54 | alfresco.maxTotalConnections=40
55 | alfresco.maxHostConnections=40
56 | alfresco.socketTimeout=0
57 |
58 | # SOLR caching
59 |
60 | solr.filterCache.size=512
61 | solr.filterCache.initialSize=512
62 | solr.queryResultCache.size=512
63 | solr.queryResultCache.initialSize=512
64 | solr.documentCache.size=512
65 | solr.documentCache.initialSize=512
66 | solr.queryResultMaxDocsCached=200
67 |
68 | solr.authorityCache.size=512
69 | solr.authorityCache.initialSize=512
70 | solr.pathCache.size=512
71 | solr.pathCache.initialSize=512
72 |
73 | # SOLR
74 |
75 | solr.maxBooleanClauses=10000
76 |
77 | #
78 | # TODO
79 | #
80 | # cross language support
81 | # locale expansion
82 | # logging check report ....
83 | #
84 | #
85 |
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/assets/solr/solr-tomcat-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/assets/solr/workspace-solrcore.properties:
--------------------------------------------------------------------------------
1 | #
2 | # solrcore.properties - used in solrconfig.xml
3 | #
4 | # data is in ${data.dir.root}/${data.dir.store}
5 |
6 | data.dir.root=/usr/local/alfresco/alf_data/solr
7 | data.dir.store=workspace/SpacesStore
8 | enable.alfresco.tracking=true
9 | cache.alfresco.size=100
10 | max.field.length=2147483647
11 |
12 |
13 | #
14 | # Properties loaded during alfresco tracking
15 | #
16 |
17 | alfresco.host=localhost
18 | alfresco.port=8080
19 | alfresco.port.ssl=8443
20 | alfresco.baseUrl=/alfresco
21 | alfresco.cron=0/15 * * * * ? *
22 | alfresco.stores=workspace://SpacesStore
23 | #alfresco.index.transformContent=false
24 | #alfresco.ignore.datatype.1=d:content
25 | alfresco.lag=1000
26 | alfresco.hole.retention=3600000
27 | # alfresco.hole.check.after is not used yet
28 | # It will reduce the hole checking load
29 | alfresco.hole.check.after=300000
30 | alfresco.batch.count=1000
31 |
32 | # encryption
33 |
34 | # none, https
35 | alfresco.secureComms=https
36 |
37 | # ssl
38 | alfresco.encryption.ssl.keystore.type=JCEKS
39 | alfresco.encryption.ssl.keystore.provider=
40 | alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore
41 | alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties
42 | alfresco.encryption.ssl.truststore.type=JCEKS
43 | alfresco.encryption.ssl.truststore.provider=
44 | alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore
45 | alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties
46 |
47 | # Tracking
48 |
49 | alfresco.enableMultiThreadedTracking=true
50 | alfresco.corePoolSize=3
51 | alfresco.maximumPoolSize=-1
52 | alfresco.keepAliveTime=120
53 | alfresco.threadPriority=5
54 | alfresco.threadDaemon=true
55 | alfresco.workQueueSize=-1
56 |
57 | # HTTP Client
58 |
59 | alfresco.maxTotalConnections=40
60 | alfresco.maxHostConnections=40
61 | alfresco.socketTimeout=0
62 |
63 | # SOLR caching
64 |
65 | solr.filterCache.size=512
66 | solr.filterCache.initialSize=512
67 | solr.queryResultCache.size=1024
68 | solr.queryResultCache.initialSize=1024
69 | solr.documentCache.size=512
70 | solr.documentCache.initialSize=512
71 | solr.queryResultMaxDocsCached=2000
72 |
73 | solr.authorityCache.size=512
74 | solr.authorityCache.initialSize=512
75 | solr.pathCache.size=512
76 | solr.pathCache.initialSize=512
77 |
78 | # SOLR
79 |
80 | solr.maxBooleanClauses=10000
81 |
82 | # Batch fetch
83 |
84 | alfresco.transactionDocsBatchSize=100
85 | alfresco.changeSetAclsBatchSize=100
86 | alfresco.aclBatchSize=10
87 |
88 | # Warming
89 |
90 | solr.filterCache.autowarmCount=128
91 | solr.authorityCache.autowarmCount=0
92 | solr.pathCache.autowarmCount=128
93 |
94 | solr.queryResultWindowSize=200
95 |
96 |
97 | #
98 | # TODO
99 | #
100 | # cross language support
101 | # locale expansion
102 | # logging check report ....
103 | #
104 | #
105 |
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 |
10 | # service:jmx:rmi:///jndi/rmi://192.168.1.33:9999/jmxrmi
11 | #JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.rmi.port=9999"
12 | #JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1"
13 |
14 | export JAVA_OPTS
15 |
16 |
--------------------------------------------------------------------------------
/templates/4.2.c/alfresco/assets/tomcat/tomcat-users.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/templates/4.2.c/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | alfresco:
4 | build: ./alfresco
5 | links:
6 | - libreoffice
7 | ports:
8 | - 8080:8080
9 |
10 | db:
11 | build: ./postgres
12 | network_mode: service:alfresco
13 | environment:
14 | - POSTGRES_DB=alfresco
15 | - POSTGRES_USER=alfresco
16 | - POSTGRES_PASSWORD=alfresco
17 |
18 | libreoffice:
19 | image: xcgd/libreoffice
20 |
--------------------------------------------------------------------------------
/templates/4.2.c/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i es_ES -c -f UTF-8 -A /usr/share/locale/locale.alias es_ES.UTF-8
3 | ENV LANG es_ES.utf8
4 |
--------------------------------------------------------------------------------
/templates/5.0.d/alfresco/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:5.0.d
2 | MAINTAINER keensoft.es
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y ImageMagick ghostscript \
10 | && yum clean all
11 |
12 | ENV ALF_HOME /usr/local/alfresco
13 | ENV CATALINA_HOME /usr/local/alfresco/tomcat
14 | WORKDIR $ALF_HOME
15 |
16 | # basic configuration
17 | RUN set -x \
18 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
19 | && mv $DIST/web-server/shared tomcat/ \
20 | && mv $DIST/web-server/lib/*.jar tomcat/lib/ \
21 | && mv $DIST/web-server/webapps/alfresco.war tomcat/webapps/ \
22 | && mv $DIST/web-server/webapps/share.war tomcat/webapps/ \
23 | && mv $DIST/alf_data . \
24 | && mv $DIST/amps . \
25 | && mv $DIST/bin . \
26 | && mv $DIST/licenses . \
27 | && mv $DIST/README.txt . \
28 | && rm -rf $CATALINA_HOME/webapps/docs \
29 | && rm -rf $CATALINA_HOME/webapps/examples \
30 | && mkdir $CATALINA_HOME/shared/lib $ALF_HOME/amps_share \
31 | && rm -rf $DIST
32 |
33 | COPY assets/tomcat/catalina.properties tomcat/conf/catalina.properties
34 | COPY assets/tomcat/setenv.sh tomcat/bin/setenv.sh
35 | COPY assets/alfresco/alfresco-global.properties tomcat/shared/classes/alfresco-global.properties
36 |
37 | # AMPS installation
38 | COPY assets/amps amps
39 | COPY assets/amps_share amps_share
40 | RUN bash ./bin/apply_amps.sh -force -nobackup
41 |
42 | # override web.xml
43 | RUN set -x \
44 | && mkdir tomcat/webapps/alfresco \
45 | && unzip tomcat/webapps/alfresco.war -d tomcat/webapps/alfresco
46 | COPY assets/alfresco/web.xml tomcat/webapps/alfresco/WEB-INF/web.xml
47 |
48 | ENV PATH $ALF_HOME/bin:$PATH
49 | ENV LANG es_ES.utf8
50 |
51 | RUN useradd -ms /bin/bash alfresco
52 | RUN set -x && chown -RL alfresco:alfresco $ALF_HOME
53 | USER alfresco
54 |
55 | ENV JPDA_ADDRESS="9999"
56 | ENV JPDA_TRANSPORT="dt_socket"
57 |
58 | EXPOSE 8080 8009 9999
59 | VOLUME $ALF_HOME/alf_data
60 | CMD ["catalina.sh", "jpda", "run"]
61 |
--------------------------------------------------------------------------------
/templates/5.0.d/alfresco/assets/alfresco/alfresco-global.properties:
--------------------------------------------------------------------------------
1 | ###############################
2 | ## Common Alfresco Properties #
3 | ###############################
4 |
5 | dir.root=/usr/local/alfresco/alf_data
6 |
7 | alfresco.context=alfresco
8 | alfresco.host=localhost
9 | alfresco.port=8080
10 | alfresco.protocol=http
11 |
12 | share.context=share
13 | share.host=localhost
14 | share.port=8080
15 | share.protocol=http
16 |
17 | ### database connection properties ###
18 | db.driver=org.postgresql.Driver
19 | db.username=alfresco
20 | db.password=alfresco
21 | db.name=alfresco
22 | db.url=jdbc:postgresql://localhost:5432/alfresco
23 | # Note: your database must also be able to accept at least this many connections. Please see your database documentation for instructions on how to configure this.
24 | db.pool.max=10
25 | db.pool.validate.query=SELECT 1
26 |
27 | # The server mode. Set value here
28 | # UNKNOWN | TEST | BACKUP | PRODUCTION
29 | system.serverMode=TEST
30 |
31 | ### FTP Server Configuration ###
32 | ftp.enabled=false
33 |
34 | cifs.enabled=false
35 |
36 | ### RMI registry port for JMX ###
37 | alfresco.rmi.services.port=50500
38 |
39 | ### External executable locations ###
40 | ooo.exe=/opt/libreoffice5/program/soffice.bin
41 | ooo.host=libreoffice
42 | ooo.enabled=8997
43 | ooo.port=8100
44 | img.root=/usr/lib64/ImageMagick-6.7.8
45 | img.dyn=/usr/bin
46 | img.gslib=/usr/bin
47 | img.exe=${img.dyn}/convert
48 | img.config=${img.root}/config
49 | img.coders=${img.root}/modules-Q16/coders
50 | swf.exe=/usr/local/bin/pdf2swf
51 |
52 | jodconverter.enabled=false
53 | jodconverter.officeHome=
54 | jodconverter.portNumbers=8100
55 |
56 | ### E-mail site invitation setting ###
57 | notification.email.siteinvite=false
58 |
59 | ### License location ###
60 | dir.license.external=/opt/alfresco
61 |
62 | ### Solr indexing ###
63 | index.subsystem.name=solr4
64 | dir.keystore=${dir.root}/keystore
65 | solr.host=solr4
66 | solr.port=8080
67 | solr.secureComms=none
68 |
69 | ### Allow extended ResultSet processing
70 | security.anyDenyDenies=false
71 |
--------------------------------------------------------------------------------
/templates/5.0.d/alfresco/assets/amps/javascript-console-repo-0.6.0.amp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/5.0.d/alfresco/assets/amps/javascript-console-repo-0.6.0.amp
--------------------------------------------------------------------------------
/templates/5.0.d/alfresco/assets/amps_share/javascript-console-share-0.6.0.amp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keensoft/alfresco-docker-template/e8d41e97cfde192f3a0e67e46883976af3adbc7b/templates/5.0.d/alfresco/assets/amps_share/javascript-console-share-0.6.0.amp
--------------------------------------------------------------------------------
/templates/5.0.d/alfresco/assets/tomcat/setenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
4 | JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco"
5 | JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
6 | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
7 | JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m"
8 | JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M" # java-memory-settings
9 |
10 | # service:jmx:rmi:///jndi/rmi://192.168.1.33:9999/jmxrmi
11 | #JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.rmi.port=9999"
12 | #JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1"
13 |
14 | export JAVA_OPTS
15 |
16 |
--------------------------------------------------------------------------------
/templates/5.0.d/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 | alfresco:
4 | build: ./alfresco
5 | links:
6 | - solr4
7 | - libreoffice
8 | ports:
9 | - 8080:8080
10 | - 9999:9999
11 |
12 | db:
13 | build: ./postgres
14 | network_mode: service:alfresco
15 | environment:
16 | - POSTGRES_DB=alfresco
17 | - POSTGRES_USER=alfresco
18 | - POSTGRES_PASSWORD=alfresco
19 |
20 | solr4:
21 | build: ./solr4
22 | ports:
23 | - 8081:8081
24 |
25 | libreoffice:
26 | image: xcgd/libreoffice
27 |
--------------------------------------------------------------------------------
/templates/5.0.d/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM postgres:9.4
2 | RUN localedef -i es_ES -c -f UTF-8 -A /usr/share/locale/locale.alias es_ES.UTF-8
3 | ENV LANG es_ES.utf8
4 |
--------------------------------------------------------------------------------
/templates/5.0.d/solr4/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM keensoft/alfresco-docker-template:5.0.d
2 | MAINTAINER keensoft
3 |
4 | RUN set -x \
5 | && yum update -y \
6 | && yum clean all
7 |
8 | RUN set -x \
9 | && yum install -y sed \
10 | && yum clean all
11 |
12 | ENV ALF_HOME /usr/local/alfresco
13 | ENV SOLR4_HOME $ALF_HOME/solr4
14 |
15 | # basic Solr4 configuration
16 | RUN set -x \
17 | && ln -s /usr/local/tomcat /usr/local/alfresco/tomcat \
18 | && mkdir -p tomcat/conf/Catalina/localhost \
19 | && mv $DIST/web-server/webapps/solr4.war tomcat/webapps/ \
20 | && mv $DIST/alf_data . \
21 | && mv $DIST/solr4/context.xml tomcat/conf/Catalina/localhost/solr4.xml \
22 | && mv $DIST/solr4 . \
23 | && mv $DIST/licenses . \
24 | && mv $DIST/README.txt .
25 |
26 | RUN set -x \
27 | && sed -i 's,@@ALFRESCO_SOLR4_DIR@@,'"$ALF_HOME"'/solr4,g' tomcat/conf/Catalina/localhost/solr4.xml \
28 | && sed -i 's,@@ALFRESCO_SOLR4_MODEL_DIR@@,'"$ALF_HOME"'/alf_data/solr4/model,g' tomcat/conf/Catalina/localhost/solr4.xml \
29 | && sed -i 's,@@ALFRESCO_SOLR4_CONTENT_DIR@@,'"$ALF_HOME"'/alf_data/solr4/content,g' tomcat/conf/Catalina/localhost/solr4.xml \
30 |
31 | && sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"$ALF_HOME"'/alf_data/solr4/index,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
32 | && sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"$ALF_HOME"'/alf_data/solr4/index,g' solr4/archive-SpacesStore/conf/solrcore.properties \
33 |
34 | && sed -i 's,alfresco.host=localhost,alfresco.host=alfresco,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
35 | && sed -i 's,alfresco.host=localhost,alfresco.host=alfresco,g' solr4/archive-SpacesStore/conf/solrcore.properties \
36 | && sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/workspace-SpacesStore/conf/solrcore.properties \
37 | && sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/archive-SpacesStore/conf/solrcore.properties
38 |
39 | # override web.xml
40 | RUN set -x \
41 | && mkdir tomcat/webapps/solr4 \
42 | && unzip tomcat/webapps/solr4.war -d tomcat/webapps/solr4
43 | COPY assets/solr4/web.xml tomcat/webapps/solr4/WEB-INF/web.xml
44 |
45 | WORKDIR $SOLR4_HOME
46 | ENV PATH $ALF_HOME/bin:$PATH
47 | ENV LANG es_ES.utf8
48 |
49 | RUN useradd -ms /bin/bash solr
50 | RUN set -x && chown -RL solr:solr $ALF_HOME
51 | USER solr
52 |
53 | EXPOSE 8080
54 | CMD ["catalina.sh", "run"]
55 |
--------------------------------------------------------------------------------
/templates/README.md:
--------------------------------------------------------------------------------
1 | # Alfresco Docker template in action
2 |
3 | ## Select version
4 |
5 | * 4.2.c
6 | * 5.0.d
7 | * 201602-GA
8 | * 201604-GA
9 | * 201605-GA
10 | * 201612-GA
11 | * 201701-GA
12 | * 201702-GA
13 | * 201704-GA
14 | * 201707-GA
15 | * 201804-EA
16 | * 201806-GA
17 | >>>>>>> origin/master
18 |
19 | ## Run
20 |
21 | ~~~~~
22 | $ docker-compose up --build
23 | ~~~~~
24 |
25 | ## Access
26 |
27 | ~~~~~
28 | http://localhost/share (admin/admin)
29 | ~~~~~
30 |
31 |
32 |
--------------------------------------------------------------------------------