tacticalrmm/docker/image-build.sh

17 lines
452 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
# tactical tactical-nginx tactical-meshcentral tactical-salt
DOCKER_IMAGES="tactical-frontend"
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-16 19:28:10 +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" .
done