Comments (2)
I am also encountering the same issue. The dockerfile image I am using is: microsoft/azure-functions-python3.6:v2.0.11961-alpha
from azure-functions-docker-python-sample.
I made it work.
You first need to update the host.json to:
{
"version": "2.0",
"healthMonitor": {
"enabled": true,
"healthCheckInterval": "00:00:10",
"healthCheckWindow": "00:02:00",
"healthCheckThreshold": 6,
"counterThreshold": 0.80
},
"functionTimeout": "00:05:00",
"logging": {
"fileLoggingMode": "debugOnly"
},
"extensions": {
"http": {
"routePrefix": "api",
"maxConcurrentRequests": 5,
"maxOutstandingRequests": 30
},
"queues": {
"visibilityTimeout": "00:00:10"
},
"eventHubs": {
"batchCheckpointFrequency": 1,
"eventProcessorOptions": {
"maxBatchSize": 1000,
"prefetchCount": 1000
}
}
},
"swagger": {
"enabled": true
}
}
This is my Dockerfile:
FROM microsoft/azure-functions-python3.6:2.0.12121
ENV host:logger:consoleLoggingMode=always
COPY . /home/site/wwwroot
RUN cd /home/site/wwwroot && pip install -r requirements.txt
The I issued docker build and pushed the image to an azure registry.
Then using the portal add a Function App of type Linux Preview Docker (the az commands did not work for me however the deployment via portal). For the container image choose the one previously pushed.
Finally issue these 2 commands that configure parameters of the app:
storageConnectionString=$(az storage account show-connection-string --resource-group XXXX --name YYYYYY --query connectionString --output tsv)
az functionapp config appsettings set --name ZZZZZZ --resource-group XXXXX --settings AzureWebJobsDashboard=$storageConnectionString AzureWebJobsStorage=$storageConnectionString
from azure-functions-docker-python-sample.
Related Issues (12)
- Errors w/ Linux binaries HOT 2
- HttpTrigger local func start gives the following error HOT 2
- HttpTrigger Local Function Returns 406 in the Browser HOT 1
- Create dev branch HOT 1
- HTTP triggered python functions with 401 unauthorized errors. HOT 1
- Page is ut, but a call to the API gives error code 500 HOT 1
- 404 error on HttpTrigger HOT 1
- docker image error HOT 4
- This repo is missing important files
- Provide instructions on how to set up the connection strings used by triggers HOT 1
- Dockerfile error
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-docker-python-sample.