WindmillWWindmill
Powered by
ElectrumE
Windmill•2mo 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"
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.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Custom env variable
LeandroLLeandro / help
16mo ago
How to get resource/variable running locally via vscode ?
Neco | nokta.devNNeco | nokta.dev / help
13mo ago
pre-processor runnning on default tag despite the flow running in another worker tag
antonioalvesAantonioalves / help
2mo ago
Unable to trigger webhook via Google Push Pub/Sub
atpsynthesizerAatpsynthesizer / help
6mo ago