How can i add additional apt packages in ghcr.io/dask/dask-gateway:2023.1.1 worker images

Need help to install addition apt package.
Tried workerPlugin but it says Permission Denied for apt-get update.

Kindly help

Hi @mohitbansal-gep, welcome to Dask forum!

Could you tell us a bit more about your context? Which kind of deployment are you using (Kubernetes, Cloudprovider, anything else)? What is the code you’ve tested so far?

Installing apt package usually needs root permission on the machine you’re trying to do it, so it’s not as easy as pip or conda.

Hi @guillaumeeb , Thanks for the reply i am using Kubernetes and trying to deploy apt package via workerplugin, and as you said it requires root permission. So as a work around i have extended the Worker docker image to inclue the apt packages.

Well, I would say this is not a workaround, but the correct way to go!

1 Like