From bec4c919d40d773a447263c9bfd516757fa45f33 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 20 Oct 2026 16:36:44 -0700 Subject: [PATCH] llm, stop using pull=always because then network is required to start the container. --- tasks/workstation/linux/software/llm.yml | 29 ++++++++++++------------ 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/tasks/workstation/linux/software/llm.yml b/tasks/workstation/linux/software/llm.yml index 39d0d04..177e55b 100644 --- a/tasks/workstation/linux/software/llm.yml +++ b/tasks/workstation/linux/software/llm.yml @@ -414,36 +414,35 @@ content: | #!/bin/sh exec 2>&1 + image=ghcr.io/open-webui/open-webui:latest # Wait for Docker to start up. - while [ ! -S /var/run/docker.sock ]; do sleep 1; done # Ensure the old container is gone. - echo "RUN: Stopping..." docker stop open-webui && echo "RUN: Container stopped" || echo "RUN: Container already stopped." - echo "RUN: Deleting..." docker rm -f open-webui && echo "RUN: Container deleted" || echo "RUN: Container already deleted." - # Start the open-webui program. + # Check for any new updates in background. + echo "RUN: Updating..." + docker pull $image & + # Start the open-webui program. set -e exec docker run \ - --pull=always \ --name open-webui \ --network=host -e PORT={{ open_webui_port }} \ - --add-host=host.docker.internal:host-gateway \ -e OLLAMA_BASE_URL=http://0.0.0.0:11434 \ {{ ("-e HF_TOKEN=" ~ hf_token) if hf_token else '' }} \ -e WEBUI_SECRET_KEY={{ open_webui_key }} \ -v open-webui:/app/backend/data \ - ghcr.io/open-webui/open-webui:latest + $image # Unsure why this was not working on Artix with runit. # exec curl 0.0.0.0:8080/health gave a successful response. @@ -457,6 +456,9 @@ # Had to change this to 0.0.0.0, below was still acting weird. #-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \ + + # 20261020, trying to remove this again while leaving the rest. + #--add-host=host.docker.internal:host-gateway \ mode: "0755" - name: Workstation | Linux | Software | LLMs | runit | open-webui | Script | Finish @@ -525,37 +527,36 @@ content: | #!/bin/sh exec 2>&1 + image=ghcr.io/open-webui/open-terminal:latest # Wait for Docker to start up. - while [ ! -S /var/run/docker.sock ]; do sleep 1; done # Ensure the old container is gone. - echo "RUN: Stopping..." docker stop open-terminal && echo "RUN: Container stopped" || echo "RUN: Container already stopped." - echo "RUN: Deleting..." docker rm -f open-terminal && echo "RUN: Container deleted" || echo "RUN: Container already deleted." + # Check for any new updates in background. + echo "RUN: Updating..." + docker pull $image & + # Start the open-terminal program. # https://github.com/open-webui/open-terminal#configuration - set -e exec docker run \ - --pull=always \ --name open-terminal \ --network=host \ -v {{ user_user.home }}/AI-Sandbox:{{ user_user.home }} \ -v {{ user_user.home }}/Code:{{ user_user.home }}/Code \ -e OPEN_TERMINAL_FILE_BROWSER_ROOT={{ user_user.home }} \ -e OPEN_TERMINAL_API_KEY={{ open_terminal_key }} \ - ghcr.io/open-webui/open-terminal:latest \ - run --port {{ open_terminal_port }} + $image run --port {{ open_terminal_port }} # -p {{ open_terminal_port }}:8000 mode: "0755"