mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-02 02:11:19 +08:00
Move the db initialization to a side container so we don't have to rebuild to nuke the db.
This commit is contained in:
@@ -28,5 +28,3 @@ COPY koji.conf /etc/module_build_service/
|
||||
COPY copr.conf /etc/module_build_service/
|
||||
|
||||
COPY . /opt/module_build_service/
|
||||
|
||||
RUN python2 ./manage.py upgradedb && python2 manage.py generatelocalhostcert
|
||||
|
||||
@@ -30,7 +30,22 @@ services:
|
||||
links:
|
||||
- scheduler
|
||||
- fedmsg-relay
|
||||
depends_on:
|
||||
- upgradedb
|
||||
- generatelocalhostcert
|
||||
volumes:
|
||||
# module_build_service sources are bind-mounted, so you don't have to rebuild
|
||||
- ./:/opt/module_build_service/:z
|
||||
command: python2 manage.py runssl
|
||||
|
||||
upgradedb:
|
||||
build: .
|
||||
volumes:
|
||||
- ./:/opt/module_build_service/:z
|
||||
command: python2 manage.py upgradedb
|
||||
|
||||
generatelocalhostcert:
|
||||
build: .
|
||||
volumes:
|
||||
- ./:/opt/module_build_service/:z
|
||||
command: python2 manage.py generatelocalhostcert
|
||||
|
||||
Reference in New Issue
Block a user