-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure_environment.sh
More file actions
25 lines (14 loc) · 1.19 KB
/
configure_environment.sh
File metadata and controls
25 lines (14 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# ========================================================================================== #
# Script to configure environment #
# Author: Ander Fernández #
# Description: This script allows to do inv configure in the selected environement. #
# It also prepare this environment for testing and reset docker environment. #
# ========================================================================================== #
echo "Configuring $1 $2 environment..."
cd ~/install/mes-integration || { echo "Failed to change directory. Exiting."; exit 1; }
inv configure $1 $2 || { echo "inv configure for $1 $2 command failed. Exiting."; exit 1; }
cd ./deploy/$1-$2 || { echo "Failed to change to directory ./deploy/$1-$2. Exiting."; exit 1; }
./../../scripts/set_test_environments.sh || { echo "set_test_environments.sh command failed. Exiting."; exit 1; }
docker compose down || { echo "docker compose down failed"; exit 1; }
docker compose up -d --remove-orphans --force-recreate -V || { echo "docker compose up failed"; exit 1; }