Public | Automated Build

Last pushed: 4 months ago
Short Description
Alfresco Repo Community Dockerfile
Full Description

Alfresco Community Edition 201702-GA docker image

This images runs a standalone Alfresco Community 201702-GA version

Stack

  1. Centos 7
  2. Apache Tomcat 7.0.69
  3. Oracle JDK 1.8.0.121
  4. PostgreSQL 9.4.4
  5. Alfresco Platform 5.2.f
  6. Alfresco Share 5.2.e
  7. Solr 4.10.3
  8. AOS Module 1.1.5
  9. Aikau 1.0.101.3 (SCM tag)
  10. LibreOffice 5.1.4.2 (Based on image from XCGD)
  11. ImageMagick 6.9.1-10

Use

Manual startup

$ docker run -d --name postgres -e POSTGRES_DB=alfresco -e POSTGRES_USER=alfresco -e POSTGRES_PASSWORD=alfresco postgres:9.4
$ docker run -d --name libreoffice xcgd/libreoffice
$ docker run -it --name alfresco -p 8080:8080 --link postgres:postgres --link libreoffice:libreoffice mikelasla/alfresco-standalone

docker-compose

$ git clone https://github.com/mikelasla/alfresco
$ docker-compose up

Addons included

  1. Alfresco JavaScript Console 0.6
  2. Support Tools 0.0.1.0-SNAPSHOT
  3. Version by name 1.2.0
  4. Share Site Creators 0.0.3
  5. Uploader Plus 1.5.1

Alfresco 5.2 REST API explorer

Check this page for reference on new Alfresco 5.2 REST API

Alfresco 5.2 REST API Reference community DOC

Thanks to Gavin Cornwell for a great job documenting this new Alfresco functionality

Access

(admin/admin)

http://localhost:8080/share
http://localhost:8080/alfresco
http://localhost:8080/solr4
http://localhost:8080/api-explorer
Docker Pull Command
Owner
mikelasla
Source Repository

Comments (11)
mikelasla
9 months ago

Hi dooku,
Thanks for the feedback!

The first error looks like a database connection configuration issue. Check that the properties in alfresco/assets/alfresco/alfresco-global.properties match those passed to postgres container environment variables. Also you could map postgres container 5432 port to your host and validate your config connecting to the database with psql.

For the docker-compose related error, check your Docker Engine and Docker Compose versions, docker-compose version 2 is supported from docker-compose 1.6.0+ and it requires Docker Engine 1.10.0+

Regards

dooku
10 months ago

Hi mikelasla,
thanks for sharing this image. When I pull and run the image it works but when I try with the manual startup I get some errors, e.g.:
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The connection attempt failed.)
and with docker-compose:
ERROR: In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.
Any ideas?
I would simply run your build but FTP, CIFS, https are deactivated and no video thumbnails are generated.
Best regards

mikelasla
a year ago

Hi Marius

You could do that in several ways, the easiest one would be to adpat the server.xml to your needs and then rebuild the image. Another solution, without modifing this image, will be to use Apache Http Server (or Nginx), obviously.

Here an example vhost with Apache httpd server 2.4 i've used many times

<VirtualHost *:80>
        ServerName yourservername

        RewriteEngine on
        RewriteCond %{HTTPS} !=on
        RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]

</VirtualHost>

<VirtualHost *:443>
        ServerName yourservername

        SSLEngine on
        SSLCertificateFile /usr/local/apache2/conf/server.crt
        SSLCertificateKeyFile /usr/local/apache2/conf/server.key

        ProxyRequests Off
        ProxyPreserveHost Off
        <Proxy *>
                Require all granted
        </Proxy>
        ProxyPass / ajp://localhost:8009/
        ProxyPassReverse / ajp://localhost:8009/

</VirtualHost>

Finally if you keep with CSRF errors, it may be helpfull for you to read Alfresco Share's Security policies and filters documentation.

mariusw
2 years ago

Hello,
Is there a way to use this container with https ?
I get an error "Possible CSRF attack noted when asserting ...."

Thank you and best regards,
Marius

mikelasla
2 years ago

Hi zkydiver,
You can use any libreoffice instance you like, also a docker image. just edit alfresco-global.properties to point to right host and port.

mikelasla
2 years ago

Hi saschaholweg!
Sorry, away for vacations

Default login is "admin" / "admin" so if that's not working for you, you may have an issue within the startup process, have you check your logs?

saschaholweg
2 years ago

Hello,
i just started the container and it is working.
But how can i login?
What are the admin user data?
Thank you and best regards,
Sascha

mikelasla
2 years ago

Thanks for the feedback zkydiver, i'll try to improve it, adding libreoffice, javacript-console addon and other things i got in mind we allways need in a fresh install

mikelasla
2 years ago

updated Readme, Thanks steghe for pointing that out!

steghe
2 years ago

there's a type i think in the last docker command...these seems correct
docker run --name alfresco-standalone --link postgres:postgres -p 8080:8080 -d mikelasla/alfresco-standalone