Update caddy/config/caddyfile/check_caddyfile.sh
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 9s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 9s
This commit is contained in:
25
scrutiny/install.sh
Executable file
25
scrutiny/install.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "${SCRIPT_DIR}/_volumes.sh"
|
||||
|
||||
_check_required_env_vars "CONTAINER_NAME" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAGE_TAG"
|
||||
|
||||
# Create volumes
|
||||
# shellcheck disable=SC2046
|
||||
create_items $(get_scrutiny_volumes) || _die "Failed to create volumes"
|
||||
|
||||
# Pull image
|
||||
echo "Pulling ${IMAGE_REGISTRY}/${IMAGE_REPO}:${IMAGE_TAG}..."
|
||||
docker pull "${IMAGE_REGISTRY}/${IMAGE_REPO}:${IMAGE_TAG}" || _die "Failed to pull image"
|
||||
|
||||
# Stop and remove existing container
|
||||
bash ./stop.sh 2>/dev/null || true
|
||||
_remove_container "$CONTAINER_NAME" 2>/dev/null || true
|
||||
|
||||
# Start service
|
||||
bash ./start.sh || _die "Failed to start container"
|
||||
|
||||
echo "Installation complete for service ${CONTAINER_NAME}."
|
||||
echo "Web UI available at http://localhost:${WEB_PORT:-8080}"
|
||||
Reference in New Issue
Block a user