Set POLICIES_DIR for greenwave.

This commit is contained in:
Ralph Bean 2017-08-17 20:48:05 +00:00
parent 7b24108876
commit 45fd94c99c
2 changed files with 3 additions and 0 deletions

View file

@ -21,6 +21,8 @@ spec:
python2-flask python2-flask
RUN git clone https://pagure.io/greenwave.git /srv/greenwave RUN git clone https://pagure.io/greenwave.git /srv/greenwave
RUN ln -s /etc/greenwave/settings.py /srv/greenwave/conf/settings.py RUN ln -s /etc/greenwave/settings.py /srv/greenwave/conf/settings.py
RUN mkdir /etc/greenwave/policies/
RUN ln -s /srv/greenwave/conf/policies/fedora.yaml /etc/greenwave/policies/fedora.yaml
WORKDIR /srv/greenwave WORKDIR /srv/greenwave
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- greenwave.wsgi:app ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- greenwave.wsgi:app

View file

@ -11,3 +11,4 @@ data:
PORT = 8080 PORT = 8080
WAIVERDB_API_URL = 'https://waiverdb-stg-web-waiverdb.app.os.stg.fedoraproject.org/api/v1.0' WAIVERDB_API_URL = 'https://waiverdb-stg-web-waiverdb.app.os.stg.fedoraproject.org/api/v1.0'
DEBUG = False DEBUG = False
POLICIES_DIR = /etc/greenwave/policies/