forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.bat
More file actions
42 lines (38 loc) · 728 Bytes
/
make.bat
File metadata and controls
42 lines (38 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
if "%1%"=="trash" (
call :trash
goto :eof
)
if "%1%"=="trash-keep" (
call :trash-keep
goto :eof
)
if "%1%"=="deps" (
call :deps
goto :eof
)
if "%1%"=="" (
set cmd=ci
) else (
set cmd=%1%
)
call :.dapper
.dapper.exe -f Dockerfile-windows.dapper %cmd%
goto :eof
:.dapper
if not exist .dapper.exe (
bitsadmin /rawreturn /transfer dappwer-download https://releases.rancher.com/dapper/latest/dapper-Windows-x86_64.exe %~dp0\.dapper.exe
.dapper.exe -v
)
goto :eof
:trash
call :.dapper
.dapper.exe -f Dockerfile-windows.dapper -m bind trash.exe
goto :eof
:trash-keep
call :.dapper
.dapper.exe -f Dockerfile-windows.dapper -m bind trash.exe -k
goto :eof
:deps
call :trash
goto :eof