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 |
7460ae47
|
Ondřej Váně
|
echo "---PULLING FULL TEXT SEARCH FROM DOCKER HUB---"
|
15 |
|
|
docker-compose pull
|
16 |
|
|
|
17 |
ce7807df
|
Ondřej Váně
|
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 |
7460ae47
|
Ondřej Váně
|
echo "---STARTING CONTAINERS---"
|
24 |
ce7807df
|
Ondřej Váně
|
docker-compose up -d --no-build
|
25 |
7460ae47
|
Ondřej Váně
|
|
26 |
11729837
|
Ondřej Váně
|
echo "---DELETING CORE WITH NAME 'files'---"
|
27 |
|
|
docker exec fulltextsearch-solr solr delete -c files
|
28 |
|
|
|
29 |
|
|
echo "---DELETING CORE WITH NAME 'documents'---"
|
30 |
|
|
docker exec fulltextsearch-solr solr delete -c documents
|
31 |
|
|
|
32 |
7460ae47
|
Ondřej Váně
|
echo "---CREATING CORE WITH NAME 'documents'---"
|
33 |
|
|
docker exec fulltextsearch-solr solr create -c documents
|
34 |
ce7807df
|
Ondřej Váně
|
|
35 |
11729837
|
Ondřej Váně
|
echo "---CREATING CORE WITH NAME 'files'---"
|
36 |
|
|
docker exec fulltextsearch-solr solr create -c files
|
37 |
|
|
|
38 |
ce7807df
|
Ondřej Váně
|
echo "---DELETING FAKE DIRS---"
|
39 |
|
|
rmdir /q /s be
|
40 |
|
|
rmdir /q /s fe
|
41 |
|
|
|
42 |
|
|
echo "---SUCCESSFULLY FINISHED---"
|
43 |
|
|
echo "---APP STARTED ON localhost:4200---"
|