[damned-lies/oscp] Set an UTF-8 locale for the pod
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/oscp] Set an UTF-8 locale for the pod
- Date: Mon, 16 Sep 2019 10:35:25 +0000 (UTC)
commit 3ab90ac2c056ffcae909cbf034b088fb9838e11f
Author: Andrea Veri <averi redhat com>
Date: Mon Sep 16 12:35:23 2019 +0200
Set an UTF-8 locale for the pod
Dockerfile | 3 ++-
entrypoint.sh | 4 ++++
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 8191dc54..5984ed50 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -32,7 +32,8 @@ USER l10n
SHELL ["/usr/bin/scl", "enable", "rh-python36"]
WORKDIR /l10n/damnedlies
RUN virtualenv /l10n/venv && \
- /l10n/venv/bin/pip install -r requirements.txt
+ /l10n/venv/bin/pip install -r requirements.txt && \
+ localedef -c -f UTF-8 -i en_US en_US.UTF-8
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
diff --git a/entrypoint.sh b/entrypoint.sh
index cb92b5db..17a9e9c5 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -13,6 +13,10 @@ mkdir -p /home/l10n/.ssh
ln -s /home/l10n/.ssh_secret/ssh-privatekey /home/l10n/.ssh/ssh-privatekey
wget https://gitlab.gnome.org/Infrastructure/damned-lies/raw/oscp/ssh_config -O /home/l10n/.ssh/config
+echo 'Generating static files'
/l10n/venv/bin/python manage.py collectstatic
+
+echo 'Compiling translations'
/l10n/venv/bin/python manage.py compile-trans
+
scl enable rh-python36 httpd24 "$*"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]