splunk / docker-splunk

Splunk Docker GitHub Repository
462 stars 253 forks source link

Install apt package in UF container? #514

Open DeviantEng opened 3 years ago

DeviantEng commented 3 years ago

Hi all, apologies as this is not a standard issue. Long story short I have a UF container running in an environment and need to install the snmp package so I can run a script that that does a snmpwalk for an input.

Is there an easy way to ensure the snmp package gets installed in this container, without creating a new image? I was hoping to rig up something using the SPLUNK_CMD ENV, but wanted to ask here first. Basically, I want to run this every time the container starts up: sudo apt update && sudo apt -y install snmp

Does this container have any provisions to help support a task like that?

Thanks!