axelor / axelor-docker Goto Github PK
View Code? Open in Web Editor NEWDocker files for Axelor.
Docker files for Axelor.
Hi,
the postgresql 9.6 startup fails with the following:
2020-06-17 19:52:32.710 UTC [87] FATAL: could not load private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied
2020-06-17 19:52:32.710 UTC [87] LOG: database system is shut down
I tried mapping that volume to my own snakeoil /etc/sssl/private folder cert but no success.
Created a separate volume, and moved the certificate there and tried root ownership,
postgres ownership. Failed.
Changed the ownership of the certificate back to (root:ssl-cert) kind by guessing the gid of the ssl-cert group in the image. Failed.
Tried to use a non ssl run like suggested in the docs (only define tomcat port 8080). Failed.
Redefined the NGINX_PORT to 80 hoping the whole SSL issue would vanish. Failed.
Any advice on this ?
Thank you,
Luc P.
Hi,
When I write docker build -t axelor/aio-base .
I have an error :
Step 6/40 : RUN set -ex && export TOMCAT_MAJOR="8" && export TOMCAT_VERSION="8.5.38" && export TOMCAT_ESUM="3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d" && export TOMCAT_PKG="apache-tomcat-$TOMCAT_VERSION.tar.gz" && mkdir -p $CATALINA_HOME && mkdir -p $CATALINA_BASE && cd $CATALINA_HOME && curl -L -O "https://www.apache.org/dyn/closer.cgi?action=download&filename=tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/$TOMCAT_PKG" && echo "$TOMCAT_ESUM $TOMCAT_PKG" | sha512sum -c - && tar -xvf $TOMCAT_PKG --strip-components=1 && rm -f $TOMCAT_PKG && rm -f $TOMCAT_HOME/bin/*.bat && chmod 755 $CATALINA_HOME/bin && chmod 755 $CATALINA_HOME/lib && chmod 755 $CATALINA_HOME/conf && chmod 644 $CATALINA_HOME/bin/* && chmod 644 $CATALINA_HOME/lib/* && chmod 644 $CATALINA_HOME/conf/* && chmod 755 $CATALINA_HOME/bin/*.sh && chown root:$TOMCAT_GROUP $CATALINA_HOME/conf/* && mkdir -p $CATALINA_BASE/conf && mkdir -p $CATALINA_BASE/temp && mkdir -p $CATALINA_BASE/webapps && cp $CATALINA_HOME/conf/tomcat-users.xml $CATALINA_BASE/conf/ && cp $CATALINA_HOME/conf/logging.properties $CATALINA_BASE/conf/ && cp $CATALINA_HOME/conf/server.xml $CATALINA_BASE/conf/ && cp $CATALINA_HOME/conf/web.xml $CATALINA_BASE/conf/ && sed -i 's/directory="logs"/directory="\/var\/log\/tomcat"/g' $CATALINA_BASE/conf/server.xml && sed -i 's/\${catalina\.base}\/logs/\/var\/log\/tomcat/g' $CATALINA_BASE/conf/logging.properties
---> Running in e799f52c1df7
+ export TOMCAT_MAJOR=8
+ export TOMCAT_VERSION=8.5.38
+ export TOMCAT_ESUM=3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d
+ export TOMCAT_PKG=apache-tomcat-8.5.38.tar.gz
+ mkdir -p /usr/local/tomcat
+ mkdir -p /var/lib/tomcat
+ cd /usr/local/tomcat
+ curl -L -O https://www.apache.org/dyn/closer.cgi?action=download&filename=tomcat/tomcat-8/v8.5.38/bin/apache-tomcat-8.5.38.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 196 100 196 0 0 525 0 --:--:-- --:--:-- --:--:-- 525
+ echo 3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d apache-tomcat-8.5.38.tar.gz
+ sha512sum -c -
apache-tomcat-8.5.38.tar.gz: FAILED
sha512sum: WARNING: 1 computed checksum did NOT match
The command '/bin/sh -c set -ex && export TOMCAT_MAJOR="8" && export TOMCAT_VERSION="8.5.38" && export TOMCAT_ESUM="3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d" && export TOMCAT_PKG="apache-tomcat-$TOMCAT_VERSION.tar.gz" && mkdir -p $CATALINA_HOME && mkdir -p $CATALINA_BASE && cd $CATALINA_HOME && curl -L -O "https://www.apache.org/dyn/closer.cgi?action=download&filename=tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/$TOMCAT_PKG" && echo "$TOMCAT_ESUM $TOMCAT_PKG" | sha512sum -c - && tar -xvf $TOMCAT_PKG --strip-components=1 && rm -f $TOMCAT_PKG && rm -f $TOMCAT_HOME/bin/*.bat && chmod 755 $CATALINA_HOME/bin && chmod 755 $CATALINA_HOME/lib && chmod 755 $CATALINA_HOME/conf && chmod 644 $CATALINA_HOME/bin/* && chmod 644 $CATALINA_HOME/lib/* && chmod 644 $CATALINA_HOME/conf/* && chmod 755 $CATALINA_HOME/bin/*.sh && chown root:$TOMCAT_GROUP $CATALINA_HOME/conf/* && mkdir -p $CATALINA_BASE/conf && mkdir -p $CATALINA_BASE/temp && mkdir -p $CATALINA_BASE/webapps && cp $CATALINA_HOME/conf/tomcat-users.xml $CATALINA_BASE/conf/ && cp $CATALINA_HOME/conf/logging.properties $CATALINA_BASE/conf/ && cp $CATALINA_HOME/conf/server.xml $CATALINA_BASE/conf/ && cp $CATALINA_HOME/conf/web.xml $CATALINA_BASE/conf/ && sed -i 's/directory="logs"/directory="\/var\/log\/tomcat"/g' $CATALINA_BASE/conf/server.xml && sed -i 's/\${catalina\.base}\/logs/\/var\/log\/tomcat/g' $CATALINA_BASE/conf/logging.properties' returned a non-zero code: 1
I don't understand because an hour ago I didn't have this error.
Thank a lot for your help.
When running $ docker build -t axelor/aio-builder .
i get this error: (from stacktrace)
> Task :modules:axelor-exception:compileJava
> Task :modules:axelor-bank-payment:xjc
> Task :modules:axelor-docusign:shadowDocusignDeps
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':npm-install'.
> A problem occurred starting process 'command 'npm''
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':npm-install'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:166)
[...]
Caused by: java.io.IOException: Cannot run program "npm" (in directory "/app/src/axelor-erp/build/webapp"): error=2, No such file or directory
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 7 more
Hello Axelor Team,
There is a bug in "aio-base" docker container.
Steps to reproduce:
What's wrong: /studio/custom-model/static/css/main.css
is requested from page but server responses with another main.css
file
Here is a reference from forum with same bug and a workaround:
https://forum.axelor.com/t/studio-css-bug-in-docker-version-axelor-5-1-x-and-5-2-x/2356
as in official documentation, I am adding host folders to following:
/var/lib/tomcat
/var/lib/postgresql
/var/log/tomcat
/var/log/postgresql
when I try to add my host folders, the container does not build WAR file and it stay there
here's the docker log: docker.log
but when I run the docker command WITHOUT volumes, it works fine
here's my docker command:
docker run -it \
--name axelor \
-p 8080:80 \
-v /axelor/log/tomcat:/var/log/tomcat \
-v /axelor/log/postgresql/:/var/log/postgresql \
-v /axelor/lib/tomcat:/var/lib/tomcat \
-v /axelor/lib/postgresql/:/var/lib/postgresql \
axelor/aio-erp
In your Docker installation documentation, you state:
Following environment variables can be used to change container settings:
So I created the container changing the POSTGRES_PASSWORD
variable, to something secure, because of course the database being secured by the same name as the user is not secure at all. Well, it doesn't work.
I've been here for hours and hours. If I don't change this variable on creation, all works, but if I do, it crashes. I tried changing the application.properties
and app.properties
variables located at /var/lib/tomcat
, and also changing the variables located directly in the ROOT folder. Nothing changes and it is destroying me. Also tried directly changing the password of the user "axelor" directly on the psql cli.
Help please!
UPDATE:
Seems that the ENV variable is only working to change the password in PSQL, because if I change the password back to axelor it works. So this variable is not changing the information in the system files.
Hello,
in this file
https://github.com/axelor/axelor-docker/blob/master/aio-base/nginx-ssl.conf
there is no env variable to set https port, but only a redirect. Nginx will continue to listen on 443 port.
I think we should have the option to set 2 ports to replace http and https with custom one.
Env shoud be
NGINX_HTTP_PORT
NGINX_HTTPS_PORT
and of course also the nginx ssl config need updates
In
https://github.com/axelor/axelor-docker/blob/master/aio-builder/Dockerfile
there are multiple build phases and in the end the app is deleted.
We should remove these steps
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.