Skip to content

Commit a6413bd

Browse files
committed
Add Vagrant box
1 parent cb6b369 commit a6413bd

3 files changed

Lines changed: 40 additions & 0 deletions

File tree

vcbox/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vagrant/

vcbox/Vagrantfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure("2") do |config|
5+
config.vm.box = "gusztavvargadr/windows-server-2025-standard-core"
6+
7+
config.vm.provider "virtualbox" do |vb|
8+
vb.memory = "8192"
9+
vb.cpus = 4
10+
end
11+
12+
config.vm.provision "shell", path: "install.ps1"
13+
end

vcbox/install.ps1

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Mark the network profile as private, so inbound connections (e.g. SSH) work correctly
2+
Get-NetConnectionProfile -Name Network | Set-NetConnectionProfile -NetworkCategory Private
3+
4+
# Because the Vagrant user has Administrator privileges, the authorized keys are stored in
5+
# C:\ProgramData\ssh\administrators_authorized_keys
6+
copy "C:\Users\vagrant\.ssh\authorized_keys" "C:\ProgramData\ssh\administrators_authorized_keys"
7+
8+
# Install Chocolatey
9+
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
10+
11+
# Install LLVM
12+
choco install -y llvm
13+
14+
# Install the Visual Studio 2022 build tools, and then add the C++ build tools workload
15+
choco install -y visualstudio2022buildtools
16+
choco install -y visualstudio2022-workload-vctools
17+
18+
# Install git
19+
choco install -y git
20+
git config --global credential.credentialStore dpapi
21+
22+
# Install Conan
23+
choco install -y conan
24+
25+
# Install Cmake, ninja
26+
choco install -y cmake ninja

0 commit comments

Comments
 (0)