Yet another Python Dependencies question #5116
-
Just starting to explore Windmill CE with local-hosted docker. My team is more on the infrastructure & devops side, with expertise in Python and Powershell. We're in an "enterprise" with an SSL-intercepting proxy (meaning, certificates are changed which causes issues) and an internal Artifactory environment to proxy things like pip packages. I've had some success customizing the worker image to install some Powershell and Python dependencies with a Dockerfile like: FROM ghcr.io/windmill-labs/windmill:main
##Debian
COPY cacerts.crt /usr/local/share/ca-certificates
RUN update-ca-certificates
##Python
COPY requirements.txt /tmp
RUN \
pip config --user set global.index-url https://artifactory.COMPANY.com/artifactory/api/pypi/pypi-virtual/simple && \
pip config --user set global.trusted-host COMPANY.com && \
pip install --no-cache-dir -r /tmp/requirements.txt
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
##Powershell
RUN \
pwsh -c "Register-PSRepository -Name Artifactory -SourceLocation https://artifactory.COMPANY.com/artifactory/api/nuget/powershell-virtual -InstallationPolicy Trusted" && \
pwsh -c "Unregister-PSRepository -Name PSGallery" && \
pwsh -c "Install-Module -Scope AllUsers -RequiredVersion 4.1.686 -Name AWS.Tools.Common" && \
pwsh -c "Install-Module -Scope AllUsers -RequiredVersion 4.1.686 -Name AWS.Tools.S3" && \
pwsh -c "Install-Module -Scope AllUsers -RequiredVersion 13.3.0.24145081 -Name VMware.VimAutomation.Common"
ENV POWERSHELL_TELEMETRY_OPTOUT=1 Three questions from my first experiences:
2. Importing python dependencies within the 3. Importing Powershell dependencies is case-sensitive where the language is not. Any advice on these subjects is appreciated, thanks! FWIW: I'm aware of the Discord, but it isn't allowed from our enterprise workstations (as I'm sure is the case at many big companies) and having discussions about code from my phone is cumbersome at best. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @jgard , for using private registries on python, we support it directly in the instance settings but it require EE unfortunately. For Powershell, that looks like an issue we could investigate. |
Beta Was this translation helpful? Give feedback.
Hi @jgard , for using private registries on python, we support it directly in the instance settings but it require EE unfortunately. For Powershell, that looks like an issue we could investigate.