2020-03-06 13:41:59 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# build zammads docker & docker-compose images
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
DOCKER_IMAGES="zammad zammad-elasticsearch zammad-postgresql"
|
|
|
|
|
|
|
|
# shellcheck disable=SC2153
|
|
|
|
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
|
2021-03-18 20:53:46 +00:00
|
|
|
echo "Build Zammad Docker image ${DOCKER_IMAGE} for local or ci tests"
|
|
|
|
docker build --pull --no-cache --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" -t "${DOCKER_IMAGE}-local" -f "containers/${DOCKER_IMAGE}/Dockerfile" .
|
2020-03-06 13:41:59 +00:00
|
|
|
done
|