Projekt

Obecné

Profil

Stáhnout (764 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
#!/bin/bash
2

    
3
FILE=docker-compose.yml
4

    
5
if [ -f "$FILE" ]; then
6
    echo "$FILE exist"
7
else
8
    echo "$FILE does not exist"
9
    exit
10
fi
11

    
12
echo "---CREATING FAKE DIRS---"
13
mkdir be
14
mkdir ./be/fulltextsearch
15
mkdir fe
16
mkdir ./fe/fulltextsearch
17

    
18
echo "---PULLING FULL TEXT SEARCH FROM DOCKER HUB---"
19
docker-compose pull
20

    
21
echo  "---STOPPING ALL RUNNING CONTAINERS---"
22
docker container stop $(docker container ls -aq)
23

    
24
echo  "---DELETING ALL RUNNING CONTAINERS---"
25
docker container rm $(docker container ls -aq)
26

    
27
echo "---STARTING CONTAINERS---"
28
docker-compose up -d --no-build
29

    
30
echo "---DELETING FAKE DIRS---"
31
cd be
32
rmdir fulltextsearch
33
cd ..
34
rmdir be
35
cd fe
36
rmdir fulltextsearch
37
cd ..
38
rmdir fe
39

    
40
echo "---SUCCESSFULLY FINISHED---"
41
echo "---APP STARTED ON localhost:4200---"
(5-5/5)