fjudith / docker-alfresco Goto Github PK
View Code? Open in Web Editor NEWDokerized micro-services to Alfresco latest GA based on openjdk & tomcat official images
License: MIT License
Dokerized micro-services to Alfresco latest GA based on openjdk & tomcat official images
License: MIT License
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:
How could you use docker-compose with custom settings?
And
What is the procedure for installing AMP and JAR packages?
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 --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
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.
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.
dpkg
errorcd
into directory docker-alfresco
docker-compose build
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
tar
returning non-zero exit statuscd
into directory docker-alfresco
docker-compose build
# ...
---> 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"]
What path and what container do I copy AMP packages to? Do I have to create this "AMP" folder inside a container?
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.
How to install AMP (ADDONS) packages?
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.