DiouxX / docker-glpi

Project to deploy GLPI with docker
219 stars 185 forks source link

Image ARM #79

Open xfilho opened 1 year ago

xfilho commented 1 year ago

Please, create image with supported architectures: amd64 arm arm64

fam4r commented 1 year ago

62 related / duplicate.

zimbres commented 8 months ago

Try: https://github.com/zimbres/glpi-docker

ozturkinc commented 5 months ago

I had this very same problem when I was trying to get it up and running on my Macbook Pro M1. It seems Maria DB already supports arm. It is the the glpi container that is the problem. I have managed to get around this using below small addition to docker-compose.yml file (not sure what is the equivalent for docker run):

version: "3.2"

services:
#MariaDB Container
  mariadb:
    image: mariadb:10.7
    container_name: mariadb
    hostname: mariadb
    volumes:
      - /var/lib/mysql:/var/lib/mysql
    env_file:
      - ./mariadb.env
    restart: always

#GLPI Container
  glpi:
    platform: linux/x86_64
    image: diouxx/glpi
    container_name : glpi
    hostname: glpi
    ports:
      - "80:80"
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /var/www/html/glpi/:/var/www/html/glpi
    environment:
      - TIMEZONE=Europe/Brussels
    restart: always

You need to add "platform: linux/x86_64". Once this is done, my containers went up without a problem and I managed to run GLPI.