I’ve entered the app ./launcher enter app and run the command
apt install net-tools
It no work.
I tend to leave the discourse setup as is but I need to look into recently increased server load (user demand uptick), and so assumed I needed to enter the app and run netstat.
Apparently it is not installed by default nor can I install it.
This is a fairly rookie question I know I’m missing something very obvious here. Maybe I don’t need to be in the app?
Discourse containers are built using the app.yml template, and any required packages must be installed during the image build process (i.e., when running ./launcher rebuild app). Packages cannot be installed interactively from within a running container.
As a result, common tools like net-tools (which provides netstat) are typically not included and cannot be easily added after the container is running.
If you need netstat inside the container, you’ll need to add it to your app.yml and then rebuild the container.
Well this is why I leaves things alone more or less in there. I’m not too familiar with that doing that at all only plugins and customisation of basic app.yml.
Is there a guide on meta that covers more expansive app.yml adventures?
When you say host do you mean the OS / linux level?
I have netstat on Ubuntu OS but I thought I needed it in the container (where all the magic happens right, with nginx etc) if I understand things correctly.