Giter VIP home page Giter VIP logo

axelor-docker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

axelor-docker's Issues

how to make data volume persistent?

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

Wrong css file response from web server

Hello Axelor Team,

There is a bug in "aio-base" docker container.

Steps to reproduce:

  1. Start aio-base container
  2. Install BPM module
  3. Click App builder / Studio
  4. Elements in page are rendered unstyled

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

Startup of postgresql 9.6 fails

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.

No such directory in aio-builder

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

Axelor deployment - docker

Hi

I am deploying Axelor docker in plesk. Then I did the settings as seen in the attached image, and in the domain docker proxy. But as I try my_domain/erp
1

It takes me to this page:
502 Bad Gateway
nginx

and then after a while it directed me to the login page but it is like this:

3

Any ideas?

FATAL: password authentication failed for user "axelor"

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.

Error with docker build -t axelor/aio-base .

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.

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.