Comments (5)
I believe PSDepend and Powershell 6.1 should be part of the powershell azure functions docker image. Here is a way to work with the example PSCoreApp and install dependencies:
# Install powershell project dependencies
FROM mcr.microsoft.com/powershell:6.1.0-debian-8 as builder
WORKDIR /tmp
COPY ./requirements.psd1 .
RUN pwsh -c "Install-Module -Name PSDepend -Scope CurrentUser -Force" \
&& pwsh -c "Set-Location . ; Invoke-PSDepend -Force"
FROM mcr.microsoft.com/azure-functions/powershell:2.0
WORKDIR $AzureWebJobsScriptRoot
COPY --from=builder /tmp/Modules/ /azure-functions-host/workers/powershell/Modules/
COPY . .
from azure-functions-powershell-worker.
So this would be to have the container do the installing of the Modules and allow the user to specify them in the requirements.psd1
rather than having to bundle their modules themselves?
from azure-functions-powershell-worker.
from azure-functions-powershell-worker.
As you guys can see in the python and Nodejs docker image, at least one package management is available (pip and npm, respectively). They are not doing the dependencies installation as far as I know, but makes everything easy to start if you have them available.
If none of this makes sense, do put a dockerfile in the example folder so that even people without powershell installed in their local machine can try it out.
About not being opinionated, the moment you chose to have the worker and the example using PSDepend that went out the window, donβt you think? Not that I mind because I think PSDepend is quite useful and simple to use.
Also, keep in mind that some of us like me and my company would be using the Azure Functions with container directly so it would be no pack before deploy.
from azure-functions-powershell-worker.
from azure-functions-powershell-worker.
Related Issues (20)
- Update PowerShell 7.0 worker to latest System.Data.SqlClient HOT 1
- Known regression: Durable Functions Activity input fails to deserialize when the input is an array
- [Linux Consumption] [Portal] Portal shows Linux Consumption as an option for Powershell 7.4 it is not supported HOT 3
- [Linux Elastic Premium] Kudu SSH appears to fail for powershell7.4 HOT 3
- Linux (Consumption) not supported in PowerShell 7.4 yet HOT 3
- Feature Request: Recursive Directory Searching for function.json HOT 1
- Az-Accounts: Issue re-emerging.. HOT 4
- Support OpenTelemetry in the PowerShell worker
- Profile.ps1 not instrumented HOT 1
- Diagram of module interaction w/ worker HOT 1
- Update PowerShell SDK for 7.4 to 7.4.2
- Update PowerShell SDK for 7.2 to 7.2.19 HOT 1
- Document OpenTelemetry support HOT 1
- Workaround for issue with hosting Durable Functions app on preview Flex Consumption plan
- Convert pipelines to 1ES
- Fix OTel test concurrency issue
- Backport 1ES pipelines to all release branches HOT 1
- Add back E2E tests for 1ES official pipeline
- Fix failing public pipeline
- Migrate the pipeline changes to host v3 branch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-powershell-worker.