Commit bb2250d 1 parent 5cb75e2 commit bb2250d Copy full SHA for bb2250d
File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ log_file="$repo_converter_dir/pull-start.log"
14
14
git_cmd=" git -C $repo_converter_dir "
15
15
docker_compose_file_path=" $repo_converter_dir /docker-compose.yaml"
16
16
docker_cmd=" docker compose -f $docker_compose_file_path "
17
+ docker_up_sleep_seconds=10
17
18
18
19
# Log to both stdout and log file
19
20
exec > >( tee -a " $log_file " ) 2>&1
@@ -34,7 +35,15 @@ command="\
34
35
$docker_cmd up -d --remove-orphans \
35
36
"
36
37
37
- log " Running command in subshell: $command "
38
+ log " Running command in subshell:"
39
+ echo " $command " | awk ' BEGIN{FS="&&"; OFS="&& \n"} {$1=$1} 1'
40
+
38
41
bash -c " $command " >> " $log_file " 2>&1
39
42
43
+ log " Sleeping $docker_up_sleep_seconds seconds to give Docker containers time to start and stabilize"
44
+ sleep $docker_up_sleep_seconds
45
+
46
+ log " docker ps:"
47
+ $docker_cmd ps
48
+
40
49
log " Script finishing"
You can’t perform that action at this time.
0 commit comments