pycontw / pycon.tw

PyCon TW Proposal System & Backend Server
https://tw.pycon.org/prs
MIT License
95 stars 107 forks source link

[Feature Request] automatically inject testing data to development db #891

Open tai271828 opened 4 years ago

tai271828 commented 4 years ago

Describe the solution you'd like

Currently we could launch docker contains to host our website and the corresponding db for development. It will be very helpful to prepare the testing data when building the corresponding development docker image.

Describe alternatives you've considered

Inject the data in contrib with ./manage loaddata during docker image build.

Additional context

psql command manipulation.

Invite the community to discuss and vote

Please add a thumbs-up/down to show your +1 or -1 to this idea : D

uranusjr commented 4 years ago

It may be easier to add a de-identified dump of the production database, and psql < it to the development docker image.