Changeset View
Changeset View
Standalone View
Standalone View
bin/quickstart.sh
Show All 14 Lines | 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)) | ||||
export DOCKER_BUILDKIT=0 | export DOCKER_BUILDKIT=0 | ||||
docker-compose down --remove-orphans | docker-compose down -t 1 --remove-orphans | ||||
docker volume rm kolab_mariadb || : | docker volume rm kolab_mariadb || : | ||||
docker volume rm kolab_imap || : | docker volume rm kolab_imap || : | ||||
docker volume rm kolab_ldap || : | docker volume rm kolab_ldap || : | ||||
# We can't use the following artisan commands because it will just block if redis is unavailable: | # We can't use the following artisan commands because it will just block if redis is unavailable: | ||||
# src/artisan octane:stop >/dev/null 2>&1 || : | # src/artisan octane:stop >/dev/null 2>&1 || : | ||||
# src/artisan horizon:terminate >/dev/null 2>&1 || : | # src/artisan horizon:terminate >/dev/null 2>&1 || : | ||||
# we therefore just kill all artisan processes running. | # we therefore just kill all artisan processes running. | ||||
pkill -9 -f artisan || : | pkill -9 -f artisan || : | ||||
pkill -9 -f swoole || : | pkill -9 -f swoole || : | ||||
bin/regen-certs | bin/regen-certs | ||||
docker-compose build coturn kolab mariadb meet pdns proxy redis haproxy roundcube | docker-compose build coturn ldap kolab mariadb meet pdns proxy redis haproxy roundcube | ||||
docker-compose up -d coturn kolab mariadb meet pdns redis roundcube | docker-compose up -d coturn ldap kolab mariadb meet pdns redis roundcube | ||||
# Workaround until we have docker-compose --wait (https://github.com/docker/compose/pull/8777) | # Workaround until we have docker-compose --wait (https://github.com/docker/compose/pull/8777) | ||||
function wait_for_container { | function wait_for_container { | ||||
container_id="$1" | container_id="$1" | ||||
container_name="$(docker inspect "${container_id}" --format '{{ .Name }}')" | container_name="$(docker inspect "${container_id}" --format '{{ .Name }}')" | ||||
echo "Waiting for container: ${container_name} [${container_id}]" | echo "Waiting for container: ${container_name} [${container_id}]" | ||||
waiting_done="false" | waiting_done="false" | ||||
while [[ "${waiting_done}" != "true" ]]; do | while [[ "${waiting_done}" != "true" ]]; do | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |