J2897 icon

build_n8n_custom

J2897 | PRO | 09/13/24 12:23:20 AM UTC (Edited) | 0 ⭐ | 648 👁️ | Never ⏰ | []
Bash |

500 B

|

None

|

0 👍

/

0 👎

#! /bin/bash
 
# Define the image name and tag
IMAGE_NAME="custom-n8n"
IMAGE_TAG="latest"
LOG_FILE="build.log"
 
# Build the custom Docker image and log the output
echo "Building the custom n8n image..."
docker build -t $IMAGE_NAME:$IMAGE_TAG . | tee $LOG_FILE
 
# Display success message
if [ ${PIPESTATUS[0]} -eq 0 ]; then
    echo "Custom n8n image built successfully: $IMAGE_NAME:$IMAGE_TAG"
else
    echo "Failed to build the custom n8n image. Check the log file: $LOG_FILE"
    exit 1
fi
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