Hi Andre,
Hello Ralf and other core-developers,
during my manual egroupware installation for my dockerfile, I stumbled
over 2 strange points:
- installation step “input information for header.inc.php”
The default database port is always 3306, the default server is always
"localhost"- but if You link the container with a mysql container, the
data is already stored in environment variables. I updated the file
setup/inc/class.setup.header.inc.php in a way that it works “the
normal way” and “the manual docker container installation way”.
EGroupware is already prepared to install in docker and understand
linking via environment variables: doc/rpm-build/post_install.php allows
to set arbitrary values and for the database we can fetch environment
variables on run-time by using their name prefix with an “@”. That even
works if you reconfigure the container linkage.
So when your container starts you call:
doc/rpm-build/post_install.php
–db_host @MYSQL_PORT_3306_TCP_ADDR
–db_port @MYSQL_PORT_3306_TCP_PORT
–db_name @MYSQL_ENV_MYSQL_DATABASE
–db_user @MYSQL_ENV_MYSQL_USER
–db_pass @MYSQL_ENV_PASSWORD
–data_dir /var/lib/egroupware # is the default anyway
doc/rpm-build/post_install.php --help gives all available options.
post_install.php detects if EGroupware is installed and then only checks
if an update is necessary.
Ralf
- installation step 2 (configuration)
it looks for folders named ‘/var/lib//default/files’ and
’/var/lib//default/backup’ - it seems the variable $egroupwareDirName
was not set before line 247 in file
setup/inc/class.setup_process.inc.php , so I added a default value
’egroupware’
Both files are attached to this email.
I don’t know if You maybe can add my submission to egroupware core or
maybe there’s another solution for those points.
sneaky(x) alias
André Scholz
–
Ralf Becker
Director Software Development
Stylite AG
Isaac-Fulda-Allee 9 | Tel. +49 6131 32702-0
D-55124 Mainz | Fax. +49 6131 32702-70
Email: rb@stylite.de
www.stylite.de | www.egroupware.org
Managing Directors: Andre Keller | Gudrun Mueller
Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer
VAT DE214280951 | Registered HRB 46224 Mainz Germany