Skip to content

Commit a815960

Browse files
committed
Save php extensions install log to image (with execution time)
1 parent a5aa3e8 commit a815960

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

extensions/core/install_all.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@ mv /etc/apt/apt.conf.d/docker-clean /tmp/docker-clean
88

99
apt-get update
1010

11+
mkdir -p /var/log/ext-php/
12+
1113
for ext in */; do \
1214
cd $ext
1315
ext_no_slash=${ext%/}
1416
echo "***************** Installing $ext_no_slash ******************"
15-
./install.sh
17+
LOG="/var/log/ext-php/install-${ext_no_slash}"
18+
start=$(date +%s)
19+
./install.sh 2>&1 | tee -a "${LOG}.log"
20+
end=$(date +%s)
21+
echo "$(($end-$start)) seconds to execute ${ext_no_slash}" > "${LOG}.time"
1622
cd ..
1723
done
1824

0 commit comments

Comments
 (0)