RocketDerp / lemmy_helper

Lemmy admin helper webapp for server operators
Other
6 stars 2 forks source link

Docker image is over 1GB #9

Open wereii opened 1 year ago

wereii commented 1 year ago

for a rather simple (run a query, show results) tool this is pretty rough

Optimally, only the build result (dist/) should be exported, without node_modules etc

RocketDerp commented 1 year ago

Thank you for reporting. feel free to share changes right here in the issue comments. I will test and try to fix it this weekend.

XtremeOwnageDotCom commented 1 year ago

@RocketDerp base your image off of the alpine tags from node.

https://hub.docker.com/_/node/

ie, 20-alpine

Alpine is a very lightweight OS, generally only 5-10M in size, and should cut out a bit of excess.

RocketDerp commented 1 year ago

for a rather simple (run a query, show results) tool this is pretty rough

I'm debating if the project serves much beyond my original purpose, which was part of my campaign to get pg_stat_statements on the big Lemmy instances that were showing all signs of having major PostgreSQL query problems. A major problematic SQL statement was identified by pg_stat_statements and now fixed in Lemmy 0.18.1 which is released.

I started with SvelteKit - and I was keeping an eye on https://github.com/ando818/lemmy-ui-svelte - but it seems to have stalled.

The Lemmy developers have also opened an issue in recent days to rework the SQL INSERT triggers to solve that performance issue... and Prometheus is now an interface for exposing some of the Rust internals....

Maybe this project is obsolete at this point?

XtremeOwnageDotCom commented 1 year ago

Maybe this project is obsolete at this point?

Until the lemmy devs decide to add in some monitoring/analytics... I see a good use for it.

Although, I would also agree with @wereii and say it is a pretty "fat" container, given the use-case. Although, a good chunk of that is due to NPM/Node... and especially packages with massive dependency chains.