[inactive-gitlab-users] Fetch sysadmin-bin directly from its source, move the entrypoint to its own shell file for env vars



commit 4e5cc5ba768152237e1ece7fbf2659720b4c513f
Author: Andrea Veri <averi redhat com>
Date:   Tue Sep 3 18:24:37 2019 +0200

    Fetch sysadmin-bin directly from its source, move the entrypoint to its own shell file for env vars to 
expand

 Dockerfile               |   6 +-
 inactive-gitlab-users.py | 258 -----------------------------------------------
 inactive-gitlab-users.sh |   3 +
 3 files changed, 7 insertions(+), 260 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 69375f7..964a842 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,5 +3,7 @@ FROM python:3
 COPY requirements.txt ./
 RUN pip install --no-cache-dir -r requirements.txt
 
-ADD inactive-gitlab-users.py /usr/local/bin
-ENTRYPOINT ["python", "/usr/local/bin/inactive-gitlab-users.py"]
+RUN git clone https://gitlab.gnome.org/Infrastructure/sysadmin-bin.git /usr/local/bin
+COPY inactive-gitlab-users.sh /usr/local/bin
+
+ENTRYPOINT ["/usr/local/bin/inactive-gitlab-users.sh"]
diff --git a/inactive-gitlab-users.sh b/inactive-gitlab-users.sh
new file mode 100755
index 0000000..28591ce
--- /dev/null
+++ b/inactive-gitlab-users.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+inactive-gitlab-users.sh get-inactive -t ${TIMEDELTA_UNIT}:${TIMEDELTA_VALUE} > 
/tmp/inactive-gitlab-users.json


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]