Update ansible-lint

Required a lot of renaming :(
This commit is contained in:
Jake Howard
2020-09-26 17:53:47 +01:00
parent cc43910be6
commit 24d11deeae
54 changed files with 12 additions and 5 deletions

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -ex
docker run --rm -it --name=ctop --volume /var/run/docker.sock:/var/run/docker.sock:ro quay.io/vektorlab/ctop:latest

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
exec docker-compose -f "/opt/$1/docker-compose.yml" "${@:2}"

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
for compose_file in /opt/**/docker-compose.yml; do
docker-compose -f "$compose_file" "$@"
done

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
for compose_file in /opt/**/docker-compose.yml; do
if [[ $(docker-compose -f "$compose_file" ps -q) ]]; then
docker-compose -f "$compose_file" down --remove-orphans
docker-compose -f "$compose_file" up -d
else
echo "> Skipping $compose_file as it's not running."
fi
done

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
exec docker-compose -f /opt/nextcloud/docker-compose.yml exec -u abc nextcloud php /config/www/nextcloud/occ "$@"