Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Cassidy cassidydotdk

  • Cassidy Consult
  • St. Gallen, Switzerland
View GitHub Profile
@cassidydotdk
cassidydotdk / Build.ps1
Last active May 23, 2021
Complete Build and Publish Script. Will deploy all projects to publishing target, no HPP required.
View Build.ps1
param(
[Parameter()]
[switch]$NoBuild,
[Parameter()]
[switch]$NoSync,
[Parameter()]
[string]$CmHost="https://habitatstarterkit.local",
[Parameter()]
[string]$SolutionName="HabitatStarterKit.sln",
[Parameter()]
@cassidydotdk
cassidydotdk / DockerFile
Created Aug 1, 2021
Setting up a Docker based VSTS Agent that can run Docker commands
View DockerFile
# escape=`
ARG BUILD_IMAGE
FROM ${BUILD_IMAGE}
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Set-ExecutionPolicy RemoteSigned -Force; Set-ExecutionPolicy Unrestricted -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
RUN choco install docker -y
@cassidydotdk
cassidydotdk / EntryPoint.ps1
Created Aug 3, 2021
A replacement for Sitecore's Development.ps1 Docker entrypoint script that does not blow up if you do not volume mount C:\deploy
View EntryPoint.ps1
[CmdletBinding()]
param(
[Parameter(Mandatory = $false)]
[hashtable]$WatchDirectoryParameters
)
# Setup
$ErrorActionPreference = "Stop"
$InformationPreference = "Continue"
$timeFormat = "HH:mm:ss:fff"