Advertisement
J2897

build_n8n_custom

Sep 12th, 2024 (edited)
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # Define the image name and tag
  4. IMAGE_NAME="custom-n8n"
  5. IMAGE_TAG="latest"
  6. LOG_FILE="build.log"
  7.  
  8. # Build the custom Docker image and log the output
  9. echo "Building the custom n8n image..."
  10. docker build -t $IMAGE_NAME:$IMAGE_TAG . | tee $LOG_FILE
  11.  
  12. # Display success message
  13. if [ ${PIPESTATUS[0]} -eq 0 ]; then
  14.     echo "Custom n8n image built successfully: $IMAGE_NAME:$IMAGE_TAG"
  15. else
  16.     echo "Failed to build the custom n8n image. Check the log file: $LOG_FILE"
  17.     exit 1
  18. fi
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement