tacticalrmm/docker/image-build.sh

15 lines
462 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-22 17:03:40 +00:00
DOCKER_IMAGES="tactical tactical-frontend tactical-nginx tactical-meshcentral tactical-salt tactical-nats"
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 04:39:03 +00:00
docker build --pull --no-cache --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