fametec / glpi Goto Github PK
View Code? Open in Web Editor NEWGLPI Docker Container
Home Page: https://hub.docker.com/r/fametec/glpi
License: GNU General Public License v3.0
GLPI Docker Container
Home Page: https://hub.docker.com/r/fametec/glpi
License: GNU General Public License v3.0
Hi.
I'm checking your project in order to deploy glpi on k8s and learn a bit more about the tool but I'm stuck on the installation process. I can deploy a mariadb database and the glpi pod but whenever I open the glpi URL I get the Error accessing config table error.
In the /glpi-entrypoint.sh
file I see a call to ConfigDataBase
which I'm not sure is being executed because this is the log on tio of my pod.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.244.0.116. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 11 00:12:05.284992 2021] [suexec:notice] [pid 7] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.244.0.116. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 11 00:12:05.329910 2021] [lbmethod_heartbeat:notice] [pid 7] AH02282: No slotmem from mod_heartmonitor
[Thu Feb 11 00:12:05.400888 2021] [mpm_prefork:notice] [pid 7] AH00163: Apache/2.4.6 (CentOS) PHP/7.3.25 configured -- resuming normal operations
[Thu Feb 11 00:12:05.400977 2021] [core:notice] [pid 7] AH00094: Command line: 'httpd -D FOREGROUND'
I've checked DB connection with a phpmyadmin instance deployed on the same namespace.
The /var/log/httpd/access_log
file shows a 200
.
GET / HTTP/1.1" 200 28
The /var/www/html/files/_log/php-errors.log
file shows this error, that I'm not sure is be related.
[2021-02-11 00:13:38] glpiphplog.WARNING: *** PHP User Warning (512): Cannot write "/var/www/html/files/_cache/glpi_cache_db_9.5.3.json" cache footprint file. Cache performance can be lowered. in /var/www/html/inc/cache/simplecache.class.php at line 273
Backtrace :
inc/cache/simplecache.class.php:273 trigger_error()
inc/cache/simplecache.class.php:72 Glpi\Cache\SimpleCache->checkFootprintFileIntegrity()
inc/config.class.php:3308 Glpi\Cache\SimpleCache->__construct()
inc/config.php:56 Config::getCache()
inc/includes.php:48 include_once()
index.php:55 include()
Could you give me a hand on where to look to solve this problem?
Thanks.
Missing php-fpm section in docker-compose.yml
Hi.
Another thing to clarify.
In the crond section of yaml file you have indicated two times volumes:
volumes:
- glpi-volume:/usr/share/nginx/html/glpi:rw
volumes:
- glpi-volume-files:/var/www/html/files:rw
- glpi-volume-plugins:/var/www/html/plugins:rw
But why this?
I think that also in this case, like for php-fpm part, it depends if we will use apache or nginx.
Thank you
Hi,
Could you please provide a security update:
https://github.com/glpi-project/glpi/releases/tag/9.5.7
Thanks a lot
a question about kubernates yaml fil !
everything is working properly but it show on the browser
"A link to the SQL server could not be established. Please check your configuration.
Le serveur Mysql est inaccessible. Vérifiez votre configuration."
any helps plz :)
Hi,
Could you upgrade to GLPI VERSION 10.0?
GLPI Version 10.0 has a brand new GUI that is super easy to read and usefull for everyone.
Buenas,
A variavel VERSION: "9.5.1" configurada no .yml vai substituir a variavel do install_glpi.sh?
Caso não, como faço isso via .yml?
When looking at the documentation in the repository I couldn't identify the documentation for implementation in k8s environment.
Is it possible that the basic deployment procedure will be made available!?
Docker-compose v3.5
Server Ubuntu 20.05
` docker-compose build
ERROR: Service 'glpi' depends on service 'php-fpm' which is undefined.`
FROM centos:7
Hi all,
I migrated a host installation into Docker using this image. It works well, except for the fact that each time the container is restarted or redeployed (e.g.: add a new volume into Docker Compose), I have this error message:
[2022-12-01 12:07:11] glpiphplog.CRITICAL: *** Uncaught Exception RuntimeException: You must create a security key, see glpi:security:change_key command. in /var/www/html/inc/glpikey.class.php at line 120
Backtrace :
inc/toolbox.class.php:347 GLPIKey->get()
inc/toolbox.class.php:286 Toolbox::getGlpiSecKey()
inc/authldap.class.php:1460 Toolbox::sodiumDecrypt()
front/authldap.form.php:78 AuthLDAP::testLDAPConnection()
The fix is to:
/var/www/html/bin/console glpi:security:change_key
Is there a way to prevent this? For me, one of the main purposes of using Docker is to be able to quickly change the configuration, or stop-backup-restart, etc. Currently, each container modification implies heavy reconfiguration.
Thanks!
Hi all,
I'm trying to give a run with this tool and used Portainer to create a new stack with the config file hereunder:
# from https://github.com/fametec/glpi
version: "3.5"
services:
# GLPI
glpi:
image: fametec/glpi:latest
container_name: glpi-app
restart: unless-stopped
volumes:
- glpi-volume-files:/var/www/html/files:rw
- glpi-volume-plugins:/var/www/html/plugins:rw
- glpi-volume-config:/var/www/html/config:rw
environment:
GLPI_LANG: fr_FR
MARIADB_HOST: mariadb-glpi
MARIADB_PORT: 3307
MARIADB_DATABASE: glpi
MARIADB_USER: glpi-user
MARIADB_PASSWORD: glpipwd
VERSION: "9.5.6"
PLUGINS: "all"
depends_on:
- mariadb-glpi
ports:
- 14000:80
- 14443:443
networks:
- glpi-frontend
- glpi-backend
# MARIADB
mariadb-glpi:
image: docker.io/mariadb:latest
container_name: glpi-db
restart: unless-stopped
volumes:
- glpi-volume-mariadb:/var/lib/mysql:rw
environment:
MYSQL_DATABASE: glpi
MYSQL_USER: glpi-user
MYSQL_PASSWORD: glpipwd
MYSQL_RANDOM_ROOT_PASSWORD: 1
ports:
- 3307:3306
networks:
- glpi-backend
# CRON
crond:
image: fametec/crond-glpi:latest
container_name: glpi-cron
restart: unless-stopped
depends_on:
- glpi
- mariadb-glpi
environment:
MARIADB_HOST: mariadb-glpi
MARIADB_PORT: 3307
MARIADB_DATABASE: glpi
MARIADB_USER: glpi-user
MARIADB_PASSWORD: glpipwd
volumes:
- glpi-volume-files:/var/www/html/files:rw
- glpi-volume-plugins:/var/www/html/plugins:rw
networks:
- glpi-backend
# VOLUMES
volumes:
glpi-volume-files:
glpi-volume-plugins:
glpi-volume-config:
glpi-volume-mariadb:
# NETWORKS
networks:
glpi-frontend:
glpi-backend:
which is pretty close to the docker-compose.yml you propose.
Unfortunately, if the stack deploys smoothly, I just can't access the GUI, getting this "Error accessing config table" error.
Logs of the cron service says:
log_it: (CRON 7) INFO (RANDOM_DELAY will be scaled with factor 50% if used.)
log_it: (CRON 7) INFO (running with inotify support)
log_it: (root 11) CMD (/usr/bin/php -c /etc/php.ini /var/www/html/front/cron.php --forcequeudnotification )
log_it: (root 12) CMD (/usr/bin/php -c /etc/php.ini /var/www/html/front/cron.php )
log_it: (root 13) CMD (/usr/bin/php -c /etc/php.ini /var/www/html/front/cron.php --forcemailgate)
log_it: (root 8) CMDOUT (PHP Warning: mysqli::real_connect(): (HY000/2002): Connection refused in /var/www/html/inc/dbmysql.class.php on line 185)
log_it: (root 8) CMDOUT (A link to the SQL server could not be established. Please check your configuration.)
log_it: (root 8) CMDOUT (Le serveur Mysql est inaccessible. Vérifiez votre configuration.)
indicating that the DB server is not accessible and I just can't find where I'm wrong... 🤔 DB and GLPI look fine, no error in their logs.
Any helping hand would be welcome!
Hi.
As indicated via email in the docker-compose.yaml indicated on docker-hub there is a service requirement (php-fpm) that is not useful if using apache but only for nginx.
Maybe could be better documented in the yaml.
Another point is the lacks of indication of apache or nginx container at all.
Thank you for your work
Olá, foi realizado a instalação deste container do glpi ha muito tempo em nosso servidor, porém nada foi documentado. Felizmente, após diversas analises do servidor, descobri que trata-se deste presente container, enfim, vamos a minha grande duvida.
Gostaria de saber como proceder para o plugin fusion inventory funcionar neste container, utilizei o metodo padrão de instalação utilizando o diagrama que vocês documentarão neste git, no entanto, para o fusion inventory não funcionou. O glpi não consegue "ver" o plugin no diretório.
#Aguardo retorno
Ola
Fiz a instalação e configuração da instância, tudo ok.
Ao tentar registrar a glpi network, colo a chave de registro e quando valido, a pagina fica em branco e não valida.
Gostaria de instalar plugins pelo marketplace.
D:\GLPI\glpi\docker>docker exec -it docker_glpi_1 /configure.sh
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "/configure.sh": stat /configure.sh: no such file or directory: unknown
I tried to find the configure.sh from the vm but no lucky looking for it, is there any way to fix this? PLS
Hi, @ricardo-f
thanks for your good work here.
Question about kubernetes solution from you, can you please update, it so that this solution also work with crond.
Thank you for your time and effort.
qual usuario e senha default? glpi/glpi não entra
Hello, can you please provide an ARMv8 version for the image?
Thanks
Hello,
Can you maak a Dockerfile for V10 ?
https://github.com/fametec/glpi/blob/master/docker/apache/Dockerfile
With
https://github.com/glpi-project/glpi/releases/download/10.0.0-beta/glpi-10.0.0-beta.tgz
If you want I can take a fork but a I think the speedest is it's you make a new version directly
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.