ElectrumE
Windmill2d ago
2 replies
Electrum

Unable to install playwright (and other tools) in the default worker via helm env variable

I'm trying to install playwright and chrome within the default worker pool. I am doing so by adding this to my help chart:

workerGroups:
    - name: "default"
      controller: "Deployment"
      replicas: 2
      resources:
        requests:
          memory: "1Gi"
          cpu: "1"
        limits:
          memory: "4Gi"
          cpu: "2"
      extraEnv:
        - name: "INIT_SCRIPT"
          value: "apt-get update\napt-get install -y chromium\npip install playwright\nexport PATH=$PATH:/tmp/.local/bin\nplaywright install\nplaywright install-deps"
        - name: "WORKER_TAGS"
          value: "chromium"


However, I don't actually see it try to run this during creation.
Was this page helpful?