Add open-webui dropshell template for AI chat interface
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 15s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 15s
This commit is contained in:
14
open-webui/install.sh
Executable file
14
open-webui/install.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
|
||||
_check_required_env_vars "CONTAINER_NAME" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAGE_TAG" "DATA_VOLUME"
|
||||
_check_docker_installed || _die "Docker test failed"
|
||||
|
||||
docker pull "$IMAGE_REGISTRY/$IMAGE_REPO:$IMAGE_TAG" || _die "Failed to pull image"
|
||||
docker volume create "$DATA_VOLUME" 2>/dev/null || true
|
||||
|
||||
bash ./stop.sh || _die "Failed to stop container"
|
||||
_remove_container "$CONTAINER_NAME" || _die "Failed to remove container"
|
||||
bash ./start.sh || _die "Failed to start container"
|
||||
|
||||
echo "Installation of ${CONTAINER_NAME} complete"
|
||||
Reference in New Issue
Block a user