1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-19 20:32:59 +00:00

add linting for shell scripts and Dockerfiles

* 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
This commit is contained in:
Felix Bartels
2019-03-14 07:46:54 +01:00
committed by GitHub
parent f5a24f2150
commit 91ccf89765
26 changed files with 133 additions and 79 deletions
+9 -3
View File
@@ -7,10 +7,15 @@ fi
source base/create-kopano-repo.sh
component=${1:-core}
COMPONENT=$(echo "$component" | tr a-z A-Z)
if [ -e ./env ]; then
source ./env
if [ -e ./.env ]; then
# this is a kind of ugly hack to be able to source the env file
# this is sadly needed since postfix in https://github.com/tomav/docker-mailserver/ cannot deal with quotes values
tmpfile=$(mktemp /tmp/kopano-docker-env.XXXXXX)
sed -i '/LDAP_QUERY_FILTER/s/^/#/g' "$tmpfile"
sed -i '/SASLAUTHD_LDAP_FILTER/s/^/#/g' "$tmpfile"
# shellcheck disable=SC1090
source "$tmpfile"
fi
case $component in
@@ -49,3 +54,4 @@ filename=$(h5ai_query "$component")
currentVersion=$(version_from_filename "$filename")
echo "$currentVersion"
rm "$tmpfile"