#!/bin/bash GITLAB_HOST=${GITLAB_HOST:-localhost} GITLAB_EMAIL=${GITLAB_EMAIL:-gitlab@localhost} GITLAB_SUPPORT=${GITLAB_SUPPORT:-support@localhost} REDIS_HOST=${REDIS_HOST:-localhost} REDIS_PORT=${REDIS_PORT:-6379} UNICORN_WORKERS=${UNICORN_WORKERS:-2} SIDEKIQ_CONCURRENCY=${SIDEKIQ_CONCURRENCY:-5} DB_HOST=${DB_HOST:-localhost} DB_NAME=${DB_NAME:-gitlabhq_production} DB_USER=${DB_USER:-root} DB_PASS=${DB_PASS:-} DB_INIT=${DB_INIT:-} DB_POOL=${DB_POOL:-5} # start supervisord /usr/bin/supervisord # start mysql server if ${DB_HOST} is localhost if [ "${DB_HOST}" == "localhost" ]; then DB_INIT="yes" mysql_install_db --user=mysql cat > /etc/supervisor/conf.d/mysqld.conf < /etc/supervisor/conf.d/redis-server.conf <