Граф коммитов

11 Коммитов

Автор SHA1 Сообщение Дата
Paul McLanahan 1f3ca1bf81 Upload and distribute database updates via S3 (#5334)
A.K.A The Sqlitening!

This removes bedrock's depenence on a database server and moves to
downloading pre-built sqlite database files from s3 on a schedule. There
is also a clock process that will update and upload such a database on a
schedule as well. This should mean more stability, speed, and
reliability for bedrock, as well as quicker development due to easy to
download pre-populated databases.
2018-03-29 14:24:22 -05:00
Paul McLanahan e8d6ca674b Cleanup bin dir and move run scripts to bin 2017-02-22 15:53:31 -05:00
Paul McLanahan 841f1a5361 Fix bug 1315082: Store git repo state in the db
This reverts commit d962ef4b77
which itself reverted an earlier attempt at this but which
caused some tests to fail.
2016-12-16 15:07:08 -05:00
Josh Mize d962ef4b77 Revert "Fix bug 1315082: Reset git repos on failed db updates" 2016-12-15 16:32:24 -05:00
Paul McLanahan 6c91d7b5ab Fix bug 1315082: Retry git repos on failed db updates
Store the last successfully updated git hash in the
database. As long as we only update said hash upon
successful completion of an import it should try again
next time. Also switch product-details and security-
advisory import commands to simply update all files
when a git update is detected.
2016-12-15 13:43:45 -05:00
Paul McLanahan eb1a5b6369 Fix supervisor running in dev
This was done before using a different process type in
Procfile, but only "web" and "cmd" types are served as
HTTP traffic, so that wouldn't work. This new direction
should work for any instance for which we'd like to use
supervisord.

Also reunified the cron.py file and used arguments to
determine which jobs are scheduled.
2016-09-30 15:16:21 -04:00
Paul McLanahan 2888eee4de Give ability to run supervisor for dev
This will allow us to run supervisord in www-dev
that will run the site and a process to keep l10n
updated. It allows us to run this without also running
the other cron tasks that update the DB in every container,
since we use a separate clock container for that. Demo instances
will also run the DB update process via supervisor.
2016-09-29 13:11:50 -04:00
Josh Mize d1d330fcf1 Revert "Add supervisor to Procfile for bug 1266665" 2016-04-25 15:24:54 -05:00
Josh Mize 471e74c8ab Add supervisor to Procfile for bug 1266665 2016-04-25 11:28:06 -05:00
Paul McLanahan d0705feab1 Convert cron script to just call management commands
Currently it imports the whole django setup and commands
and runs those functions, but we've run into issues as
some of these commands don't expect for the process to
persist. This change makes the cron script simply call
the same commands in a subshell.
2016-03-22 16:31:06 -04:00
Paul McLanahan 2837853c03 Add a clock process
Will allow us to remove jenkins periodic task
2016-03-10 11:19:26 -05:00