-
Notifications
You must be signed in to change notification settings - Fork 8
/
manifest.jps
131 lines (110 loc) · 4.94 KB
/
manifest.jps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
jpsVersion: '0.8'
type: install
id: alfresco
name: Alfresco
appVersion: '23.2.1'
version: 1.5
logo: https://raw.githubusercontent.com/jelastic-jps/alfresco/master/images/view.png
homepage: http://www.alfresco.com/
description: <p>Your Enterprise Content. Always in sync. The only enterprise content management solution that you can use in the cloud, on-premise and both.</p>
categories:
- apps/cms
- apps/content-management
globals:
DB_PASS: "${fn.password(10)}"
engine: openjdk17
nodes:
- cloudlets: 24
nodeType: tomcat10
- cloudlets: 8
nodeType: mysql8
onInstall:
- prepareSqlDatabase:
- nodeGroup: sqldb
loginCredentials:
user: root
password: "${nodes.sqldb.password}"
newDatabaseName: alfresco
newDatabaseUser:
name: alfresco
password: "${globals.DB_PASS}"
- cmd [cp]: |-
ALF_TMP="/tmp/alfresco/";
WEBAPPS="/opt/tomcat/webapps/";
curl -fsSL "https://download.jelastic.com/public.php?service=files&t=87a9baacdf9f75bc8b2c9b8e15e7aefa&download" -o /tmp/alfresco.zip
unzip /tmp/alfresco.zip -d $ALF_TMP
rm -rf /opt/tomcat/webapps/*
- upload [cp]:
- sourcePath: https://download.jelastic.com/public.php?service=files&t=acf2447aa8a8f0eba5e2a07219ee5fa4&download
destPath: "/opt/tomcat/lib/mysql-connector-java-8.0.30.jar"
- cmd [cp]: |-
ALF_TMP="/tmp/alfresco/";
WEBAPPS="/opt/tomcat/webapps/";
TOMCAT="/opt/tomcat/";
CONF="$TOMCAT/conf";
LOGO_PATH="/opt/tomcat/webapps/alfresco/images/logo"
cp -r $ALF_TMP/web-server/lib/* $TOMCAT/lib/
cp -r $ALF_TMP/web-server/conf/Catalina/localhost/* $CONF/Catalina/localhost/
sed -i "s|/../modules/|/modules/|g" $CONF/Catalina/localhost/*.xml
mkdir $TOMCAT/modules/ && mkdir $TOMCAT/modules/platform && mkdir $TOMCAT/modules/share
mkdir $TOMCAT/alf_data
mkdir $TOMCAT/shared/ && mkdir $TOMCAT/shared/classes && mkdir $TOMCAT/shared/lib/
echo "-Dencryption.keystore.type=JCEKS
-Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding
-Dencryption.keyAlgorithm=DESede
-Dencryption.keystore.location=$TOMCAT/alf_data/keystore/metadata-keystore/keystore
-Dmetadata-keystore.password=mp6yc0UD9e
-Dmetadata-keystore.aliases=metadata
-Dmetadata-keystore.metadata.password=oKIWzVdEdA
-Dmetadata-keystore.metadata.algorithm=DESede" >> $CONF/variables.conf
sed -i "s|shared.loader=|shared.loader=$\{catalina.base\}/shared/classes,$\{catalina.base\}/shared/lib/*.jar|g" $CONF/catalina.properties
cp $ALF_TMP/web-server/shared/classes/alfresco-global.properties.sample $TOMCAT/shared/classes/alfresco-global.properties
cp -r $ALF_TMP/web-server/shared/classes/alfresco $TOMCAT/shared/classes/
echo "
dir.root=$TOMCAT/alf_data
dir.keystore=\${dir.root}/keystore/metadata-keystore
dir.license.external=$TOMCAT/licenses
alfresco.secureComms=secret
alfresco.secureComms.secret=password
db.username=alfresco
db.password=${globals.DB_PASS}
db.pool.max=275
db.host=${nodes.sqldb.address}
db.port=3306
db.name=alfresco
db.driver=com.mysql.cj.jdbc.Driver
db.url=jdbc:mysql://\${db.host}:\${db.port}/\${db.name}?useUnicode=yes&characterEncoding=UTF-8" >> $TOMCAT/shared/classes/alfresco-global.properties
cp -r $ALF_TMP/keystore $TOMCAT/alf_data
cp -r $ALF_TMP/licenses $TOMCAT
cp $LOGO_PATH/AlfrescoLogo200.png $LOGO_PATH/AlfrescoLogo.png
echo "log4j.appender.File.File=/opt/tomcat/logs/alfresco.log" > $TOMCAT/shared/classes/alfresco/extension/custom-log4j.properties
echo "/opt/tomcat/webapps
/opt/tomcat/alf_data
/opt/tomcat/modules
/opt/tomcat/shared
/opt/tomcat/conf/catalina.properties
/opt/tomcat/lib/mysql-connector-java-8.0.30.jar" >> /etc/jelastic/redeploy.conf
- deploy:
archive: https://download.jelastic.com/public.php?service=files&t=111f5a5ff41624b1c268f9952ed2595c&download
name: vti_bin.zip
context: vti_bin
- deploy:
archive: https://download.jelastic.com/public.php?service=files&t=838862ffa984671ac336a9a309a00168&download
name: alfresco.zip
context: alfresco
- deploy:
archive: https://download.jelastic.com/public.php?service=files&t=be1abe67e9c0570a840892b2e2da3e60&download
name: ROOT.zip
context: ROOT
- deploy:
archive: https://download.jelastic.com/public.php?service=files&t=a842f2fc216c8bca096f6033196653f5&download
name: share.zip
context: share
- restartNodes [cp]
startPage: share/
success: |-
Below you will find your admin panel link, username and password.
Admin panel URL: [${env.protocol}://${env.domain}/alfresco/](${env.protocol}://${env.domain}/alfresco/)
Admin name: admin
Password: admin
To bind a custom domain name with your Alfresco please refer to the steps described in Jelastic [documentation](http://docs.jelastic.com/custom-domains)