зеркало из https://github.com/Azure/Avere.git
Azure rendering solution deployment framework
This commit is contained in:
Родитель
d40e6ab26c
Коммит
972e522517
|
@ -52,6 +52,16 @@ Write-Host "Render Manager: $renderManager"
|
|||
Write-Host "Render Engines: $renderEngines"
|
||||
Write-Host "Customize (End): Image Build Parameters"
|
||||
|
||||
if ($machineType -eq "Storage" -or $machineType -eq "Scheduler") {
|
||||
Write-Host "Customize (Start): Azure CLI"
|
||||
$installType = "azure-cli"
|
||||
$installFile = "$installType.msi"
|
||||
$downloadUrl = "https://aka.ms/installazurecliwindows"
|
||||
(New-Object System.Net.WebClient).DownloadFile($downloadUrl, (Join-Path -Path $pwd.Path -ChildPath $installFile))
|
||||
StartProcess $installFile "/quiet /norestart /log $installType.log" $null
|
||||
Write-Host "Customize (End): Azure CLI"
|
||||
}
|
||||
|
||||
Write-Host "Customize (Start): Chocolatey"
|
||||
$installType = "chocolatey"
|
||||
$installFile = "$installType.ps1"
|
||||
|
@ -341,20 +351,10 @@ if ($renderEngines -contains "Unreal" -or $renderEngines -contains "Unreal+Pixel
|
|||
}
|
||||
}
|
||||
|
||||
if ($machineType -eq "Scheduler") {
|
||||
Write-Host "Customize (Start): Azure CLI"
|
||||
$installType = "azure-cli"
|
||||
$installFile = "$installType.msi"
|
||||
$downloadUrl = "https://aka.ms/installazurecliwindows"
|
||||
(New-Object System.Net.WebClient).DownloadFile($downloadUrl, (Join-Path -Path $pwd.Path -ChildPath $installFile))
|
||||
StartProcess $installFile "/quiet /norestart /log $installType.log" $null
|
||||
Write-Host "Customize (End): Azure CLI"
|
||||
|
||||
if ("$renderManager" -like "*Deadline*" -or "$renderManager" -like "*RoyalRender*") {
|
||||
Write-Host "Customize (Start): NFS Server"
|
||||
Install-WindowsFeature -Name "FS-NFS-Service"
|
||||
Write-Host "Customize (End): NFS Server"
|
||||
}
|
||||
if ($machineType -eq "Scheduler" -and ("$renderManager" -like "*Deadline*" -or "$renderManager" -like "*RoyalRender*")) {
|
||||
Write-Host "Customize (Start): NFS Server"
|
||||
Install-WindowsFeature -Name "FS-NFS-Service"
|
||||
Write-Host "Customize (End): NFS Server"
|
||||
} else {
|
||||
Write-Host "Customize (Start): NFS Client"
|
||||
$installType = "nfs-client"
|
||||
|
@ -561,4 +561,6 @@ if ($machineType -eq "Workstation") {
|
|||
Write-Host "Customize (End): Teradici PCoIP"
|
||||
}
|
||||
|
||||
setx PATH "$env:PATH$binPaths" /m
|
||||
if ($binPaths -ne "") {
|
||||
setx PATH "$env:PATH$binPaths" /m
|
||||
}
|
||||
|
|
|
@ -48,6 +48,24 @@ binPathCMake="$binDirectory/$installType/bin"
|
|||
binPaths="$binPaths:$binPathCMake"
|
||||
echo "Customize (End): Image Build Platform"
|
||||
|
||||
if [ $machineType == Storage ]; then
|
||||
dnf -y install kernel-rpm-macros rpm-build python3-devel gcc-gfortran libtool pciutils tcl tk # tcsh
|
||||
installFile="MLNX_OFED_LINUX-23.04-1.1.3.0-rhel8.6-x86_64.tgz"
|
||||
downloadUrl="$binStorageHost/NVIDIA/OFED/$installFile$binStorageAuth"
|
||||
curl -o $installFile -L $downloadUrl
|
||||
tar -xzf $installFile
|
||||
./MLNX_OFED*/mlnxofedinstall --without-fw-update --add-kernel-support --skip-repo --force 2>&1 | tee mellanox-ofed.log
|
||||
fi
|
||||
|
||||
if [[ $machineType == Storage || $machineType == Scheduler ]]; then
|
||||
echo "Customize (Start): Azure CLI"
|
||||
installType="azure-cli"
|
||||
rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||
dnf -y install https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm
|
||||
dnf -y install $installType 2>&1 | tee $installType.log
|
||||
echo "Customize (End): Azure CLI"
|
||||
fi
|
||||
|
||||
if [ "$gpuProvider" == NVIDIA ]; then
|
||||
dnf -y install epel-release
|
||||
dnf -y install dkms
|
||||
|
@ -292,19 +310,10 @@ if [[ $renderEngines == *MoonRay* ]]; then
|
|||
echo "Customize (End): MoonRay"
|
||||
fi
|
||||
|
||||
if [ $machineType == Scheduler ]; then
|
||||
echo "Customize (Start): Azure CLI"
|
||||
installType="azure-cli"
|
||||
rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||
dnf -y install https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm
|
||||
dnf -y install $installType 2>&1 | tee $installType.log
|
||||
echo "Customize (End): Azure CLI"
|
||||
|
||||
if [[ $renderManager == *Deadline* || $renderManager == *RoyalRender* ]]; then
|
||||
echo "Customize (Start): NFS Server"
|
||||
systemctl --now enable nfs-server
|
||||
echo "Customize (End): NFS Server"
|
||||
fi
|
||||
if [[ $machineType == Scheduler && ($renderManager == *Deadline* || $renderManager == *RoyalRender*) ]]; then
|
||||
echo "Customize (Start): NFS Server"
|
||||
systemctl --now enable nfs-server
|
||||
echo "Customize (End): NFS Server"
|
||||
fi
|
||||
|
||||
if [[ $renderManager == *Deadline* ]]; then
|
||||
|
@ -491,4 +500,6 @@ if [ $machineType == Workstation ]; then
|
|||
echo "Customize (End): Teradici PCoIP"
|
||||
fi
|
||||
|
||||
echo "PATH=$PATH$binPaths" >> $aaaProfile
|
||||
if [ "$binPaths" != "" ]; then
|
||||
echo "PATH=$PATH$binPaths" >> $aaaProfile
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче