[damned-lies/oscp] Make sure l10n has an home, also land the ssh config in place
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/oscp] Make sure l10n has an home, also land the ssh config in place
- Date: Fri, 13 Sep 2019 14:04:35 +0000 (UTC)
commit f7cc5806cb8f04eb81dbb165873958d9033893c0
Author: Andrea Veri <averi redhat com>
Date: Fri Sep 13 16:04:28 2019 +0200
Make sure l10n has an home, also land the ssh config in place
Dockerfile | 2 +-
entrypoint.sh | 3 +++
ssh_config | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 1843a23c..1963a119 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,7 +19,7 @@ RUN sed -i 's/Listen\ 80/Listen\ 8080/' /opt/rh/httpd24/root/etc/httpd/conf/http
sed -i 's/_default_:443/_default_:8443/' /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
RUN groupadd l10n -g 1000660000 && \
- useradd l10n -g 1000660000 -u 1000660000 -G apache -r -l && \
+ useradd l10n -g 1000660000 -u 1000660000 -G apache -r -l -m && \
chown l10n:l10n /etc/pki/tls/certs/localhost.crt /etc/pki/tls/private/localhost.key && \
chown l10n:l10n /opt/rh/httpd24/root/var/run/httpd && \
mkdir -p /l10n && \
diff --git a/entrypoint.sh b/entrypoint.sh
index d64e4994..b53a8173 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -8,6 +8,9 @@ sed -i "s/\$SECRET_KEY/${SECRET_KEY}/" /l10n/damnedlies/damnedlies/local_setting
sed -i "s/\$SENTRY_DSN/${SENTRY_DSN}/" /l10n/damnedlies/damnedlies/local_settings.py
sed -i "s/\$GITLAB_TOKEN/${GITLAB_TOKEN}/" /l10n/damnedlies/damnedlies/local_settings.py
+echo 'Fetching ssh_config'
+wget https://gitlab.gnome.org/Infrastructure/damned-lies/blob/oscp/ssh_config -O /home/l10n/.ssh/config
+
/l10n/venv/bin/python manage.py collectstatic
/l10n/venv/bin/python manage.py compile-trans
scl enable rh-python36 httpd24 "httpd -DFOREGROUND"
diff --git a/ssh_config b/ssh_config
new file mode 100644
index 00000000..e0422df0
--- /dev/null
+++ b/ssh_config
@@ -0,0 +1,3 @@
+Host gitlab.gnome.org
+User translations
+IdentityFile ~/.ssh/ssh-privatekey
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]