Giter VIP home page Giter VIP logo

docker-glpi's People

Contributors

angy91m avatar diouxx avatar hirenshah avatar levihb avatar monstermichl avatar oboudry-mvp avatar olivierguilloux avatar p1ne avatar paspo avatar pcortellezzi avatar petersonbasso avatar psychoz971 avatar sylvainrolland avatar tchello-slackware avatar toumash avatar vladkvl13 avatar

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  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  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  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  avatar  avatar  avatar

docker-glpi's Issues

[SMTP not working] postfix install in dockerfile ?

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 ?

https access

Enable ssl module on apache to access GLPI on HTTPS. For example with Let's Encrypt.

GLPI 10.0.0-rc1 - rebuild docker image

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

Missed cron service enabled by default

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 :

          • /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null

After update the GLPI won't start

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.

Error during the Pull / Linux / Debian

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 ?

Feature Request: Add Support for TLS Certificates

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.

Discussion : apt-get upgrade

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.

  • You already use debian:latest in your DockerFile

d8ff9bd

I can't unzip files on container

Hi guys, I can't unzip the file "fusioninventory-9.5+3.0.tar.bz2" in the directory /var/www/html/glpi/plugins/ with the tar command nor with the zip command, what can we do to overcome this problem? Grateful

image

Sendmail not found

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

Change timezone

Ability to change timezone for time used by fusioninevntory plugin

Last update system

Running lastest Debian version when ruuning container.

Add upgrade command on Docker file

RUN apt update \
&& apt -y upgrade \
&& apt -y install \

timezone

I am having issues with timezone. Any ideas

image

Doesn't work with recent version of MySQL (8.0+)

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.ymlfile to set a specific version, like:

image: mysql:5.7

It works fine.

Resolving github.com (github.com)... failed: Temporary failure in name resolution. glpi

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)

??

ARM image

Hello, can you please provide an ARMv8 version for the image?
Thanks

Add option to set apache root

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

support for GLPI 10?

This is just a question.
Is the new version GLPI 10 supported for this image? Which should be the configuration? Thanks in advance.

External database

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.

How to apply proxy configuration to be able wget works

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

What is the glpi password?

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

Can't setup Mysql DB

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

Deploy error on docker

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

V10 for test

Hello,

Will work to update to v10 ?

Because, I would like make some tests with beta version before update to production

Thanks

How to configure an email receiver?

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:

imagen

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:

imagen

My docker-compose file is the next:

imagen

I'm using an external network cause i'm using Nginx Proxy Manager.

I commented the volume

  • /etc/timezone:/etc/timezone:ro

Cause i'm running docker in rocky linux and is the only way that the container runs.

Thanks in advance.

Cannot connect to database server

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:

  • SQL server = mariadb (hostname)
  • SQL user = glpi_user
  • SQL password = glpi
    as given by the .env file. Then get a "php_network_getaddresses: getaddrinfo failed: Name or service not known " error... Both app and database containers look up and running fine.

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...

Https support ?

How can we add https for glpi as default installation? I would like to have https for glpi and run behind nginx proxy

Image Version 9.4.6

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 is not present

CAS extension test | CAS extension is not present

When i use install.php install glpi, the extension CAS is not present.

Apache vulnerability - CVE-2021-40438

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?

Busybox container its necesary?

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

Runtime mutation bug

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.

Please upgrade to support command line installation.

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:

php scripts/cliinstall.php --db=dbglpi --user=userglpi

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.

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.