From 1093f6b7eea612e4d760a098cd9c23983ca4cd7e Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 3 Jul 2024 18:40:44 +0000 Subject: [PATCH] Update build.sh --- build.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index a3e194e..8e304ae 100644 --- a/build.sh +++ b/build.sh @@ -4,4 +4,14 @@ docker build -t simple-jaeger . # Run the Docker container -docker run -d -p 8080:80 --name simple-jaeger simple-jaeger +docker run -d --name simple-jaeger simple-jaeger + +# Copy the plugin files to the wp-content/plugins directory on the host +docker cp simple-jaeger:/var/www/html/wp-content/plugins/simple-jaeger ./wp-content/plugins/simple-jaeger + +# Stop and remove the container +docker stop simple-jaeger +docker rm simple-jaeger + +# Set the correct permissions for the files +chown -R www-data:www-data wp-content/plugins/simple-jaeger