gui81 / docker-alfresco Goto Github PK
View Code? Open in Web Editor NEWDocker image for Alfresco Community Edition
License: MIT License
Docker image for Alfresco Community Edition
License: MIT License
Hello!
As you can skip this test? Docker is running in a virtual machine.
1.95 GB of RAM is not enough to run Alfresco for test or production purposes. Alfresco might not work correctly and if it does, will not perform well. Upgrade the server to have at least 2.0 GB of RAM, and optimally 4.0 GB of RAM. ERROR: Service 'alfresco' failed to build: The command '/bin/sh -c /tmp/install_alfresco.sh &> /dev/null && rm -f /tmp/install_alfresco.sh &> /dev/null' returned a non-zero code: 1
Cannot setup instance having space in LDAP_SECURITY_PRINCIPAL environment variable.
The problem is fixed double quoting the second parameter while calling cfg_replace_option in init.sh:
cfg_replace_option ldap.synchronization.java.naming.security.principal "$LDAP_SECURITY_PRINCIPAL" $LDAP_CONFIG_FILE
The same should be done for other parameters too.
Hi, want to check if there are plans to create an official docker alfresco image? That would bring the image under https://hub.docker.com/explore/
The steps and considerations for doing the same are here: https://docs.docker.com/docker-hub/official_repos/#how-do-i-create-a-new-official-repository
Also want to check if the image can be run on multi-archs (eg ppc64le)? and if not if there are any plans to extend it, thanks!
My docker-compose.yml
looks as follows:
version: '2'
services:
alfresco:
image: gui81/alfresco
environment:
CONTENT_STORE: /home/alfresco/content:/content
DB_HOST: mysql
DB_KIND: mysql
DB_NAME: alfresco
DB_PASSWORD: mypassword
DB_USERNAME: root
#LDAP_AUTH_USERNAMEFORMAT: uid=%s,cn=users,cn=accounts,dc=example,dc=com
#LDAP_DEFAULT_ADMINS: admin
#LDAP_ENABLED: true
#LDAP_GROUP_SEARCHBASE: cn=groups,cn=accounts,dc=example,dc=com
#LDAP_SECURITY_CREDENTIALS: secret
#LDAP_SECURITY_PRINCIPAL: uid=admin,cn=users,cn=accounts,dc=example,dc=com
#LDAP_URL: ldap://ipa.example.com:389
#LDAP_USER_SEARCHBASE: cn=users,cn=accounts,dc=example,dc=com
links:
- mysql:mysql
depends_on:
- mysql
ports:
- 8080:8080
volumes:
- /home/alfresco/alf_data:/alfresco/alf_data
- /home/alfresco/tomcat/logs:/alfresco/tomcat/logs
- /home/alfresco/content:/content
mysql:
environment:
MYSQL_ROOT_PASSWORD: mypassword
MYSQL_DATABASE: alfresco
image: mysql
volumes:
- /home/alfresco/mysqldata/mysql:/var/lib/mysql
restart: always
Not able to login to Alfresco after reaching to http://my_ip:8080/share/page
using following credentials:
username: admin
password: admin
If I only use container volume, then everything works fine i.e
volumes:
- /alfresco/alf_data
- /alfresco/tomcat/logs
- /content
Hi.
I need to disable CSRF policy in /alfresco/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml file.
It is not possible to do that with your current container.
If you don't mind, I plane to fork your project, make some change and perform a nice pull request...
(https://github.com/ATIH/docker-alfresco)
Regards.
You could paramterise alfresco installer URL with --build-arg flag and ARG dockerfile instruction. That way you could build and tag images for different alfresco versions without changes in the source code.
Just an idea.
docker-alfresco/assets/init.sh
Line 8 in c506638
I think this line should be
rsync -av /alf_data.install/alf_data /alfresco/
to preserve db files' ownership.
When using the -v switch for the docker run command on a freshly pulled image Alfresco is not booting up properly as required data (such as the PostgreSQL data and keystore files are missing). There should be some kind of initialization which provides these data in case they are not existent.
I have tried a thousand ways without luck. We did not make document visualization work.
We have seen that a library is missing, we have installed it, we get libreoffice started but the problem persists. Does anyone else have this problem?
docker-compose up
Building alfresco
Step 1/22 : FROM centos:centos7
---> 3bee3060bfc8
Step 2/22 : MAINTAINER Lucas Johnson <[email protected]>
---> Using cache
---> 4edff14dcb69
Step 3/22 : RUN yum update -y && yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && yum install -y cups-libs dbus-glib fontconfig hostname libICE libSM libXext libXinerama libXrender supervisor wget patch && yum clean all
---> Using cache
---> 283f63da1d79
Step 4/22 : COPY assets/install_java.sh /tmp/install_java.sh
---> Using cache
---> 7ea77c7ec23c
Step 5/22 : RUN /tmp/install_java.sh && rm -f /tmp/install_java.sh
---> Running in 0bf85ec38c22
--2017-06-16 05:28:55-- http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm
Resolving download.oracle.com (download.oracle.com)... 200.188.128.145, 200.188.128.139
Connecting to download.oracle.com (download.oracle.com)|200.188.128.145|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm [following]
--2017-06-16 05:28:56-- https://edelivery.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.72.37.222, 2600:1404:a:399::2d3e, 2600:1404:a:388::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.72.37.222|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm?AuthParam=1497591057_30945fb5e8f889c2c40b3636d5f1018a [following]
--2017-06-16 05:28:56-- http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm?AuthParam=1497591057_30945fb5e8f889c2c40b3636d5f1018a
Connecting to download.oracle.com (download.oracle.com)|200.188.128.145|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-16 05:28:57 ERROR 404: Not Found.
ERROR: Service 'alfresco' failed to build: The command '/bin/sh -c /tmp/install_java.sh && rm -f /tmp/install_java.sh' returned a non-zero code: 8
Default value is true but doc says false:
"TOMCAT_CSRF_ENABLED: Disable the tomcat CSRF policy; default = false"
init.sh:
TOMCAT_CSRF_ENABLED=${TOMCAT_CSRF_ENABLED:-true}
Hi.
When I run this command to start a brand new alfresco :
docker run --name alfresco -it --rm -v /host/alfresco/content:/content -v /host/alfresco/data:/alfresco/alf_data gui81/alfresco
Alfresco is able to start, but I can't log in and I get the following error:
Your authentication details have not been recognized or Alfresco may not be available at this time.
In the log file "/alfresco/tomcat/logs/catalina.out" I get this error (and many others):
SEVERE: Failed to load keystore type JCEKS with path /alfresco/alf_data/keystore/ssl.keystore due to /alfresco/alf_data/keystore/ssl.keystore (No such file or directory)
The data volume mounted from the docker host is empty. So, the directory /alfresco/alf_data is empty too: no keystore to load.
During the installation process triggered by the Dockerfile, alfresco put several mandatory stuffs into /alfresco/alf_data.
Mounting an empty data volume in place of the /alfresco/alf_data make alfresco unable to work properly.
Can we save the alf_data at the end of the dockerfile and restore it (if it doesn't exist) during the init.sh ? So the data volume would be populated using the mandatory data at the first run of the container ?
Regards.
Hi am new to docker. When i try to build an image, i keep getting the below error. Please assist.
ERROR: Service 'alfresco' failed to build: The command '/bin/sh -c /tmp/install_alfresco.sh && rm -rf /tmp/* /var/tmp/*' returned a non-zero code: 2
I'm using the image with mysql.
The first time I start the container, it works.
Then I stopped the containers and restart, I can't connect to alfresco using the UI (login failed).
If I delete the volume and restart, it works.
I saw this problem on a mac and in a vagrant box running ubuntu.
But it seems to work on linux.
Any idea ?
Thanks
Below my docker-compose :
alfresco-mysql:
image: mysql:5.7.20
volumes:
- ~/volumes/alfresco/mysql/:/var/lib/mysql/
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=alfresco
- MYSQL_PASSWORD=alfresco
- MYSQL_DATABASE=alfresco
ports:
- 3306:3306
command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8 --explicit_defaults_for_timestamp
alfresco:
image: "gui81/alfresco:201707"
volumes:
- ~/volumes/alfresco/alf_data:/alfresco/alf_data
#- ~/volumes/alfresco/content:/content
environment:
- DB_KIND=mysql
- DB_HOST=alfresco-mysql
- DB_USERNAME=alfresco
- DB_PASSWORD=alfresco
- DB_NAME=alfresco
#- CONTENT_STORE=/content
ports:
- "7080:8080"
- "8443:8443"
Looks like default alfresco-global.properties misses a newline before mail.host property. After expansion file looks like this:
alfresco.jmx.connector.enabled=falsemail.host=192.168.1.3
mail.port=25
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.