Author SHA1 Message Date
DiouxX de9d8b71c1 Fix issue vhost apache regarding GLPI version 2023-04-28 11:38:43 +02:00
DiouxX a0382c3c17 Merge pull request #86 from p1ne/master
Make apache config compatible with 10.0.7
2023-04-27 09:06:34 +02:00
p1ne 5e45330a44 Make apache config compatible with 10.0.7
See https://glpi-install.readthedocs.io/en/develop/prerequisites.html#apache-configuration for updated apache format
2023-04-25 17:12:02 +03:00
DiouxX 29142fb886 Add Github actions to Build and Push 2023-02-24 18:12:54 +01:00
DiouxX 6fa1854e7d Update components 2023-01-22 10:54:46 +01:00
DiouxX 9f3a81bbd9 Merge pull request #77 from paspo/redis
added redis package
2022-11-10 14:57:29 +01:00
Paolo Asperti ecf3657deb added redis package 2022-11-09 10:30:48 +01:00
DiouxX 845cc6516a Add mariadb.env 2022-04-08 16:17:59 +02:00
DiouxX 426fe39720 Replace mysql.env by mariadb.env 2022-04-08 16:17:06 +02:00
DiouxX e1cc6bcac5 Merge pull request #55 from DiouxX/revert-51-master
Revert "Extend the GLPI installed check"
2022-03-07 15:30:18 +01:00
5 changed files with 52 additions and 6 deletions

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
name: Build & Publish Docker Image
on:
push:
branches:
- master
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set output
id: vars
run: echo ::set-output name=tag::$
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: diouxx/glpi:latest
+2 -1
View File
@@ -1,5 +1,5 @@
#On choisit une debian #On choisit une debian
FROM debian:11.1 FROM debian:11.6
LABEL org.opencontainers.image.authors="github@diouxx.be" LABEL org.opencontainers.image.authors="github@diouxx.be"
@@ -26,6 +26,7 @@ php-cas \
php7.4-intl \ php7.4-intl \
php7.4-zip \ php7.4-zip \
php7.4-bz2 \ php7.4-bz2 \
php7.4-redis \
cron \ cron \
wget \ wget \
ca-certificates \ ca-certificates \
+19 -1
View File
@@ -33,8 +33,26 @@ else
chown -R www-data:www-data ${FOLDER_WEB}${FOLDER_GLPI} chown -R www-data:www-data ${FOLDER_WEB}${FOLDER_GLPI}
fi fi
#Modification du vhost par défaut #Adapt the Apache server according to the version of GLPI installed
## Extract local version installed
LOCAL_GLPI_VERSION=$(ls ${FOLDER_WEB}/${FOLDER_GLPI}/version)
## Extract major version number
LOCAL_GLPI_MAJOR_VERSION=$(echo $LOCAL_GLPI_VERSION | cut -d. -f1)
## Remove dots from version string
LOCAL_GLPI_VERSION_NUM=${LOCAL_GLPI_VERSION//./}
## Target value is GLPI 1.0.7
TARGET_GLPI_VERSION="10.0.7"
TARGET_GLPI_VERSION_NUM=${TARGET_GLPI_VERSION//./}
TARGET_GLPI_MAJOR_VERSION=$(echo $TARGET_GLPI_VERSION | cut -d. -f1)
# Compare the numeric value of the version number to the target number
if [[ $LOCAL_GLPI_VERSION_NUM -lt $TARGET_GLPI_VERSION_NUM || $LOCAL_GLPI_MAJOR_VERSION -lt $TARGET_GLPI_MAJOR_VERSION ]]; then
echo -e "<VirtualHost *:80>\n\tDocumentRoot /var/www/html/glpi\n\n\t<Directory /var/www/html/glpi>\n\t\tAllowOverride All\n\t\tOrder Allow,Deny\n\t\tAllow from all\n\t</Directory>\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n</VirtualHost>" > /etc/apache2/sites-available/000-default.conf echo -e "<VirtualHost *:80>\n\tDocumentRoot /var/www/html/glpi\n\n\t<Directory /var/www/html/glpi>\n\t\tAllowOverride All\n\t\tOrder Allow,Deny\n\t\tAllow from all\n\t</Directory>\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n</VirtualHost>" > /etc/apache2/sites-available/000-default.conf
else
set +H
echo -e "<VirtualHost *:80>\n\tDocumentRoot /var/www/html/glpi/public\n\n\t<Directory /var/www/html/glpi/public>\n\t\tRequire all granted\n\t\tRewriteEngine On\n\t\tRewriteCond %{REQUEST_FILENAME} !-f\n\t\n\t\tRewriteRule ^(.*)$ index.php [QSA,L]\n\t</Directory>\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n</VirtualHost>" > /etc/apache2/sites-available/000-default.conf
fi
#Add scheduled task by cron and enable #Add scheduled task by cron and enable
echo "*/2 * * * * www-data /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" >> /etc/cron.d/glpi echo "*/2 * * * * www-data /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" >> /etc/cron.d/glpi
+4
View File
@@ -0,0 +1,4 @@
MARIADB_ROOT_PASSWORD=diouxx
MARIADB_DATABASE=glpidb
MARIADB_USER=glpi_user
MARIADB_PASSWORD=glpi
-4
View File
@@ -1,4 +0,0 @@
MYSQL_ROOT_PASSWORD=diouxx
MYSQL_DATABASE=glpidb
MYSQL_USER=glpi_user
MYSQL_PASSWORD=glpi