Configure airlock review VMs to use Nexus proxy for pip and conda#4889
Configure airlock review VMs to use Nexus proxy for pip and conda#4889
Conversation
Agent-Logs-Url: https://github.com/microsoft/AzureTRE/sessions/8d34579a-3529-4f4e-9c5c-6b6e609008d0 Co-authored-by: marrobi <17089773+marrobi@users.noreply.github.com>
|
@copilot Is there a reason the airlock review VMs can't build on the existing windows and Linux guacamole VMs, rather than having duplciated content? Like the import workspace builds off the base workspace? |
The The review VMs and regular Windows VMs have significant structural differences that make direct inheritance non-trivial:
The shared code added here is specifically the pip/conda Nexus proxy configuration (~15 lines of PowerShell), matching what |
Resolves #4009
What is being addressed
Airlock import/export review VMs boot without Nexus proxy configuration, so users cannot install packages via pip or conda to inspect specialised file types during review. The regular guacamole VMs already have this configuration.
How is this addressed
Mirrors the Nexus proxy setup from the regular guacamole Windows VM (
vm_config.ps1) into both airlock review VM templates:main.tf— Addazurerm.coreprovider alias (needed to read the app gateway public IP from the core resource group)data.tf— Adddata.azurerm_resource_group.coreanddata.azurerm_public_ip.app_gateway_ipdata sourceslocals.tf— Addnexus_proxy_urllocal derived from the app gateway FQDNdownload_review_data.ps1— Configure pip (pip.ini) and conda channels/alias to route through Nexus before downloading review datawindowsvm.tf— Passnexus_proxy_urlandCondaConfigto the script templateporter.yaml— Bump import reviewvm0.4.4→0.5.0, export reviewvm0.3.5→0.4.0