Skip to content
Snippets Groups Projects
Commit 2c176ad5 authored by drebs's avatar drebs
Browse files

Add and use a proposed settings.py file

parent a57760de
Branches
No related tags found
No related merge requests found
......@@ -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
#!/bin/sh
service rsyslog start
service mysql start
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment