[PR #848] [MERGED] Adding Makefile and LLM update script #7283

Closed
opened 2025-11-11 17:22:19 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/848
Author: @Patrice-Gaudicheau
Created: 2/22/2024
Status: Merged
Merged: 2/28/2024
Merged by: @tjbck

Base: devHead: feat-makefile-llm-update


📝 Commits (5)

  • 5adff77 Adding Makefile and LLM update script
  • 6bc627b Updated code comments to English.
  • 7d0d504 Updated code comments to English.
  • a016171 fix: update Makefile and rename script for open-webui integration
  • 0f6bdaa feat: implemented user confirmation for safe removal of containers and volumes in Makefile

📊 Changes

3 files changed (+43 additions, -0 deletions)

View changed files

Makefile (+25 -0)
confirm_remove.sh (+8 -0)
update_ollama_models.sh (+10 -0)

📄 Description

This Pull Request presents a Makefile and LLM Update Script designed to improve the workflow of managing and updating Large Language Models (LLMs) in Docker containers.

Main characteristics

  • Makefile: Provides a set of commands for automated management of Docker containers, making it easier to manage common tasks such as starting, stopping, and deleting containers. The Makefile includes the following commands:

    • install: Starts containers using docker-compose up -d.
    • remove: Stop and remove containers and volumes with docker-compose down -v.
    • start/stop: Commands to manage the state of containers.
    • update: Pulls the latest changes from the git repository, rebuilds and restarts the containers. This also includes running the new LLM update script to ensure that all installed LLMs are up to date.
  • LLM Update Script (update_llm.sh): Automates the process of retrieving and updating each LLM installed in the Docker container. This script dynamically retrieves the list of installed LLMs and updates them with the latest versions, ensuring that the models are up to date and reducing the risk of version-related issues.

Motivation

The motivation behind this contribution is to streamline the LLM management process within Dockerized environments.

By automating container updates and management, developers can focus more on development and less on maintenance tasks.

Additionally, it is crucial to ensure that LLMs are kept up to date to take advantage of the latest security improvements and patches.

This contribution is aimed at developers and teams working with LLMs in Docker containers, providing them with tools to improve their efficiency and the maintainability of their projects.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/848 **Author:** [@Patrice-Gaudicheau](https://github.com/Patrice-Gaudicheau) **Created:** 2/22/2024 **Status:** ✅ Merged **Merged:** 2/28/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feat-makefile-llm-update` --- ### 📝 Commits (5) - [`5adff77`](https://github.com/open-webui/open-webui/commit/5adff7767f1dcbc6dca77dff32e9f0deeb248705) Adding Makefile and LLM update script - [`6bc627b`](https://github.com/open-webui/open-webui/commit/6bc627bbfba1bf9232286e53993a857aa5cc005b) Updated code comments to English. - [`7d0d504`](https://github.com/open-webui/open-webui/commit/7d0d504390c55f09aa31dc6ba555dc8497aab0bb) Updated code comments to English. - [`a016171`](https://github.com/open-webui/open-webui/commit/a016171573f9da5d09c1030776d4a9050e55569b) fix: update Makefile and rename script for open-webui integration - [`0f6bdaa`](https://github.com/open-webui/open-webui/commit/0f6bdaa60238e15832bcbe0414b5d62d3fe55669) feat: implemented user confirmation for safe removal of containers and volumes in Makefile ### 📊 Changes **3 files changed** (+43 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `Makefile` (+25 -0) ➕ `confirm_remove.sh` (+8 -0) ➕ `update_ollama_models.sh` (+10 -0) </details> ### 📄 Description This Pull Request presents a Makefile and LLM Update Script designed to improve the workflow of managing and updating Large Language Models (LLMs) in Docker containers. ### Main characteristics - **Makefile:** Provides a set of commands for automated management of Docker containers, making it easier to manage common tasks such as starting, stopping, and deleting containers. The Makefile includes the following commands: - `install`: Starts containers using `docker-compose up -d`. - `remove`: Stop and remove containers and volumes with `docker-compose down -v`. - `start`/`stop`: Commands to manage the state of containers. - `update`: Pulls the latest changes from the git repository, rebuilds and restarts the containers. This also includes running the new LLM update script to ensure that all installed LLMs are up to date. - **LLM Update Script (`update_llm.sh`):** Automates the process of retrieving and updating each LLM installed in the Docker container. This script dynamically retrieves the list of installed LLMs and updates them with the latest versions, ensuring that the models are up to date and reducing the risk of version-related issues. ### Motivation The motivation behind this contribution is to streamline the LLM management process within Dockerized environments. By automating container updates and management, developers can focus more on development and less on maintenance tasks. Additionally, it is crucial to ensure that LLMs are kept up to date to take advantage of the latest security improvements and patches. This contribution is aimed at developers and teams working with LLMs in Docker containers, providing them with tools to improve their efficiency and the maintainability of their projects. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:22:19 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7283