Skip to content

Commit d488050

Browse files
authored
adding azure devops script and a chocolateyfest demo (#73)
* adding devops tool install commands * personalizing demo script
1 parent d41a2c1 commit d488050

File tree

7 files changed

+83
-18
lines changed

7 files changed

+83
-18
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ A recipe is the script you run. It calls multiple helper scripts. These curren
2020
## You may want to customize the scripts
2121
These scripts should cover a lot of what you need but will not likely match your personal preferences exactly. In this case please fork the project and change the scripts however you desire. We really appreciate PR's back to this project if you have recommended changes.
2222

23-
*Note: To use the Readme links for your fork you'll need to update the links to refer to your fork as follows:*
23+
*Note: The one-click links use the following format. When working out of a different Fork or Branch you'll want to update the links as follows:*
2424

25-
`http://boxstarter.org/package/url?https://raw.githubusercontent.com/GITHUB_DOMAIN/windows-dev-box-setup-scripts/YOUR_BRANCH/RECIPE_NAME.ps
25+
`http://boxstarter.org/package/url?https://raw.githubusercontent.com/GITHUB_DOMAIN/windows-dev-box-setup-scripts/YOUR_BRANCH/RECIPE_NAME.ps1
2626
`
2727

2828
For more info on testing your changes take a look at the [contribution guidelines](CONTRIBUTING.md).
@@ -42,9 +42,10 @@ To run a recipe script, click a link in the table below from your target machine
4242
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_web_nodejs.ps1'>Web NodeJS</a> | Web Dev with NodeJS (Web + NodeJS LTS)¹ |
4343
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_ml_windows.ps1'>Machine Learning Windows</a>| Machine Learning with only Windows native tools |
4444
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_ml_wsl.ps1'>Machine Learning Linux</a>| Machine Learning with Linux tools running on WSL |
45+
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/devops_azure.ps1'>DevOps Azure</a>| Client setup for DevOps with Azure |
4546
| | Xamarin (Visual Studio, Xamarin, Android SDK) |
4647
| | Containers (Docker, Kubernetes, etc...) |
47-
| | More Coming Soon! |
48+
| | Submit a PR with a recommended configuration! |
4849

4950
**Notes:**
5051
1. If you are using WSL there's a followup step we recommend after running the setup script. When the script finishes you will only have a root user with a blank password. You should manually create a non-root user via `$ sudo adduser [USERNAME] sudo`

demos/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# How to run the scripts
2+
Before you begin, please read the [Legal](#Legal) section.
3+
4+
To run a recipe script, click a link in the table below from your target machine. This will download the Boxstarter one-click application, and prompt you for Boxstarter to run with Administrator privileges (which it needs to do its job). Clicking yes in this dialog will cause the recipe to begin. You can then leave the job unattended and come back when it's finished.
5+
6+
## Customize the scripts
7+
These scripts should cover a lot of what you need but will not likely match your personal preferences exactly. In this case please fork the project and change the scripts however you desire. We really appreciate PR's back to this project if you have recommended changes.
8+
9+
*Note: The one-click links use the following format. When working out of a different Fork or Branch you'll want to update the links as follows:*
10+
11+
`http://boxstarter.org/package/url?https://raw.githubusercontent.com/GITHUB_DOMAIN/windows-dev-box-setup-scripts/YOUR_BRANCH/demos/RECIPE_NAME.ps1
12+
`
13+
14+
|Click link to run |Description |
15+
|---------|---------|
16+
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/demos/chocolateyfest2018.ps1'>ChocolateyFest 2018</a> | DevOps tools and some examples of personalization |
17+
| | Add to this list by submitting a PR with your example configuration! |
18+
19+
# Contributing
20+
Do you want to contribute? We would love your help. Here are our <a href="CONTRIBUTING.md">contribution guidelines</a>.

demos/chocolateyfest2018.ps1

+37-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Description: Boxstarter Script
22
# Author: Microsoft
3-
# Common settings for web dev
3+
# chocolatey fest demo
44

55
Disable-UAC
6+
$ConfirmPreference = "None" #ensure installing powershell modules don't prompt on needed dependencies
67

78
# Get the base URI path from the ScriptToCall value
89
$bstrappackage = "-bootstrapPackage"
@@ -11,7 +12,8 @@ $strpos = $helperUri.IndexOf($bstrappackage)
1112
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
1213
$helperUri = $helperUri.TrimStart("'", " ")
1314
$helperUri = $helperUri.TrimEnd("'", " ")
14-
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
15+
$strpos = $helperUri.LastIndexOf("/demos/")
16+
$helperUri = $helperUri.Substring(0, $strpos)
1517
$helperUri += "/scripts"
1618
write-host "helper script base URI is $helperUri"
1719

@@ -24,18 +26,43 @@ function executeScript {
2426
#--- Setting up Windows ---
2527
executeScript "FileExplorerSettings.ps1";
2628
executeScript "SystemConfiguration.ps1";
27-
executeScript "CommonDevTools.ps1";
2829
executeScript "RemoveDefaultApps.ps1";
30+
executeScript "CommonDevTools.ps1";
31+
executeScript "Browsers.ps1";
32+
33+
executeScript "HyperV.ps1";
34+
RefreshEnv
2935
executeScript "WSL.ps1";
30-
executeScript "VirtualizationTools.ps1";
36+
RefreshEnv
37+
executeScript "Docker.ps1";
38+
39+
choco install powershell-core
40+
choco install azure-cli
41+
Install-Module -Force Az
42+
choco install microsoftazurestorageexplorer
43+
choco install terraform
44+
45+
# Install tools in WSL instance
46+
write-host "Installing tools inside the WSL distro..."
47+
Ubuntu1804 run apt install ansible -y
48+
Ubuntu1804 run apt install nodejs -y
49+
50+
# personalize
51+
choco install microsoft-teams
52+
choco install office365business
3153

32-
#--- Browsers ---
33-
choco install -y googlechrome
34-
choco install -y firefox
54+
# checkout recent projects
55+
mkdir C:\github
56+
cd C:\github
57+
git.exe clone https://github.com/microsoft/windows-dev-box-setup-scripts
58+
git.exe clone https://github.com/microsoft/winappdriver
59+
git.exe clone https://github.com/microsoft/wsl
3560

36-
# TODO: Expand on tools/configuration options here
37-
# Tools inside WSL
38-
# Azure CLI
61+
# set desktop wallpaper
62+
Invoke-WebRequest -Uri 'http://chocolateyfest.com/wp-content/uploads/2018/05/img-bg-front-page-header-NO_logo-opt.jpg' -Method Get -ContentType image/jpeg -OutFile 'C:\github\chocofest.jpg'
63+
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value 'C:\github\chocofest.jpg'
64+
rundll32.exe user32.dll, UpdatePerUserSystemParameters
65+
RefreshEnv
3966

4067
Enable-UAC
4168
Enable-MicrosoftUpdate

devops_azure.ps1

+16-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Common settings for azure devops
44

55
Disable-UAC
6+
$ConfirmPreference = "None" #ensure installing powershell modules don't prompt on needed dependencies
67

78
# Get the base URI path from the ScriptToCall value
89
$bstrappackage = "-bootstrapPackage"
@@ -25,13 +26,24 @@ function executeScript {
2526
executeScript "FileExplorerSettings.ps1";
2627
executeScript "SystemConfiguration.ps1";
2728
executeScript "RemoveDefaultApps.ps1";
28-
executeScript "WSL.ps1";
29+
executeScript "CommonDevTools.ps1";
30+
executeScript "Browsers.ps1";
31+
2932
executeScript "HyperV.ps1";
33+
RefreshEnv
34+
executeScript "WSL.ps1";
35+
RefreshEnv
3036
executeScript "Docker.ps1";
31-
executeScript "Browsers.ps1";
3237

33-
# TODO: Expand on tools/configuration options here
34-
# Azure CLI, Azure PS, Azure SDK, Ansible, TerraForms
38+
choco install powershell-core
39+
choco install azure-cli
40+
Install-Module -Force Az
41+
choco install microsoftazurestorageexplorer
42+
choco install terraform
43+
44+
# Install tools in WSL instance
45+
write-host "Installing tools inside the WSL distro..."
46+
Ubuntu1804 run apt install ansible -y
3547

3648
Enable-UAC
3749
Enable-MicrosoftUpdate

scripts/Docker.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
Enable-WindowsOptionalFeature -Online -FeatureName containers -All
2+
RefreshEnv
13
choco install -y docker-for-windows
24
choco install -y vscode-docker

scripts/RemoveDefaultApps.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ $applicationList = @(
4545
"Microsoft.Print3D"
4646
"*Autodesk*"
4747
"*BubbleWitch*"
48-
"king.com.CandyCrush*"
48+
"king.com*"
49+
"G5*"
4950
"*Dell*"
5051
"*Facebook*"
5152
"*Keeper*"

scripts/WSL.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ choco install -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures
55
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu.appx -UseBasicParsing
66
Add-AppxPackage -Path ~/Ubuntu.appx
77
# run the distro once and have it install locally with root user, unset password
8+
9+
RefreshEnv
810
Ubuntu1804 install --root
911
Ubuntu1804 run apt update
1012
Ubuntu1804 run apt upgrade -y

0 commit comments

Comments
 (0)