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
#!/bin/bash | |
# | |
# This script is for Ubuntu 20.04 Focal Fossa to download and install XRDP+XORGXRDP via | |
# source. | |
# | |
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips. | |
# | |
############################################################################### |
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
#!/bin/bash | |
echo "It worked!" |
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
# Copyright (c) 1993-2009 Microsoft Corp. | |
# | |
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows. | |
# | |
# This file contains the mappings of IP addresses to host names. Each | |
# entry should be kept on an individual line. The IP address should | |
# be placed in the first column followed by the corresponding host name. | |
# The IP address and the host name should be separated by at least one | |
# space. | |
# |
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
$ docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=SuperCoolPass123" -p 1636:1433 --name sqlserver --hostname sqlserver -d mcr.microsoft.com/mssql/server:2019-latest | |
4ef2e5e0c9c91b4f1e86ef807262d0f639b10ae7364c9c9cce0996e3dc28d8db |
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
$ docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=SuperCoolPass123" -p 1635:1433 -d mcr.microsoft.com/mssql/server:2019-latest | |
Unable to find image 'mcr.microsoft.com/mssql/server:2019-latest' locally | |
2019-latest: Pulling from mssql/server | |
171857c49d0f: Pull complete | |
419640447d26: Pull complete | |
61e52f862619: Pull complete | |
e7083eff87ee: Pull complete | |
8b5eb8c165f6: Pull complete | |
b469c4d6160e: Pull complete | |
ec9a85cf10f9: Pull complete |
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
trigger: | |
- master | |
stages: | |
- stage: BackupTests | |
displayName: Test Database Backups | |
pool: | |
vmImage: 'Ubuntu-18.04' | |
jobs: |
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
$ .\build.ps1 | |
[+] Building 0.2s (8/8) FINISHED | |
=> [internal] load .dockerignore 0.0s | |
=> => transferring context: 2B 0.0s | |
=> [internal] load build definition from Dockerfile 0.1s | |
=> => transferring dockerfile: 981B 0.0s | |
=> [internal] load metadata for mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-18.04 0.1s | |
=> [internal] load build context 0.0s | |
=> => transferring context: 46B 0.0s | |
=> [1/3] FROM mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-18.04@sha256:a4c896f11c73fd6eecaab1b96eb256c6bc0bdc 0.0s |
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
$ tree .\backup-tests\ /f | |
~\BACKUP-TESTS | |
│ README.md | |
│ | |
├───adventureworks2017 | |
│ Dockerfile | |
│ | |
└───adventureworks2019 | |
Dockerfile |
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
if ((Get-ChildItem -Recurse -Path **\\Dockerfile).Count -gt 0) { | |
$dockerFiles = Get-ChildItem -Recurse -Path **\\Dockerfile | Select-Object -ExpandProperty DirectoryName -Unique | |
$dockerFiles | ForEach-Object { | |
Push-Location $_; | |
$directory = Get-Item Dockerfile | Select-Object -ExpandProperty Directory | |
docker build -t $directory.Name . | |
Pop-Location; | |
} | |
} | |
else { |
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
function Invoke-DatabaseTest | |
{ | |
param( | |
[parameter(mandatory = $true)] | |
[ValidateNotNullOrEmpty()] | |
[String] $DatabasePort, | |
[parameter(mandatory = $true)] | |
[ValidateNotNullOrEmpty()] | |
[String] $DatabaseName, | |
) |