lllllllillllllillll / DweebUI

DweebUI is a WebUI for managing your containers. Simple setup, a dynamically updating dashboard, and a multi-user permission system.
https://www.dweebui.com/
MIT License
801 stars 40 forks source link

Support for ARM64 in Dockerfile #15

Open kkazakov opened 1 year ago

kkazakov commented 1 year ago

Please, add more architectures, not only amd64.

lllllllillllllillll commented 1 year ago

I'm looking into it.

lllllllillllllillll commented 1 year ago

@kkazakov

I've updated v0.06-dev to be multi-platform, but it's untested:


services:
  dweebui:
    container_name: DweebUI
    image: lllllllillllllillll/dweebui:v0.06-dev
    restart: unless-stopped
    ports:
      - 8000:8000
    depends_on:
      - cache
    links:
      - cache
    volumes:
      - dweebui:/app
      - caddy:/app/caddyfiles
      - /var/run/docker.sock:/var/run/docker.sock
  cache:
    container_name: DweebCache
    image: redis:6.2-alpine
    restart: always
    command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
    volumes: 
      - cache:/data
  proxy:
    container_name: DweebProxy
    image: caddy:2.4.5-alpine
    depends_on:
      - dweebui
    restart: unless-stopped
    network_mode: host
    volumes:
      - caddy:/data
      - caddy:/config
      - caddy:/etc/caddy
volumes:
  dweebui:
  cache:
  caddy:
lllllllillllllillll commented 1 year ago

Updated v0.06-dev:

amd64 arm64 (v8) arm64/v7 arm64/v6

v0 06-dev

gaby commented 1 year ago

@lllllllillllllillll I'm going to make a PR to add support for building multi-platform images using Github Actions.

lllllllillllllillll commented 1 year ago

@kkazakov

Pasting your last comment in here and re-opening issue.

"I'm getting multitude of errors and the container keeps restarting:"

_Error: Cannot find module 'express' Require stack:

lllllllillllllillll commented 1 year ago

@kkazakov

I've updated the v0.06-dev image again.

Could you tell me what you get when you run this command on your Orange Pi docker info --format '{{ .OSType }}/{{ .Architecture }}'

kkazakov commented 1 year ago

It's actually on Raspberry PI 2 the latest issue.

docker info --format '{{ .OSType }}/{{ .Architecture }}' returns

linux/armv7l

and currently it's producing

wasp@DietPi:~/docker-scripts/dweebui$ docker-compose up --remove-orphans --force-recreate -d [+] Running 0/2 ⠹ dweebui Pulling 3.1s ⠹ cache Pulling 3.1s no matching manifest for linux/arm/v7 in the manifest list entries

steveiliop56 commented 11 months ago

I don't think you should add armv7 support. It's no longer used.

lllllllillllllillll commented 11 months ago

It seems like there are up-to-date node images that support arm64, amd64, armv6, and armv7: 20-alpine

I think the node image supports armv7, but that one of the modules I'm using does not.

steveiliop56 commented 11 months ago

There is no point in doing this. Everyone running docker on pis is using 64bit os. I would recommend only supporting arm64 and x86

lllllllillllllillll commented 11 months ago

Not specifically for the Raspberry Pis, but for broader device support in general. It's not something I'm going to put a lot of energy into at the moment, but I think I'll eventually need to support more architectures if I want to be able to offer it as an alternative to Portainer. I'd really like to get this running on my 1st gen Raspberry Pi as well.

steveiliop56 commented 11 months ago

Alright alright no problem.