1 |
7460ae47
|
Ondřej Váně
|
if exist docker-compose.yml (
|
2 |
|
|
echo "File docker-compose.yml exist"
|
3 |
|
|
) else (
|
4 |
|
|
echo "File docker-compose.yml does not exist"
|
5 |
|
|
exit
|
6 |
|
|
)
|
7 |
|
|
|
8 |
ce7807df
|
Ondřej Váně
|
echo "---CREATING FAKE DIRS---"
|
9 |
|
|
mkdir be
|
10 |
|
|
mkdir .\be\fulltextsearch
|
11 |
|
|
mkdir fe
|
12 |
|
|
mkdir .\fe\fulltextsearch
|
13 |
|
|
|
14 |
4c69d78a
|
Ondřej Váně
|
echo "---DELETING ALL IMAGES---"
|
15 |
|
|
FOR /F "tokens=*" %%G IN ('docker image ls -aq') DO docker image rm -f %%G
|
16 |
|
|
|
17 |
7460ae47
|
Ondřej Váně
|
echo "---PULLING FULL TEXT SEARCH FROM DOCKER HUB---"
|
18 |
|
|
docker-compose pull
|
19 |
|
|
|
20 |
ce7807df
|
Ondřej Váně
|
echo "---STOPPING ALL RUNNING CONTAINERS---"
|
21 |
|
|
FOR /F "tokens=*" %%G IN ('docker container ls -aq') DO docker container stop %%G
|
22 |
|
|
|
23 |
|
|
echo "---DELETING ALL RUNNING CONTAINERS---"
|
24 |
|
|
FOR /F "tokens=*" %%G IN ('docker container ls -aq') DO docker container rm %%G
|
25 |
|
|
|
26 |
7460ae47
|
Ondřej Váně
|
echo "---STARTING CONTAINERS---"
|
27 |
ce7807df
|
Ondřej Váně
|
docker-compose up -d --no-build
|
28 |
7460ae47
|
Ondřej Váně
|
|
29 |
ce7807df
|
Ondřej Váně
|
echo "---DELETING FAKE DIRS---"
|
30 |
|
|
rmdir /q /s be
|
31 |
|
|
rmdir /q /s fe
|
32 |
|
|
|
33 |
|
|
echo "---SUCCESSFULLY FINISHED---"
|
34 |
|
|
echo "---APP STARTED ON localhost:4200---"
|