build.sh 366 B

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