mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-07 15:32:33 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c7fe25f3d | ||
|
|
3b77fe8f27 | ||
|
|
466c6800d0 | ||
|
|
5cbdd069d3 | ||
|
|
dd37b587ff | ||
|
|
cbe50a7c82 | ||
|
|
d201069462 | ||
|
|
df9c2fe638 | ||
|
|
20b9c7c80a |
No files matched your search
+10
-7
@@ -10,14 +10,17 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt -y install \
|
&& apt -y install \
|
||||||
apache2 \
|
apache2 \
|
||||||
php5 \
|
php \
|
||||||
php5-mysql \
|
php-mysql \
|
||||||
php5-ldap \
|
php-ldap \
|
||||||
php5-xmlrpc \
|
php-xmlrpc \
|
||||||
php5-imap \
|
php-imap \
|
||||||
curl \
|
curl \
|
||||||
php5-curl \
|
php-curl \
|
||||||
php5-gd \
|
php-gd \
|
||||||
|
php-mbstring \
|
||||||
|
php-xml \
|
||||||
|
php-apcu-bc \
|
||||||
wget
|
wget
|
||||||
|
|
||||||
#Copie et execution du script pour l'installation et l'initialisation de GLPI
|
#Copie et execution du script pour l'installation et l'initialisation de GLPI
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ docker run --name glpi -p 80:80 -d diouxx/glpi
|
|||||||
docker run --name glpi --link yourdatabase:mysql -p 80:80 -d diouxx/glpi
|
docker run --name glpi --link yourdatabase:mysql -p 80:80 -d diouxx/glpi
|
||||||
```
|
```
|
||||||
|
|
||||||
## Deploy GLPI with database and persitance container data (Recommended)
|
## Deploy GLPI with database and persistance container data (Recommended)
|
||||||
|
|
||||||
For an usage on production environnement or daily usage, it's recommanded to use a data container for persistent data.
|
For an usage on production environnement or daily usage, it's recommanded to use a data container for persistent data.
|
||||||
|
|
||||||
|
|||||||
@@ -33,3 +33,4 @@ glpi:
|
|||||||
- mysql:mysql
|
- mysql:mysql
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- glpi-data
|
- glpi-data
|
||||||
|
restart: always
|
||||||
+10
-3
@@ -1,11 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERSION_GLPI=9.1
|
VERSION_GLPI=9.1.4
|
||||||
SRC_GLPI=https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tar.gz
|
SRC_GLPI=https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz
|
||||||
TAR_GLPI=glpi-${VERSION_GLPI}.tar.gz
|
TAR_GLPI=glpi-${VERSION_GLPI}.tgz
|
||||||
FOLDER_GLPI=glpi/
|
FOLDER_GLPI=glpi/
|
||||||
FOLDER_WEB=/var/www/html/
|
FOLDER_WEB=/var/www/html/
|
||||||
|
|
||||||
|
#check if TLS_REQCERT is present
|
||||||
|
if !(grep -q "TLS_REQCERT" /etc/ldap/ldap.conf)
|
||||||
|
then
|
||||||
|
echo "TLS_REQCERT isn't present"
|
||||||
|
echo -e "TLS_REQCERT\tnever" >> /etc/ldap/ldap.conf
|
||||||
|
fi
|
||||||
|
|
||||||
#Téléchargement et extraction des sources de GLPI
|
#Téléchargement et extraction des sources de GLPI
|
||||||
if [ "$(ls ${FOLDER_WEB}${FOLDER_GLPI})" ];
|
if [ "$(ls ${FOLDER_WEB}${FOLDER_GLPI})" ];
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in new issue
Block a user