#!/bin/bash set -euxo pipefail cd "$(dirname "$0")/.." source tool/common.sh ./tool/build-dev-container.sh echo "Running development instance on http://localhost. To access it in an Android Emulator use http://10.0.2.2" container="$(docker run -d --rm -v nextcloud-neon-dev:/usr/src/nextcloud -v nextcloud-neon-dev:/var/www/html -p "80:80" --add-host=host.docker.internal:host-gateway "$(image_tag "dev:latest")")" function cleanup() { docker kill "$container" } trap cleanup EXIT docker logs -f "$container" & sleep infinity