This commit is contained in:
Simon Gardling 2025-01-24 19:20:04 -05:00
parent 4afe804ead
commit e798ba46e3
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
3 changed files with 30 additions and 10 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/shared

View File

@ -1,5 +1,7 @@
services:
windows:
# needs to be privileged in order for shared directories to work
privileged: true
image: dockurr/windows
container_name: windows
environment:
@ -15,6 +17,8 @@ services:
- 3389:3389/tcp
- 3389:3389/udp
volumes:
- ~/Downloads/tiny11.iso:/custom.iso
- ~/school/spring-2025/CSE3120/vm/oem:/oem
- /home/primary/Downloads/tiny11.iso:/custom.iso
- /home/primary/school/spring-2025/CSE3120/vm/oem:/oem
# shared samba dir
- /home/primary/school/spring-2025/CSE3120/vm/shared:/data
stop_grace_period: 2m

View File

@ -2,21 +2,36 @@ cd C:\OEM
$VSInstallDir = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service"
if (-Not $VSInstallDir) {
Write-Error "Visual Studio InstallDir registry key missing"
Exit 1
if ($VSInstallDir) {
echo "installing asmdude vs2022 extension"
$asmdude_vsix = "$($env:TEMP)\AsmDude.vsix"
wget "https://github.com/HJLebbink/asm-dude/releases/download/v2.0.1.0/AsmDude2-vsix-2.0.1.0.vsix" -OutFile "$($asmdude_vsix)"
Start-Process -Filepath "$($VSInstallDir)\VSIXInstaller" -ArgumentList "/q /a $($asmdude_vsix)" -Wait
} else {
echo "vs2022 not installed. will not install asmdude"
}
$asmdude_vsix = "$($env:TEMP)\AsmDude.vsix"
wget "https://github.com/HJLebbink/asm-dude/releases/download/v2.0.1.0/AsmDude2-vsix-2.0.1.0.vsix" -OutFile "$($asmdude_vsix)"
Start-Process -Filepath "$($VSInstallDir)\VSIXInstaller" -ArgumentList "/q /a $($asmdude_vsix)" -Wait
# activate windows
echo "activating windows"
& ([ScriptBlock]::Create((irm https://get.activated.win))) /HWID
echo "downloading irvine"
$irvine_zip_dir = "$($env:TEMP)\Irvine.zip"
wget "https://github.com/surferkip/asmbook/raw/eecd4724e1f9ab1243a9c04c932fab5501fc93d6/Irvine.zip" -Outfile "$($irvine_zip_dir)"
Expand-Archive -Force "$($irvine_zip_dir)" C:\Irvine
echo "downloading project32"
$project32_zip_dir = "$($env:TEMP)\project32_vs2022.zip"
wget "https://github.com/surferkip/asmbook/raw/eecd4724e1f9ab1243a9c04c932fab5501fc93d6/Project32_VS2022.zip" -Outfile "$($project32_zip_dir)"
Expand-Archive -Force "$($project32_zip_dir)" "C:\Users\Docker\project32"
echo "downloading project64"
$project64_zip_dir = "$($env:TEMP)\project64_vs2022.zip"
wget "https://github.com/surferkip/asmbook/raw/eecd4724e1f9ab1243a9c04c932fab5501fc93d6/Project64_VS2022.zip" -Outfile "$($project64_zip_dir)"
Expand-Archive -Force "$($project64_zip_dir)" "C:\Users\Docker\project64"
# maybe this'll work -- no
# Set-ExecutionPolicy -ExecutionPolicy Bypass -Force