-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcompose.bat
100 lines (80 loc) · 2.43 KB
/
compose.bat
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
@echo off
set DB_POSTGRESPASSWORD=pass
set DB_HOSTPORT=5432
set DB_TESTHOSTPORT=5432
set WEBSERVICES_HOSTPORT=5000
IF %1.==. GOTO Build
IF %1==build GOTO Build
IF %1==up GOTO Up
IF %1==down GOTO Down
IF %1==strt GOTO Strt
IF %1==stp GOTO Stp
IF %1==reboot GOTO Reboot
IF %1==rebuild GOTO Rebuild
IF %1==dev GOTO Dev
IF %1==devbg GOTO DevBg
IF %1==devtest GOTO DevTest
IF %1==devtestbg GOTO DevTestBg
IF %1==devdown GOTO DevDown
IF %1==devtestdown GOTO DevTestDown
IF %1==nginx GOTO Serv
IF %1==nginxdown GOTO ServDown
GOTO End
:Serv
rem Need to build the application in Release before making the image
CALL MSBuild.exe COMET-WebServices.sln -property:Configuration=Release -restore
START /B docker-compose -f docker-compose-nginx.yml up --build
GOTO End
:ServDown
START /B docker-compose -f docker-compose-nginx.yml down --remove-orphans
GOTO End
:Build
rem Need to build the application in Release before making the image
CALL MSBuild.exe COMET-WebServices.sln -property:Configuration=Release -restore
START /B docker-compose up --build
GOTO End
:Strt
START /B docker-compose start
GOTO End
:Stp
START /B docker-compose stop
GOTO End
:Up
START /B docker-compose up -d
GOTO End
:Down
START /B docker-compose down --remove-orphans
GOTO End
:Reboot
START /B docker-compose down
START /B docker-compose up -d
GOTO End
:Rebuild
START /B docker-compose down
rem Need to build the application in Release before making the image
START /B MSBuild.exe COMET-WebServices.sln -property:Configuration=Release -restore
START /B docker-compose up --build -d
GOTO End
:Dev
START /B docker-compose -f docker-compose-dev.yml down --remove-orphans
START /B docker-compose -f docker-compose-dev.yml up --build
GOTO End
:DevBg
START /B docker-compose -f docker-compose-dev.yml down --remove-orphans
START /B docker-compose -f docker-compose-dev.yml up --build -d
GOTO End
:DevTest
START /B docker-compose -f docker-compose-dev-test.yml down --remove-orphans
START /B docker-compose -f docker-compose-dev-test.yml up --build
GOTO End
:DevTestBg
START /B docker-compose -f docker-compose-dev-test.yml down --remove-orphans
START /B docker-compose -f docker-compose-dev-test.yml up --build -d
GOTO End
:DevDown
START /B docker-compose -f docker-compose-dev.yml down --remove-orphans
GOTO End
:DevTestDown
START /B docker-compose -f docker-compose-dev-test.yml down --remove-orphans
GOTO End
:End