Xicheng Chang 51ac20929b Initial commmit
docker/build/compass is for building compass docker image, which
should be triggered automatically by CI(or other periodic jobs).
under docker/build/scripts there is a sample start that can be
included in Dockerfile(uncomment CMD["/root/sample_start"] when
testing this image build.

Change-Id: I05dbbde67bd82803971cf3f90a8dbea6d57b0776
2014-12-12 13:44:43 -08:00

10 lines
407 B
Bash

#/bin/bash
set -e
/opt/compass/bin/manage_db.py createdb
# /opt/compass/bin/clean_installers.py
# /opt/compass/bin/clean_installation_logs.py
/usr/sbin/apachectl -D NO_DETACH -D FOREGROUND
/usr/bin/redis-server &
CELERY_CONFIG_MODULE=compass.utils.celeryconfig_wrapper C_FORCE_ROOT=1 /opt/compass/bin/celery worker &> /tmp/celery-worker.log &
/opt/compass/bin/progress_update.py &> /tmp/progress_update.log