run docker dev nextcloud
- missing clone info - missing setup of certificates (mkcert and so one ... )
This commit is contained in:
43
nextcloud_devenv/runit.sh
Executable file
43
nextcloud_devenv/runit.sh
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
# SPDX-FileCopyrightText: 2025 artlog@l0g.eu
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#
|
||||
toolsdir=lib
|
||||
pushd $toolsdir >/dev/null
|
||||
toolsdir=$(pwd)
|
||||
source metascript.sh
|
||||
popd >/dev/null
|
||||
|
||||
while [[ $# > 0 ]]
|
||||
do
|
||||
case "$1" in
|
||||
up|down)
|
||||
action=$1
|
||||
;;
|
||||
*)
|
||||
parsemetaarg "$1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
metarun=metarun
|
||||
metasudo=sudo
|
||||
|
||||
enforcedir nextcloud-docker-dev exists
|
||||
|
||||
pushd nextcloud-docker-dev
|
||||
|
||||
if [[ $action = down ]]
|
||||
then
|
||||
$metarun podman-compose down
|
||||
fi
|
||||
|
||||
services=(nextcloud proxy database-mysql)
|
||||
|
||||
if [[ $action == up ]]
|
||||
then
|
||||
$metarun podman-compose --env-file $(pwd)/.env $action "${services[@]}"
|
||||
fi
|
||||
|
||||
popd
|
||||
Reference in New Issue
Block a user