GithubHelp home page GithubHelp logo

fjudith / docker-alfresco Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 3.0 1.02 MB

Dokerized micro-services to Alfresco latest GA based on openjdk & tomcat official images

License: MIT License

Shell 63.29% Java 0.13% Dockerfile 36.58%

docker-alfresco's People

Contributors

fjudith avatar gui81 avatar mengzhaopeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-alfresco's Issues

Settings - Alfresco

Great day,

I really enjoyed your work and it's already in testing.

There was a doubt, I do not know Docker. There are some customizations that are performed on the following files:

  • share-config-custom.xml
  • alfresco-global.properties

How could you use docker-compose with custom settings?

And

What is the procedure for installing AMP and JAR packages?

EADDRINUSE for Alfresco Repository

When running docker-compose up, I'm seeing errors related to the addresses already being in use for the ports being mapped in the docker-compose.yml file.

I'm including a diff for fixing it, but I'll wait to submit a PR in case it doesn't make sense or requires more documentation.

Diff
diff --git a/docker-compose.yml b/docker-compose.yml
index 1112f18..a083bc9 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -16,13 +16,13 @@ services:
     image: postgres:9.4
     volumes:
       - alfresco-db:/var/lib/postgresql/data
-  
+
   libreoffice:
     build: libreoffice/
     image: fjudith/alfresco:libreoffice
     ports:
       - "8100:8100"
-  
+
   search:
     build: search/
     image: fjudith/alfresco:search
@@ -32,7 +32,7 @@ services:
       - alfresco-search-cores-alfresco:/usr/share/alfresco-search-services/solrhome/alfresco
       - alfresco-search-cores-archive:/usr/share/alfresco-search-services/solrhome/archive
       - alfresco-search-contentstore:/usr/share/alfresco-search-services/contentstore
-  
+
   repository:
     environment:
       DB_HOST: postgres
@@ -55,21 +55,21 @@ services:
       - libreoffice:libreoffice
       - search:solr
     ports:
-      - "21:21"
-      - "137:137"
-      - "138:138"
-      - "139:139"
-      - "445:445"
+      - "8021:21"
+      - "8137:137"
+      - "8138:138"
+      - "8139:139"
+      - "8445:445"
       - "8009:8009"
     volumes:
     volumes:
       - alfresco-data:/var/lib/alfresco/alf_data
       - alfresco-logs:/usr/share/tomcat/logs
-  
+
   share:
     build: share/
     image: fjudith/alfresco:share
     ports:
       - "8080:8080"
     links:
-      - repository:repository
\ No newline at end of file
+      - repository:repository
Error
Creating dockeralfresco_repository_1  ... error

ERROR: for dockeralfresco_repository_1  Cannot start service repository: b'driver failed programming external connectivity on endpoint dockeralfresco_repository_1 (88348fc727c58afa34f84ff2033475c49cda144dfdb2ae0c239582f964f05029): Error starting userland proxy: Bind for 0.0.0.0:445: unexpected error (Failure EADDRINUSE)'

ERROR: for repository  Cannot start service repository: b'driver failed programming external connectivity on endpoint dockeralfresco_repository_1 (88348fc727c58afa34f84ff2033475c49cda144dfdb2ae0c239582f964f05029): Error starting userland proxy: Bind for 0.0.0.0:445: unexpected error (Failure EADDRINUSE)'
ERROR: Encountered errors while bringing up the project.

LibreOffice Dockerfile errors

I found a couple of issues with the LibreOffice Dockerfile. I'll document them below. I'm not sure how you'd like these addressed, I can submit a PR to fix these, but I'm not sure if the versions you had in the repo were for a specific reason.

Steps to reproduce dpkg error

  • Clone the project
  • cd into directory docker-alfresco
  • Run docker-compose build
  • See failure to find LibreOffice_5.4.6.1_Linux_x86-64_deb/DEBS
Step 14/24 : RUN dpkg -R --install LibreOffice_${LIBREOFFICE_RELEASE_VERSION}_Linux_x86-64_deb/DEBS/ &&     chown -R libreoffice:libreoffice ${LIBREOFFICE_PATH} &&     ln -s ${LIBREOFFICE_PATH} /opt/libreoffice
 ---> Running in 666647f7ceab
find: `LibreOffice_5.4.6_Linux_x86-64_deb/DEBS/': No such file or directory

Steps to reproduce tar returning non-zero exit status

  • Clone the project
  • cd into directory docker-alfresco
  • Run docker-compose build
  • See failure to unzip LibreOffice
# ...
 ---> Running in 8f361c9eae69
+ curl --silent --location http://download.documentfoundation.org/libreoffice/stable//5.4.5/deb/x86_64/LibreOffice_5.4.5_Linux_x86-64_deb.tar.gz
+ tar xvz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

# ...

The file diff I have to fix this is here:

diff --git a/libreoffice/Dockerfile b/libreoffice/Dockerfile
index 6134b0e..8b39431 100644
--- a/libreoffice/Dockerfile
+++ b/libreoffice/Dockerfile
@@ -7,10 +7,10 @@ ENV LANG=C.UTF-8
 
 ENV DEBIAN_FRONTEND=noninteractive
 
-ENV REPO=http://download.documentfoundation.org/libreoffice/stable/
+ENV REPO=http://tdf.mirror.rafal.ca/libreoffice/stable/
 ENV LIBREOFFICE_VERSION=5.4
-ENV LIBREOFFICE_PATCH_VERSION=5.4.5
-ENV LIBREOFFICE_RELEASE_VERSION=${LIBREOFFICE_PATCH_VERSION}.1
+ENV LIBREOFFICE_PATCH_VERSION=5.4.6
+ENV LIBREOFFICE_RELEASE_VERSION=${LIBREOFFICE_PATCH_VERSION}.2
 ENV LIBREOFFICE_PATH="/opt/libreoffice${LIBREOFFICE_VERSION}"
 
 # Create user
@@ -73,4 +73,4 @@ EXPOSE 8100
 USER libreoffice
 
 ENTRYPOINT [ "/docker-entrypoint.sh" ]
-CMD ["run"]
\ No newline at end of file
+CMD ["run"]

AMP Packages

What path and what container do I copy AMP packages to? Do I have to create this "AMP" folder inside a container?

Versioning

Hi!

It would be great to use minor version numbers for new images (e.g. 201707.1, 201707.2).

We have been using 201707 for a while now, but the tag has been overwritten and now it is impossible to fetch the image that we were working with.

HOURS - Alfresco

Great day,

I saw that the container time is about 03 hours ahead of Host, how to get it right?

Grateful !!

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.