Skip to content

Commit

Permalink
Merge branch 'release/5.2-201612GA'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Langoureaux committed Dec 21, 2016
2 parents 4227d55 + b162985 commit 0214574
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# webcenter/rancher-alfresco

FROM quay.io/webcenter/rancher-base-image:latest
FROM ubuntu:16.04
MAINTAINER Sebastien LANGOUREAUX (linuxworkgroup@hotmail.com)

#Alfresco version
ENV ALF_URL=http://dl.alfresco.com/release/community/201605-build-00010/alfresco-community-installer-201605-linux-x64.bin
ENV ALF_URL=http://dl.alfresco.com/release/community/201612-build-00014/alfresco-community-installer-201612-linux-x64.bin
ENV ALF_HOME=/opt/alfresco


Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ docker pull webcenter/rancher-alfresco:latest

or pull a particular version:
```bash
docker pull webcenter/rancher-alfresco:5.1-201605-1
docker pull webcenter/rancher-alfresco:5.2-201612GA
```

Alternatively, you can build the image yourself:
Expand Down Expand Up @@ -125,7 +125,7 @@ docker run -d --name "alfresco" \
--link postgres:db \
-p 7070:7070 -p 8080:8080 \
-v /host/alfresco_data=/opt/alfresco/alf_data \
webcenter/rancher-alfresco:5.1-201605-1
webcenter/rancher-alfresco:5.2-201612GA
```

## Reverse Proxy
Expand All @@ -137,7 +137,7 @@ docker run -d --name "alfresco" \
--link postgres:db \
-p 7070:7070 -p 8080:8080 \
-v /host/alfresco_data=/opt/alfresco/alf_data \
webcenter/rancher-alfresco:5.1-201605-1
webcenter/rancher-alfresco:5.2-201612GA
```

## Mail setting
Expand All @@ -153,7 +153,7 @@ docker run -d --name "alfresco" \
-p 7070:7070 -p 8080:8080 \
--link postgres:db \
-v /host/alfresco_data=/opt/alfresco/alf_data \
webcenter/rancher-alfresco:5.1-201605-1
webcenter/rancher-alfresco:5.2-201612GA
```

## FTP setting
Expand All @@ -166,7 +166,7 @@ docker run -d --name "alfresco" \
-p 21:21 -p 7070:7070 -p 8080:8080 \
--link postgres:db \
-v /host/alfresco_data=/opt/alfresco/alf_data \
webcenter/rancher-alfresco:5.1-201605-1
webcenter/rancher-alfresco:5.2-201612GA
```
## CIFS
To access on alfresco as a Windows share, you must setting CIFS :
Expand All @@ -179,7 +179,7 @@ docker run -d --name "alfresco" \
--link postgres:db \
-p 445:445 -p 7070:7070 -p 8080:8080 \
-v /host/alfresco_data=/opt/alfresco/alf_data \
webcenter/rancher-alfresco:5.1-201605-1
webcenter/rancher-alfresco:5.2-201612GA
```

## LDAP authentification
Expand All @@ -198,7 +198,7 @@ docker run -d --name "alfresco" \
-p 445:445 -p 7070:7070 -p 8080:8080 \
--link postgres:db \
-v /host/alfresco_data=/opt/alfresco/alf_data \
webcenter/rancher-alfresco:5.1-201605-1
webcenter/rancher-alfresco:5.2-201612GA
```

