-
Notifications
You must be signed in to change notification settings - Fork 0
/
up.sh
executable file
·44 lines (31 loc) · 1.3 KB
/
up.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
containers/rootnode/volume/scripts/animation.sh
containers/rootnode/volume/scripts/create_dir.sh
if [ -e containers/rootnode/volume/verifications/is_arch_set ]
then
architeture=$(cat containers/rootnode/volume/verifications/is_arch_set)
echo "Architeture already set ($architeture)"
sleep 1
docker network create -d bridge rootnode
docker-compose up --build &
else
echo -e "Please set the architeture, 1 for ARM64 and 2 for AMD64\n\nArchiteture: "
read architeture
case $architeture in
"1")
touch containers/rootnode/volume/verifications/is_arch_set && echo "ARM64" > containers/rootnode/volume/verifications/is_arch_set
echo "Architeture setted successfully! (ARM64) "
docker network create -d bridge rootnode
docker-compose up --build &
;;
"2")
touch containers/rootnode/volume/verifications/is_arch_set && echo "AMD64" > containers/rootnode/volume/verifications/is_arch_set
echo "Architeture setted successfully! (AMD64) "
docker network create -d bridge rootnode
docker-compose up --build &
;;
*)
echo "Architeture not found, please try again."
;;
esac
fi