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 Multi-platform images with GitHub Actions #16

Closed gaby closed 1 year ago

gaby commented 1 year ago

Fixes #15

gaby commented 1 year ago

@lllllllillllllillll You have to go here https://github.com/lllllllillllllillll/DweebUI/actions and click "Enable Actions"

gaby commented 1 year ago

@lllllllillllllillll It may need some tweaking. Are you using something special to build the image locally?

gaby commented 1 year ago
Dockerfile:1
--------------------
   1 | >>> # syntax=docker/dockerfile:1
   2 |     
   3 |     # Comments are provided throughout this file to help you get started.
--------------------
ERROR: failed to solve: target stage release could not be found
Error: buildx failed with: ERROR: failed to solve: target stage release could not be found
lllllllillllllillll commented 1 year ago

@gaby

The dockerfile uses a node:alpine image:

ARG NODE_VERSION=20.0.0 FROM node:${NODE_VERSION}-alpine ENV NODE_ENV production

and the working build command was: docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 --tag=lllllllillllllillll/dweebui:v0.06-dev .

lllllllillllllillll commented 1 year ago

@gaby build hangs forever unless I remove the run commands from the dockerfile:

RUN --mount=type=bind,source=package.json,target=package.json \
    --mount=type=bind,source=package-lock.json,target=package-lock.json \
    --mount=type=cache,target=/root/.npm \
    npm ci --omit=dev
gaby commented 1 year ago

@lllllllillllllillll Let me do some research and get back to you

gaby commented 1 year ago

@lllllllillllllillll Found the issue, it's a 1 line fix in the CI file. Will be submitting another PR to address that and also fix the default Docker image. The 20.0.0-alpine tag hasn't been updated in 8 months