mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 07:56:12 +00:00
* add hadolint for dockerfile linting * add hadofile config * add checks for dockerfiles and shellcheck into makefile * shellcheck fixes * add workaround so that .env can be sourced again from version.sh * hadolint fixes * print progress of build/run.sh * fix check for jq in setup.sh relates to #41 and #26
16 lines
355 B
Bash
Executable File
16 lines
355 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")" || exit
|
|
|
|
docker build .
|
|
|
|
docker run \
|
|
--rm -it \
|
|
-u "$(id -u)":"$(id -g)" \
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
-v "$(pwd)"/..:/kopano-docker/ \
|
|
"$(docker build -q .)" "$@"
|