Changeset View
Changeset View
Standalone View
Standalone View
bin/quickstart.sh
Show All 36 Lines | |||||
test ! -z "$(grep 'systemd.unified_cgroup_hierarchy=0' /proc/cmdline)" || \ | test ! -z "$(grep 'systemd.unified_cgroup_hierarchy=0' /proc/cmdline)" || \ | ||||
die "systemd containers only work with cgroupv1 (use 'grubby --update-kernel=ALL --args=\"systemd.unified_cgroup_hierarchy=0\"' and a reboot to fix)" | die "systemd containers only work with cgroupv1 (use 'grubby --update-kernel=ALL --args=\"systemd.unified_cgroup_hierarchy=0\"' and a reboot to fix)" | ||||
base_dir=$(dirname $(dirname $0)) | base_dir=$(dirname $(dirname $0)) | ||||
# Always reset .env with .env.example | # Always reset .env with .env.example | ||||
cp src/.env.example src/.env | cp src/.env.example src/.env | ||||
if [ -f "src/.env.local" ]; then | if [ -f "src/env.local" ]; then | ||||
# Ensure there's a line ending | # Ensure there's a line ending | ||||
echo "" >> src/.env | echo "" >> src/.env | ||||
cat src/.env.local >> src/.env | cat src/env.local >> src/.env | ||||
fi | fi | ||||
docker pull docker.io/kolab/centos7:latest | docker pull docker.io/kolab/centos7:latest | ||||
docker-compose down --remove-orphans | docker-compose down --remove-orphans | ||||
docker-compose build coturn kolab mariadb openvidu kurento-media-server pdns-sql proxy redis nginx | docker-compose build coturn kolab mariadb openvidu kurento-media-server pdns-sql proxy redis nginx | ||||
bin/regen-certs | bin/regen-certs | ||||
Show All 35 Lines | |||||
docker-compose up -d nginx | docker-compose up -d nginx | ||||
pushd ${base_dir}/src/ | pushd ${base_dir}/src/ | ||||
rm -rf database/database.sqlite | rm -rf database/database.sqlite | ||||
./artisan db:ping --wait | ./artisan db:ping --wait | ||||
php -dmemory_limit=512M ./artisan migrate:refresh --seed | php -dmemory_limit=512M ./artisan migrate:refresh --seed | ||||
./artisan data:import || : | ./artisan data:import || : | ||||
./artisan swoole:http stop >/dev/null 2>&1 || : | ./artisan octane:stop >/dev/null 2>&1 || : | ||||
SWOOLE_HTTP_DAEMONIZE=true ./artisan swoole:http start | nohup ./artisan octane:start --host=$(grep OCTANE_HTTP_HOST .env | tail -n1 | sed "s/OCTANE_HTTP_HOST=//") > octane.out & | ||||
./artisan horizon:terminate >/dev/null 2>&1 || : | ./artisan horizon:terminate >/dev/null 2>&1 || : | ||||
nohup ./artisan horizon >/dev/null 2>&1 & | nohup ./artisan horizon > horizon.out & | ||||
popd | popd | ||||