hhmx.de

born2chill

born2chill (@b2c@wien.rocks)

Föderation EN So 25.08.2024 18:50:39

@renchap@oisaur.com @renchap@mastodon.social : Took another look at the chart, and I have a quick question. With the hook "assetsPrecompile" I can disable the JS asset precompilation job I'd recon?

This would help us, since we run with self-built images that deliver all JS already compiled, since we apply some code customizations ourselves and ship our own images.

However, in e.g. github.com/mastodon/chart/blob the assets get mounted, and there is no check for "assetsPrecompile". (Why do the sidekiqs even have the assets mounted btw?).

This would leave us with an empty assets folder, since we have the assets already compiled in our pod, and the mountpoint would be empty.

We also can't compile the assets at runtime since we run rootless with random UIDs on Openshift, so we would need a way for the chart to just ignore the whole asset part of the chart completely.

Can I configure the chart somehow to do that, or is this not possible?

CC: @vmstan

Michael Stanclift

Michael Stanclift (@vmstan@vmst.io)

Föderation EN So 25.08.2024 18:56:30

@b2c @renchap@oisaur.com @renchap@mastodon.social the 4.3 Docker images don’t have the ability to do an asset recompile because Node has been removed. If you have something that requires it you’ll need to roll your own image ahead of time.

Renaud Chaput

Renaud Chaput (@renchap@oisaur.com)

Föderation EN So 25.08.2024 23:08:30

@b2c This hook is legacy and I am not sure why its there. It is not needed with our 4.2 & 4.3 images, they already contain pre-compiled assets. You can set `hooks/assetsPrecompile.enabled: false`, and if there is an S3 backend configured, no volumes will be created.

@vmstan

born2chill

born2chill (@b2c@wien.rocks)

Föderation EN Mo 26.08.2024 13:47:20

@renchap @vmstan

Ok, thanks again for your insights.

My exact problem however is:
- I have no S3, but network storage (NFS)
- therefore I need the "system" volume
- however, I don't want the "assets" volume

I can't see how I can achieve that with the current chart. It's either "assets"+"system", or no storage at all.

Renaud Chaput

Renaud Chaput (@renchap@oisaur.com)

Föderation EN Mo 26.08.2024 13:49:59

@b2c Yes, the current chart does not support it :(
I dont like that both of those volumes are tied to S3. If you want to improve this and open a PR, we will definitely consider it!

Pinging @timetinytim as he is maintaining the chart now.

@vmstan