-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[functionapp] Enable server side build in OryxBuilder (#45)
* Enable scm build in oryx builder Fix using directives Add TODO to remove all standard workers Address issues in comment Rename Linux consumption functionapp related function Internal call does not require https Update remove all worker URL Catch error when SCM_RUN_FROM_PACKAGE is not provided * Add unit tests for Oryx Factory * Make SetupLinuxConsumptionFunctionAppDeployment(context).Wait() synchronous * Remove assignment auth * Move ScmRunFromPackage from AppSettings to Environment Variables * Null check for pushdeploymentcontroller.cs * Reenable Authorize * Address unit tests
- Loading branch information
1 parent
6608e88
commit 3e0f397
Showing
18 changed files
with
368 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Kudu.Core/Deployment/Oryx/LinuxConsumptionFunctionAppOryxArguments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Kudu.Core.Deployment.Oryx | ||
{ | ||
public class LinuxConsumptionFunctionAppOryxArguments : FunctionAppOryxArguments | ||
{ | ||
public LinuxConsumptionFunctionAppOryxArguments() : base() | ||
{ | ||
SkipKuduSync = true; | ||
Flags = BuildOptimizationsFlags.Off; | ||
} | ||
|
||
public override string GenerateOryxBuildCommand(DeploymentContext context) | ||
{ | ||
StringBuilder args = new StringBuilder(); | ||
|
||
base.AddOryxBuildCommand(args, context, source: context.RepositoryPath, destination: context.RepositoryPath); | ||
base.AddLanguage(args, base.FunctionsWorkerRuntime); | ||
base.AddLanguageVersion(args, base.FunctionsWorkerRuntime); | ||
base.AddBuildOptimizationFlags(args, context, Flags); | ||
base.AddWorkerRuntimeArgs(args, base.FunctionsWorkerRuntime); | ||
|
||
return args.ToString(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.