## VTI external access
Expand All @@ -212,7 +212,7 @@ docker run -d --name "alfresco" \
--link postgres:db \
-p 445:445 -p 7070:7070 -p 8080:8080 \
-v /host/alfresco_data=/opt/alfresco/alf_data \
webcenter/rancher-alfresco:5.1-201605-1
webcenter/rancher-alfresco:5.2-201612GA
```


Expand Down
19 changes: 10 additions & 9 deletions assets/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def set_mail(self, host, port, user, password, protocol, starttls_enable, mail_s
if user is not None and user != "":
if password is None or password == "":
raise KeyError("You must provide password")
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco-global.properties', '^#.mail.username\s*=.*', 'mail.username=' + username)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco-global.properties', '^#.mail.username\s*=.*', 'mail.username=' + user)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco-global.properties', '^#.mail.password\s*=.*', 'mail.password=' + password)

if protocol == "smtp":
Expand Down Expand Up @@ -205,21 +205,22 @@ def set_ldap(self, enable, auth_format, host, user, password, list_admins, searc
raise KeyError("You must provide the search base user")

self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco-global.properties', 'authentication.chain\s*=.*', 'authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap1:ldap')
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.propertie', 'ldap.authentication.userNameFormat\s*=.*', 'ldap.authentication.userNameFormat=' + auth_format)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.propertie', 'ldap.authentication.java.naming.provider.url\s*=.*', 'ldap.authentication.java.naming.provider.url=ldap://' + host + ':389')
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.propertie', 'ldap.authentication.defaultAdministratorUserNames\s*=.*', 'ldap.authentication.defaultAdministratorUserNames=' + list_admins)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.propertie', 'ldap.synchronization.java.naming.security.principal\s*=.*', 'ldap.synchronization.java.naming.security.principal=' + user)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.propertie', 'ldap.synchronization.java.naming.security.credentials\s*=.*', 'ldap.synchronization.java.naming.security.credentials=' + password)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.propertie', 'ldap.synchronization.groupSearchBase\s*=.*', 'ldap.synchronization.groupSearchBase=' + search_base_group)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.propertie', 'ldap.synchronization.userSearchBase\s*=.*', 'ldap.synchronization.userSearchBase=' + search_base_user)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties', 'ldap.authentication.userNameFormat\s*=.*', 'ldap.authentication.userNameFormat=' + auth_format)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties', 'ldap.authentication.java.naming.provider.url\s*=.*', 'ldap.authentication.java.naming.provider.url=ldap://' + host + ':389')
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties', 'ldap.authentication.defaultAdministratorUserNames\s*=.*', 'ldap.authentication.defaultAdministratorUserNames=' + list_admins)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties', 'ldap.synchronization.java.naming.security.principal\s*=.*', 'ldap.synchronization.java.naming.security.principal=' + user)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties', 'ldap.synchronization.java.naming.security.credentials\s*=.*', 'ldap.synchronization.java.naming.security.credentials=' + password)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties', 'ldap.synchronization.groupSearchBase\s*=.*', 'ldap.synchronization.groupSearchBase=' + search_base_group)
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties', 'ldap.synchronization.userSearchBase\s*=.*', 'ldap.synchronization.userSearchBase=' + search_base_user)
else:
self.replace_all(ALFRESCO_PATH + '/tomcat/shared/classes/alfresco-global.properties', 'authentication.chain\s*=.*', 'authentication.chain=alfrescoNtlm1:alfrescoNtlm')

def init_data_folder(self):
global ALFRESCO_PATH

if len(os.listdir(ALFRESCO_PATH + '/alf_data')) < 3:
os.system('mv ' + ALFRESCO_PATH + '/alf_data_org/* ' + ALFRESCO_PATH + '/alf_data/')
# Replace mv per rsync to avoid bugs with autFS
os.system('rsync -a --remove-source-files ' + ALFRESCO_PATH + '/alf_data_org/. ' + ALFRESCO_PATH + '/alf_data')
os.system('chown -R alfresco:alfresco ' + ALFRESCO_PATH + '/alf_data')


Expand Down
4 changes: 3 additions & 1 deletion assets/setup/install_alfresco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ set -e

# Add extra library
apt-get update
apt-get install -y fontconfig libice6 libsm6 libxt6 libxrender1 libfontconfig1 libxinerama1 libglu1-mesa libcups2 ghostscript imagemagick xvfb xfonts-base
apt-get install -y --no-install-recommends sudo curl rsync supervisor fontconfig libice6 libsm6 libxt6 libxrender1 libfontconfig1 libxinerama1 libglu1-mesa libcups2 ghostscript imagemagick xvfb xfonts-base
apt-get clean
rm -rf /var/lib/apt/lists/*

# vars
ALF_HOME=/opt/alfresco
Expand Down
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
alfresco:
environment:
CIFS_ENABLED: 'false'
FTP_ENABLED: 'false'
image: webcenter/rancher-alfresco:5.2-201612GA
links:
- postgres:db
postgres:
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: alfresco
POSTGRES_PASSWORD: 70Q83feNcsfG
POSTGRES_USER: alfresco
image: postgres:9.4

0 comments on commit 0214574

Please # to comment.