diouxx / docker-glpi Goto Github PK
View Code? Open in Web Editor NEWProject to deploy GLPI with docker
Project to deploy GLPI with docker
Please update dockerfile to support glpi version 9.5.0
glpi/docker-glpi/mariadb.env: no such file or directory
Deploy GLPI with database and persitance container data (Recommended)
persitance -> persistance
i've tried it on kubernetes and everything is ok but i can't send mails from notifications panel. the only way i found to do that is to install manually postfix and configure it in order to be able to send notifications. is there another way or i'm right with postfix ?
Hello there!
What should be the procedure to install and configure a plugin using this container?
Thanks
Enable ssl module on apache to access GLPI on HTTPS. For example with Let's Encrypt.
Hi there,
could you rebuild the docker image, so the latest glpi 10.0.0-rc1 is avaiable?
I have set environment variable as follows:
- VERSION_GLPI=10.0.0-rc1
,but GLPI is still on 10.0.0-dev in my instance.
Thank you very much
Hi ! I miss that the cron service enabled by default. It is a service required by the pupular fusion inventory plugin.
So I think that the cron service must be enabled by default and add the following line should be added in /etc/crontab :
I just try to update our GLPI with the newest instance but it'll don't power up.
I get this error:
/opt/glpi-start.sh: line 9: /etc/php/7.3/apache2/conf.d/timezone.ini: No such file or directory
/opt/glpi-start.sh: line 10: /etc/php/7.3/cli/conf.d/timezone.ini: No such file or directory
grep: /etc/ldap/ldap.conf: No such file or directory
TLS_REQCERT isn't present
/opt/glpi-start.sh: line 22: /etc/ldap/ldap.conf: No such file or directory
GLPI is already installed
Starting periodic command scheduler: cron.
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
Restarting Apache httpd web server: apache2.
Stopping Apache httpd web server: apache2.
What is the username and password?
1st - I do the pull
But .... it fails
admin@xsmlsaco17:/var$ docker pull diouxx/glpi
Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=diouxx%2Fglpi&tag=latest: dial unix /var/run/docker.sock: connect: permission denied
any idea ?
Hi,
Would it be possible to include SNMP extension in your image? This is necessary for some plugins:
https://github.com/InfotelGLPI/printercounters/wiki/Notice-d%E2%80%99utilisation
Thx
Hi DiouxX,
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.
Hello,
I would like to suggest a new feature. It would be nice to be able to add an environment variable with a SSL public and private key. The keys would be part of a volume that would be attached to the container. Adding this feature would protect the credentials for the website as they are transmitted to the server. To improve the security of the site, Environment variables for SSL protocol and SSL cipher suites would be nice as well.
Make a forced apt-get upgrade in you start script is not a good idea.
You will have weird beahaviour with this and container start will be really slow.
Hello,
Is a version planned for raspberry pi?
Thank you in advance.
Note: This only affects PHP mode. SMTP, SMTP+TLS and SMTP+SSL appear to be unaffected.
When trying to send a test email you get the following error in the WebUI:
Error
Failed to send test email to administrator
Having troubles setting up an advanced GLPI module?
We can help you solve them. Sign up for support on https://services.glpi-network.com.
Looking around in the logs gives you this error:
==> /var/log/apache2/error.log <==
sh: 1: /usr/sbin/sendmail: not found
Ability to change timezone for time used by fusioninevntory plugin
Running lastest Debian version when ruuning container.
Add upgrade command on Docker file
RUN apt update \
&& apt -y upgrade \
&& apt -y install \
启动后会容器更新glpi,由于网络限制导致无法下载最新glpi,希望有离线版本使用
When using docker-compose, connecting to GPLI to do the install, cannot connect to MySQL, error giving:
The server requested authentication method unknown to the client
The current default version is 8.0, but if I modify the docker-compose.yml
file to set a specific version, like:
image: mysql:5.7
It works fine.
Hello
Trying to docker-compose docker/glpi (latest) ;-)
glpi | --2018-01-12 15:32:43-- https://github.com/glpi-project/glpi/releases/download//glpi-.tgz
glpi | Resolving github.com (github.com)... failed: Temporary failure in name resolution.
glpi | wget: unable to resolve host address 'github.com
This is because, "here", our DNS policy is very strict so that google dns are not (necessearly) reachable...
Maybe it would be sufficient to let dhcp or local dns policy do the job of configuring the DNS resolving mechanism ... (and thus finding github.com)
??
Hi there!
This used to work fine, but in a newer build I found problems to get to IMAP and retrieve emails
I had to lower the openssl security level in order to make it work
https://askubuntu.com/questions/1233186/ubuntu-20-04-how-to-set-lower-ssl-security-level
For a running instance I basically changed last line in /etc/ssl/openssl.cnf like this:
CipherString = DEFAULT@SECLEVEL=1
And then restart apache:
apache2ctl restart
Hello, can you please provide an ARMv8 version for the image?
Thanks
docker run -it --name glpi -p 80:80 diouxx/glpi
The command above is failing because it's trying to download GLPI from the URL
https://github.com/glpi-project/glpi/releases/download/9.3.0/glpi-9.3.0.tgz
instead of
https://github.com/glpi-project/glpi/releases/download/9.3.0/glpi-9.3.tgz
I would like an option to define the apache root folder by environment variable. This will enable us to insert the glpi as a subfolder on a website
This is just a question.
Is the new version GLPI 10 supported for this image? Which should be the configuration? Thanks in advance.
We can use an external database?
We already have GLPI installed (not in docker) but we want to migrate to docker and use the same database.
Dear DiouxX,
first of all, great job.
I've deployed without problems your GLPI in a server without proxy configurations, but currently I'm configuring in Ubuntu 20.04 with proxy configurations. The docker is configured to use the proxy, I've deployed the docker_compose without issues for the mariadb, but the glpi container not works because the wget get error, not have access to the network. How can I add the configuration proxy to the wget in the container, could you help me, please?
Should I to modify the glpi_start.sh script or add some enviroment variable adding the proxy?
Thank you in advance
Best regards
Error when i configure LDAPS user authentification.
Deploy GLPI without database
What is the login, password, default hostname to connect to in glpi?
I installed glpi but I can not login and password
I'm running Centos Atomic with cockpit installed to manage containers.
How do i setup the docker-glpi with cockcpit?
Hello, I'm need a little help here.
I'm trying to setup GLPI + Mysql DB, but I'm not able to do it.
List below are the docker commands.
docker run --name glpi --link mysql-glpi:mysql -e "TIMEZONE=America/Sao_Paulo" -v /docker/glpi:/var/www/html/glpi -p 81:80 -d diouxx/glpi
docker run --name='mysql-glpi' -d -e MYSQL_DATABASE=glpi -e MYSQL_ROOT_PASSWORD=Password -v /docker/mysql/:/var/lib/mysql mysql
After run the container, I open glpi on web browser, but I got stuck at DB settings page.
Could anybody give me a light?
Thanks
Hi,
When I try to deploy the docker found this:
docker logs -f helpdesk_glpi_apps_1
basename: missing operand
Try 'basename --help' for more information.
TLS_REQCERT isn't present
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
tar (child): /var/www/html/: Cannot read: Is a directory
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove '/var/www/html/plugins': Device or resource busy
rm: cannot remove '/var/www/html/glpi': Device or resource busy
Starting periodic command scheduler: cron.
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.XX.XX.9. Set the 'ServerName' directive globally to suppress this message
Restarting Apache httpd web server: apache2.
Stopping Apache httpd web server: apache2.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.XX.XX.9. Set the 'ServerName' directive globally to suppress this message
Docker yaml:
version: "3.2"
services:
#MariaDB Container
glpi_db:
image: mariadb:10.7
hostname: glpi_db
env_file: /DockerVolumes/helpdesk/glpi-db.env
labels:
conteiner.description: "mariadb 10.7 DB"
volumes:
- /DockerVolumes/helpdesk/glpi-db/var/lib/mysql:/var/lib/mysql
- /DockerVolumes/helpdesk/glpi-db/etc/mysql/mariadb.conf.d/51-mysqld.cnf:/etc/mysql/mariadb.conf.d/51-mysqld.cnf:ro
restart: always
networks:
- containers_b_private
#GLPI Container
glpi_apps:
image: diouxx/glpi
hostname: glpi_apps
env_file: /DockerVolumes/helpdesk/glpi-apps.env
depends_on:
- glpi_db
ports:
- 10105:80
volumes:
- /etc/localtime:/etc/localtime:ro
- /DockerVolumes/helpdesk/glpi-apps/var/www/html/glpi:/var/www/html/glpi:rw
- /DockerVolumes/helpdesk/glpi-apps/var/www/html/plugins:/var/www/html/plugins:rw
restart: always
networks:
- containers_a_public
- containers_b_private
networks:
containers_a_public :
external: true
containers_b_private :
external: true
Environment files:
cat <<EOF > /DockerVolumes/helpdesk/glpi-db.env
MARIADB_ROOT_PASSWORD=ROOT_PASSSS
MARIADB_DATABASE=glpidb
MARIADB_USER=glpi_user
MARIADB_PASSWORD=XXXXXXXX
TZ=America/Bogota
EOF
cat <<EOF > /DockerVolumes/helpdesk/glpi-apps.env
GLPI_LANG=es_CO
MARIADB_HOST=glpi_db
MARIADB_PORT=3306
MARIADB_DATABASE=glpidb
MARIADB_USER=glpi_user
MARIADB_PASSWORD=XXXXXXXXX
VERSION_GLPI=10.0.0
PLUGINS="all"
TIMEZONE=America/Bogota
EOF
Please help
Hello,
Will work to update to v10 ?
Because, I would like make some tests with beta version before update to production
Thanks
glpi-start.sh
script fails for VERSION_GLPI
less than 9.1.1 because the source archive extension for such releases is .tar.gz
instead of .tgz
(expected by the script).
Hi,
When the version 9.5.1 will be releases for download?
Thx.
i have been trying to set up ticket creation via email and i have not been able to get it, i already created an app password on my gmail account and i am using the following receiver setup:
in the gmail security panel it tells me that there was a connection attempt but it does not receive anything, in glpi when checking if there are new emails it sends me the following message:
My docker-compose file is the next:
I'm using an external network cause i'm using Nginx Proxy Manager.
I commented the volume
Cause i'm running docker in rocky linux and is the only way that the container runs.
Thanks in advance.
Hi all,
Just gave a try to the tool using "Deploy with persistence data" scenario. Installation went smooth and I got immediate access to the installation wizard. When asked to connect to the database, I enter:
Did anyone else stumble of this issue at first launch?
Thanks in advance for any help!
Edit: I alternatively get "No route to host" message...
How can we add https for glpi as default installation? I would like to have https for glpi and run behind nginx proxy
Good Morning Diouxx
I noticed today that the latest Glpi image you provide has the version number 9.4.6 whereas the latest stable GLPI Official version is 9.4.5 is it normal ?
So I don't know if it is related but I deployed FusionInventory plugin and when I want to execute the tasksheduler task (in automated tasks) , I have a blank page and this error :
Fatal error: Cannot redeclare plugin_fusioninventory_footer() (previously declared in /var/www/html/glpi/plugins/fusioninventory/setup.php:596) in /var/www/html/glpi/plugins/Fusioninventory/setup.php on line 596
I already deleted (remove fusionInventory folder) and re-install the fusionInventory plugin but nothing changed.
For information I am on Mac OS Catalina . I used your exact docker-compose.yml file without volumes for time
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
Do you have any idea where does it come from please ?
Thank you in advance.
Best regards
CAS extension test | CAS extension is not present
When i use install.php install glpi, the extension CAS is not present.
Our security team has identified that our GLPI server using the diouxx/glpi image has the vulnerability identified in CVE-2021-40438. This has been fixed in the latest version of Apache in Debian Buster. Will you be pushing a new image with updated packages in the near future?
Hi
Why exist in docker-compose:
glpi-data:
image: busybox
container_name: glpi-data
volumes:
- /var/www/html/glpi:/var/www/html/glpi
insted of... remove glpi-data and mount directly /var/www/html/glpi:/var/www/html/glpi in GLPI Custom image.
¿Why use busybox? Thanks and regards
The startup script runs curl
in several places causing this container to mutate on launch based on whatever is contained at those endpoints. Those actions should only be performed during the docker build step.
https://glpi-install.readthedocs.io/en/latest/command-line.html#cdline-install
Since GLPI 9.2.2, command line tools are provided as supported scripts and are available from the scripts directory of the archive. On previous versions, those scripts were present in the tools directory that is not official and therefore not in the release archive.
Install
A PHP command line installation script is provided in the GLPI archive (scripts/cliinstall.php).
You have to specify at least a database name and an user:
It is possible to specifiy some variables calling the script:
--host host name (localhost per default),
--db database name,
--user database user name,
--pass database user’s pasword,
--lang language code to use (fr_FR as example). Will be set to en_GB per default,
--tests create tests configuration file,
--force do not check if GLPI is already installed and drop what would exists,
--help displays command help.
Update
An update script is provided as well (scripts/cliupdate.php).
Possible options for this command are:
--lang language code to use (fr_FR as example). Will be set to en_GB per default,
--help displays command help.
--config-dir set configuration file path to use,
--force force update, usefull when GLPI version does not change (mainly when working on it ;)),
--dev required to use a development version. Use it with caution…
This is a good way to create or upgrade.
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.