1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-10 01:16:21 +00:00
Felix Bartels 94a2b3ad12 some more shellcheck
fixes #41

Signed-off-by: Felix Bartels <felix@host-consultants.de>
2019-02-26 17:00:32 +01:00

14 lines
337 B
Bash
Executable File

#!/bin/sh
if [ ! "$(id -u)" -eq 0 ]; then
echo "This script may need to be run as root to be able to use docker/docker-compose through it."
fi
cd "$(dirname "$0")"
docker run \
--rm -it \
-u $(id -u ${USER}):$(id -g ${USER}) \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${PWD}/..:/kopano-docker/ \
$(docker build -q .) $@