From a39de5abc7f1445d283eb0770e441050322f75d6 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 3 Jul 2024 18:12:08 +0000 Subject: [PATCH] Update build.sh --- build.sh | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/build.sh b/build.sh index c557797..a3e194e 100644 --- a/build.sh +++ b/build.sh @@ -1,22 +1,7 @@ #!/bin/bash -# Define the URL for downloading the simple-jaeger.php file -PLUGIN_URL="https://git.nixc.us/colin/SimpleJaeger/raw/branch/main/simple-jaeger.php" +# Build the Docker image +docker build -t simple-jaeger . -# Define the target directory -TARGET_DIR="wp-content/plugins/simple-jaeger" - -# Create the target directory if it doesn't exist -mkdir -p $TARGET_DIR - -# Download the simple-jaeger.php file into the target directory -curl -o $TARGET_DIR/simple-jaeger.php $PLUGIN_URL - -# Create a blank tracking-code.php file if it doesn't already exist -touch $TARGET_DIR/tracking-code.php - -# Set the correct permissions for the files -chmod 644 $TARGET_DIR/simple-jaeger.php -chmod 644 $TARGET_DIR/tracking-code.php - -echo "SimpleJaeger plugin has been installed or updated successfully." +# Run the Docker container +docker run -d -p 8080:80 --name simple-jaeger simple-jaeger