mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-05 06:52:32 -05:00
Merge pull request #5 from sylvainrolland/master
add latest release for GLPI_VERSION
This commit is contained in:
commit
5d78f773c3
2 files changed
+14
-3
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
[](http://microbadger.com/images/diouxx/glpi "Get your own version badge on microbadger.com") [](http://microbadger.com/images/diouxx/glpi "Get your own image badge on microbadger.com")
|
||||
|
||||
Install and run an GLPI instance with docker
|
||||
Install and run an GLPI instance with docker.
|
||||
|
||||
## Deploy GLPI without database
|
||||
```sh
|
||||
@@ -32,6 +32,14 @@ docker run --name glpi --hostname glpi --link mysql:mysql --volumes-from glpi-da
|
||||
|
||||
Enjoy :)
|
||||
|
||||
## Deploy a specific release of GLPI
|
||||
Default, docker run will use the latest release of GLPI.
|
||||
For an usage on production environnement, it's recommanded to use the latest release.
|
||||
Here an example for release 9.1.6 :
|
||||
```sh
|
||||
docker run --name glpi --hostname glpi --link mysql:mysql --volumes-from glpi-data -p 80:80 --env "VERSION_GLPI=9.1.6" -d diouxx/glpi
|
||||
```
|
||||
|
||||
## Deploy with docker-compose
|
||||
|
||||
To deploy with docker compose, you use *docker-compose.yml* and *mysql.env* file.
|
||||
|
||||
+5
-2
@@ -1,7 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION_GLPI=9.1.4
|
||||
SRC_GLPI=https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz
|
||||
#Controle du choix de version ou prise de la latest
|
||||
[[ ! "$VERSION_GLPI" ]] \
|
||||
&& VERSION_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep tag_name | cut -d '"' -f 4)
|
||||
|
||||
SRC_GLPI="https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz"
|
||||
TAR_GLPI=glpi-${VERSION_GLPI}.tgz
|
||||
FOLDER_GLPI=glpi/
|
||||
FOLDER_WEB=/var/www/html/
|
||||
|
||||
Reference in new issue
Block a user