Projekt

Obecné

Profil

Stáhnout (783 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
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
echo "---CREATING FAKE DIRS---"
9
mkdir be
10
mkdir .\be\fulltextsearch
11
mkdir fe
12
mkdir .\fe\fulltextsearch
13

    
14
echo "---PULLING FULL TEXT SEARCH FROM DOCKER HUB---"
15
docker-compose pull
16

    
17
echo  "---STOPPING ALL RUNNING CONTAINERS---"
18
FOR /F "tokens=*" %%G IN ('docker container ls -aq') DO docker container stop %%G
19

    
20
echo  "---DELETING ALL RUNNING CONTAINERS---"
21
FOR /F "tokens=*" %%G IN ('docker container ls -aq') DO docker container rm %%G
22

    
23
echo "---STARTING CONTAINERS---"
24
docker-compose up -d --no-build
25

    
26
echo "---DELETING FAKE DIRS---"
27
rmdir /q /s be
28
rmdir /q /s fe
29

    
30
echo "---SUCCESSFULLY FINISHED---"
31
echo "---APP STARTED ON localhost:4200---"
(4-4/5)