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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
tails-translate-docker
Commits
2c176ad5
Commit
2c176ad5
authored
7 years ago
by
drebs
Browse files
Options
Downloads
Patches
Plain Diff
Add and use a proposed settings.py file
parent
a57760de
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+13
-4
13 additions, 4 deletions
Dockerfile
docker/setup-server.sh
+4
-0
4 additions, 0 deletions
docker/setup-server.sh
weblate/settings_proposed_2.10.1.py
+639
-0
639 additions, 0 deletions
weblate/settings_proposed_2.10.1.py
with
656 additions
and
4 deletions
Dockerfile
+
13
−
4
View file @
2c176ad5
...
...
@@ -57,12 +57,21 @@ RUN puppet apply --debug \
--hiera_config
/etc/puppet/hiera.yaml
\
/etc/puppet/manifests/default.pp
# Weblate is currently using syslog for logging, so we have to have rsyslog
# installed prior to running Weblate.
# TODO: puppetize logging
RUN
apt-get
-y
install
rsyslog
# put Weblate's settings.py in place
COPY
weblate/settings_
example
_2.10.1.py /usr/local/share/weblate/weblate/settings.py
COPY
weblate/settings_
proposed
_2.10.1.py /usr/local/share/weblate/weblate/settings.py
# install Weblate
RUN
/usr/local/share/weblate/manage.py migrate
--noinput
RUN
/usr/local/share/weblate/manage.py createadmin
--password
123
COPY
docker/setup-server.sh /usr/local/sbin/
RUN
/usr/local/sbin/setup-server.sh
;
\
/usr/local/share/weblate/manage.py migrate
--noinput
;
\
/usr/local/share/weblate/manage.py createadmin
--password
123
# add an entrypoint for serving Weblate
CMD
/usr/local/share/weblate/manage.py runserver 0.0.0.0:8001
CMD
/usr/local/sbin/setup-server.sh; \
/usr/local/share/weblate/manage.py runserver 0.0.0.0:8001
This diff is collapsed.
Click to expand it.
docker/setup-server.sh
0 → 100755
+
4
−
0
View file @
2c176ad5
#!/bin/sh
service rsyslog start
service mysql start
This diff is collapsed.
Click to expand it.
weblate/settings_proposed_2.10.1.py
0 → 100644
+
639
−
0
View file @
2c176ad5
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