tacticalrmm/docker/image-build.sh

16 lines
430 B
Bash
Raw Normal View History

2020-11-16 19:28:10 +00:00
#!/usr/bin/env bash
#
# build docker-compose images
set -o errexit
set -o pipefail
2020-11-17 02:22:28 +00:00
2020-11-18 03:55:13 +00:00
# tactical-frontend tactical-nginx tactical-salt --no-cache
DOCKER_IMAGES="tactical"
2020-11-16 19:28:10 +00:00
cd ..
for DOCKER_IMAGE in ${DOCKER_IMAGES}; do
2020-11-17 02:22:28 +00:00
echo "Building Tactical Image: ${DOCKER_IMAGE}..."
2020-11-18 03:55:13 +00:00
docker build --pull --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" -t "${DOCKER_IMAGE}" -f "docker/containers/${DOCKER_IMAGE}/dockerfile" .
2020-11-16 19:28:10 +00:00
done