Run on a docker image
Status
Several issues appears when running the current version on a docker image.
-
The application failed in commom_settings
due to the use of specific local language -
The building of the javascript library/documentation failed since the sencha/jsduck command are not found -
The documentation of the API is not corrected -
Javascript file Trp/wizard/Harvest.js
is not found. Thetrack_publication
javascript library is not created. FIX: by defining absolute path inbuild_version.py
. -
List extraction in odt
failed. Return an empty message labelledAttention
. After that the database connection is not working any more. FIX: by removing teh virtual X11 server, by using the libreoffice-headless version instead of libreoffice, and by creating a HOME directory luanchin libreoffice command
Local language
-
the issue is in the
common_settings.py
file:locale.setlocale(locale.LC_ALL, "fr_FR.UTF-8")
-
In the docker image, the only language installed is
en-en
-
Other languages are not need, since web2py provides internationalization mechanism based on:
T.force("fr-fr") T.set_current_languages('en', 'en-en') T.current_languages T.accepted_language
-
The first two lines are used before the call to
local.setlocale...
-
Therefore the use of
locale...
is indeed not needed. -
Review the code to remove it.
jsduck / sencha
- The path of these commands are hardcoded in the script
build_version.py
- FIX: Use the command
which
to find the path on the host
Sphinx
- The generation of the API failed using sphinx while it is working for the user guide.
- The issue is when generating the tree describing method and function (see
generated
directory) - FIX: by changing the path to
web2py
indocs/api/conf.py