[library-web/oscp] Save commands output to log files
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web/oscp] Save commands output to log files
- Date: Thu, 30 Apr 2020 06:36:25 +0000 (UTC)
commit 9434a97a909fd79469c9cb2426903d904bd1588c
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed Apr 29 13:07:06 2020 +0200
Save commands output to log files
lgo/Dockerfile | 2 +-
lgo/entrypoint.sh | 13 ++++++++++---
2 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/lgo/Dockerfile b/lgo/Dockerfile
index 69789dd..f5e3708 100644
--- a/lgo/Dockerfile
+++ b/lgo/Dockerfile
@@ -3,7 +3,7 @@ FROM centos:7
RUN yum install -y epel-release gnome-common glib2-devel intltool docbook-dtds \
docbook-style-xsl gtk-doc python-sqlite2 yelp-tools libxslt make git \
gnome-doc-utils gnome-doc-utils-stylesheets httpd && \
- yum install -y python-html5lib && \
+ yum install -y python-html5lib zstd && \
yum -y clean all --enablerepo='*'
RUN git clone https://gitlab.gnome.org/Infrastructure/library-web.git /opt/lgo && \
diff --git a/lgo/entrypoint.sh b/lgo/entrypoint.sh
index 1c26316..ea7884d 100755
--- a/lgo/entrypoint.sh
+++ b/lgo/entrypoint.sh
@@ -2,6 +2,13 @@
set -x
-#/usr/local/bin/release-notes-gen
-#/opt/lgo/src/lgo.py -vvvvv -c /opt/library-web.lgorc
-/opt/lgo/src/lgo.py -vvvvv -c /opt/developer.lgorc
+mkdir -p /data/logs
+
+DATE="$(date +%s)"
+
+#/usr/local/bin/release-notes-gen |& tee "/data/logs/relnotes-$DATE.log"
+#/opt/lgo/src/lgo.py -vvvvv -c /opt/library-web.lgorc |& tee "/data/logs/library-$DATE.log"
+/opt/lgo/src/lgo.py -vvvvv -c /opt/developer.lgorc |& tee "/data/logs/developer-$DATE.log"
+
+cd /data/logs || exit
+zstd ./*.log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]