Blame view

docker/PYROS_DOCKER_START 737 Bytes
2be8242a   Etienne Pallier   Ajout du shebang ...
1
2
#!/usr/bin/env bash

7eb64ba3   Etienne Pallier   Improved docker s...
3
4
# We need these variables for the build and when we launch the containers
# But then, we do not need them anymore. Anyway they are referenced in the docker-compose.yml but it does not find them in memory => makes a warning when using the containers...
90bc3587   Alexis Koralewski   Add fix hostname ...
5
6
export CURRENT_UID=$(id -u)
export COMPUTER_HOSTNAME=$HOSTNAME
bce6ef19   Etienne Pallier   update affichage ...
7
8
9

echo
echo "First STOP just in case:"
1b11a72f   Alexis Koralewski   Update docker scr...
10
docker compose down --remove-orphans
bce6ef19   Etienne Pallier   update affichage ...
11
12
13

echo
echo "Then START:"
7eb64ba3   Etienne Pallier   Improved docker s...
14
# Take docker-compose.yml folder name ("docker") as containers group name in Docker Desktop by default
e8387035   Alexis Koralewski   add no-build opti...
15
docker compose up --no-build -d
7eb64ba3   Etienne Pallier   Improved docker s...
16
# Change this group name with -p option
2be8242a   Etienne Pallier   Ajout du shebang ...
17
#docker compose -p pyros-app up -d
36583682   Etienne Pallier   updated KILL_PYRO...
18

b232ab5e   Etienne Pallier   ajout commentaires
19
# See started containers
36583682   Etienne Pallier   updated KILL_PYRO...
20
echo
f8d8edf8   Etienne Pallier   small update
21
echo "Started containers for pyros:"
f8d8edf8   Etienne Pallier   small update
22
docker ps | grep pyros