Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tails-translate-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
tails-translate-docker
Commits
23c1894b
Commit
23c1894b
authored
7 years ago
by
drebs
Browse files
Options
Downloads
Patches
Plain Diff
Collect static files on weblate installation.
parent
e75ab859
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+3
-14
3 additions, 14 deletions
Dockerfile
with
3 additions
and
14 deletions
Dockerfile
+
3
−
14
View file @
23c1894b
...
...
@@ -72,17 +72,6 @@ COPY weblate/settings_proposed_2.10.1.py /var/lib/weblate/config/settings.py
RUN
mkdir
-p
/var/lib/weblate/config
COPY
apache/apache-vhost.conf /var/lib/weblate/config/apache-vhost.conf
# TODO: The following is necessary because Weblate's STATIC_ROOT currently
# points to /var/www/weblate/static, and there's nothing that puts
# Weblate stuff there. I need to understand why this is so.
RUN
sudo
-u
weblate
cp
-r
\
/usr/local/share/weblate/weblate/static/
*
\
/var/www/weblate/static/
# TODO: And this is necessary otherwise the admin page is ugly.
RUN
sudo
-u
weblate
cp
-r
\
/usr/share/python-django-common/django/contrib/admin/static/
*
\
/var/www/weblate/static/
# Some stuff need to be set up so the server can work succesfully (i.e. mysql,
# rsyslog, etc).
COPY
docker/setup-server.sh /usr/local/sbin/
...
...
@@ -90,8 +79,8 @@ COPY docker/setup-server.sh /usr/local/sbin/
# Install Weblate
RUN
/usr/local/sbin/setup-server.sh
;
\
sudo
-u
weblate /usr/local/share/weblate/manage.py migrate
--noinput
;
\
sudo
-u
weblate /usr/local/share/weblate/manage.py createadmin
--password
123
sudo
-u
weblate /usr/local/share/weblate/manage.py createadmin
--password
123
;
\
sudo
-u
weblate /usr/local/share/weblate/manage.py collectstatic
--noinput
# Setup server and serve Weblate using Apache
CMD
/usr/local/sbin/setup-server.sh; \
/usr/sbin/apache2ctl -D FOREGROUND
CMD
/usr/local/sbin/run-server.sh
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment