Skip to content

Commit 9b759ab

Browse files
Add dvc to Windows docker (#16)
Following commands from https://github.com/iterative/setup-dvc/blob/v2/src/utils.js#L142-L163
1 parent 56c6268 commit 9b759ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

windows-arc-runner/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ RUN .\vswhere.exe
7575
RUN vswhere
7676
# Set the entrypoint to cmd.exe so you can run vswhere
7777

78+
# Install dvc through release installer
79+
RUN Invoke-WebRequest -Uri https://dvc.org/download/win/dvc-3.62.0 -OutFile dvc.exe; `
80+
Start-Process -FilePath .\dvc.exe -ArgumentList '/SP- /NORESTART /SUPPRESSMSGBOXES /VERYSILENT' -NoNewWindow -Wait; `
81+
Remove-Item dvc.exe
82+
RUN setx /M PATH $($Env:PATH + ';C:\Program Files (x86)\DVC (Data Version Control)')
83+
7884
# Restore the default Windows shell for correct batch processing.
7985
SHELL ["cmd", "/S", "/C"]
8086

0 commit comments

Comments
 (0)