#!/bin/bash # Check if templateId is provided if [ -z "$1" ]; then echo "Usage: $0 " exit 1 fi TEMPLATE_ID=$1 echo "Usage: $1 " # Build the Docker image with the given templateId mkdir -p /rdata/logs/builds; docker build -t t${TEMPLATE_ID} /rdata/templates/template${TEMPLATE_ID} 2>&1 | tee /rdata/logs/builds/build${TEMPLATE_ID}.log