Skip to content

Commit

Permalink
Update functions binding runtime nuget package and update docker imag…
Browse files Browse the repository at this point in the history
…es for functions samples (#410)

* Update webjobs nuget and update SDK ProductInfo to new namespace
* Update functions docker files
* Update deployment for E2E tests to set debug logs for functions
  • Loading branch information
ancaantochi authored Oct 10, 2018
1 parent 84be08c commit c7ed2b5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.18.0" />
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.0-rc1" />
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async Task<ModuleClient> CreateModuleClient()
ModuleClient moduleClient = await ModuleClient.CreateFromEnvironmentAsync(TransportType.Mqtt_Tcp_Only)
.ConfigureAwait(false);

moduleClient.ProductInfo = "Microsoft.Azure.Devices.Edge.Functions.Binding";
moduleClient.ProductInfo = "Microsoft.Azure.WebJobs.Extensions.EdgeHub";
return moduleClient;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
ARG buildno
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-functions-binding:${buildno}-linux-arm32v7
FROM mcr.microsoft.com/azure-functions/dotnet:2.0-arm32v7

WORKDIR /app
ENV AzureWebJobsScriptRoot=/app

COPY samples/ samples/
COPY . /app

ENV AzureWebJobsScriptRoot=samples
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# escape=`

ARG buildno
FROM edgebuilds.azurecr.io/microsoft/azureiotedge-functions-binding:${buildno}-windows-amd64
FROM mcr.microsoft.com/azure-functions/dotnet:2.0-nanoserver-1803

WORKDIR /app

COPY $EXE_DIR/ ./$FUNCTION_FILE_NAME

ENV AzureWebJobsScriptRoot=samples
COPY . /approot
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"image": "edgebuilds.azurecr.io/microsoft/azureiotedge-hub:<Build.BuildNumber>-linux-<Architecture>",
"createOptions": "{\"HostConfig\": {\"PortBindings\": {\"8883/tcp\": [{\"HostPort\": \"8883\"}],\"443/tcp\": [{\"HostPort\": \"443\"}],\"5671/tcp\": [{\"HostPort\": \"5671\"}]}}}"
},
"env": {
"OptimizeForPerformance": {
"value": "<OptimizeForPerformance>"
}
},
"env": {
"OptimizeForPerformance": {
"value": "<OptimizeForPerformance>"
}
},
"status": "running",
"restartPolicy": "always"
}
Expand All @@ -59,8 +59,13 @@
"settings": {
"image": "edgebuilds.azurecr.io/microsoft/azureiotedge-functions-filter:<Build.BuildNumber>-linux-<Architecture>",
"createOptions": ""
},
"env": {
"AZURE_FUNCTIONS_ENVIRONMENT": {
"value": "Development"
}
}
},
}
}
}
},
Expand All @@ -77,4 +82,4 @@
}
}
}
}
}

0 comments on commit c7ed2b5

Please sign in to comment.