Git Product home page Git Product logo

glpi's Introduction

Stand With Ukraine

PHP Nginx

GLPI Logo

GLPI Containers

Manifest files for build and deploy the GLPI as Containers with Docker using docker-compose or Kubernetes.

In this versio we have deployment containers with:

  • php:8.3.8-fpm-alpine3.20;
  • nginx:1.27.0-alpine3.19-slim;
  • eftechcombr/glpi:php-fpm-10.0.16;
  • eftechcombr/glpi:nginx-10.0.16.

Credentials

username: glpi
password: glpi

Variables

docker-compose

./docker/_env ---> please rename to /docker/.env

kubernetes

./kubernetes/glpi-configmap.yaml
./kubernetes/glpi-secrets.yaml
./kubernetes/mariadb-configmap.yaml
./kubernetes/mariadb-secret.yaml 

About GLPI

GLPI stands for Gestionnaire Libre de Parc Informatique is a Free Asset and IT Management Software package, that provides ITIL Service Desk features, licenses tracking and software auditing.

https://github.com/glpi-project/glpi

For Courses e-Learning

https://www.eftech.com.br

For Support

https://www.eftech.com.br

[email protected]

License

license

glpi's People

Contributors

dependabot[bot] avatar eduardofraga avatar eduardofraga-gb avatar gecube avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

glpi's Issues

Need to check - the jobs error codes

Hi!

I am confused and feel like if Jobs are failing, the exit codes are successful, so k8s won't restart them.

Proofs:

Screenshot 2024-04-23 at 15 53 39 Screenshot 2024-04-23 at 15 53 34 Screenshot 2024-04-23 at 15 53 26 Screenshot 2024-04-23 at 15 53 21

Need to double check that if something is wrong, Jobs will exit with the proper exit code (!=0).

Permission Issue

I'm having an issue with permission on the deployment

image

Im think im missing something.

Another thing I'm want to confirm : Is glpi-job use on upgrade or either on the first deployment?

cronjob could not be applied

apiVersion: batch/v1
kind: Job
metadata:
  name: mariadb-timezone
  namespace: glpi
spec:
  template:
    spec:
      containers:
      - image: mariadb:10.6
        imagePullPolicy: IfNotPresent
        name: base
        command:
        - sh 
        - -c
        - "mysql -h $MARIADB_HOST -u root -p$MARIADB_ROOT_PASSWORD -e \"GRANT SELECT ON \`mysql\`.\`time_zone_name\` TO 'glpi'@'%'; FLUSH PRIVILEGES; FLUSH PRIVILEGES;\""
        envFrom:
        - secretRef:
            name: mariadb-glpi-secret
      restartPolicy: Never
  backoffLimit: 5
status: {}

this manifest yields this error:

$ kubectl apply -f mariadb-job.yaml --dry-run=client
error: error parsing mariadb-job.yaml: error converting YAML to JSON: yaml: line 16: found unknown escape character

I just cloned this repo, so it could not be an issue with kubectl.

$kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.4", GitCommit:"fa3d7990104d7c1f16943a67f11b154b71f6a132", GitTreeState:"clean", BuildDate:"2023-07-19T12:14:48Z", GoVersion:"go1.20.6", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.2", GitCommit:"7f6f68fdabc4df88cfea2dcf9a19b2b830f1e647", GitTreeState:"clean", BuildDate:"2023-05-17T14:13:28Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"linux/arm64"}

"Error: An error has occurred, but the trace of this error could not recorded because of a problem accessing the log file."

I am getting the error message

Error: An error has occurred, but the trace of this error could not recorded because of a problem accessing the log file.
Screenshot 2024-04-23 at 15 57 32

despite that verify dir Job worked well

Screenshot 2024-04-23 at 15 58 37

It helps to run script glpi-verify-dir.sh inside of php-fpm pod:

Screenshot 2024-04-23 at 15 59 37

And only then I can get the login page working:

Screenshot 2024-04-23 at 16 00 14

Also it would be nice to have a login password to this webpage described in README somewhere.

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.