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
FROM microsoft/dotnet:2.0-sdk as builder | |
RUN mkdir -p /root/src/app/aspnetcoreapp | |
WORKDIR /root/src/app/aspnetcoreapp | |
#copy just the project file over | |
# this prevents additional extraneous restores | |
# and allows us to resuse the intermediate layer | |
# This only happens again if we change the csproj. | |
# This means WAY faster builds! |
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
var endpoint = new OctopusServerEndpoint("http://54.169.230.0:8085/", "API-xxxxxxxxxxxxxxxxxxxxxxxxxx"); | |
var client = new OctopusClient(endpoint); | |
var repo = new OctopusRepository(client); | |
var projects = repo.Projects.GetAll().Select (p => repo.Projects.Get(p.Id)); | |
var allDeployments = projects.SelectMany(p=>repo.Deployments.FindMany(d=>d.ProjectId.Equals(p.Id)).Take(5)).GroupBy (p => p.ProjectId).SelectMany (p => p); | |
var nugetPackageIds = new List<string>(new string[]{"Webshop.Frontend", "Webshop.Backend", "Webshop.BusinessRules", "Webshop.Messages"}); | |
foreach(var deployment in allDeployments) |
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
$paths = @("C:\inetpub\wwwroot\Console\Website\App_Config\Include\*","C:\inetpub\wwwroot\Demo\Website\App_Config\Include\*") | |
$patterns = @("Sitecore.Analytics*.config", "Sitecore.ExperienceAnalytics*.config") | |
$paths | Get-ChildItem -Include $patterns -Recurse | Rename-Item -NewName { $PSItem.Name + ".disabled" } |
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
$service = Get-WmiObject -Class Win32_Service -Filter "Name='MongoDB'" | |
if ($service -eq $null) | |
{ | |
$MongoPath = "d:\mongo\mongod.exe" | |
$MongoLogPath = "d:\mongo\logs\mongod.log" | |
$MongoDataFolder = "d:\mongo\data" | |
$binaryPath = "`"$MongoPath`" --service --logpath `"$MongoLogPath`" --dbpath `"$MongoDataFolder`"" | |
New-Service -Name MongoDB -BinaryPathName $binaryPath -Description "MongoDB for Sitecore EMS" -DisplayName "MongoDB" -StartupType auto | Out-Null |