diff --git a/AI/open-webui/0.1.108/22.03-lts-sp4/Dockerfile b/AI/open-webui/0.1.108/22.03-lts-sp4/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..f7ec8f73725ffd389843586febf950eed2b261ed --- /dev/null +++ b/AI/open-webui/0.1.108/22.03-lts-sp4/Dockerfile @@ -0,0 +1,31 @@ +FROM openeuler/openeuler:22.03-lts-sp4 + +WORKDIR /root + +RUN dnf install -y \ + git \ + wget \ + python3-pip + +RUN git clone --branch v0.1.108 https://github.com/open-webui/open-webui.git + +RUN wget https://nodejs.org/download/release/v18.0.0/node-v18.0.0-linux-${TARGETARCH}.tar.gz && \ + tar -xvf node-v18.0.0-linux-${TARGETARCH}.tar.gz -C /usr/local && \ + ln -s /usr/local/node-v18.0.0-linux-${TARGETARCH}/bin/node /usr/local/bin/node && \ + ln -s /usr/local/node-v18.0.0-linux-${TARGETARCH}/bin/npm /usr/local/bin/npm ;\ + +WORKDIR /root/open-webui + +RUN npm config set registry https://registry.npmmirror.com/ && \ + npm i && \ + npm run build && \ + pip install pydantic -i https://mirrors.aliyun.com/pypi/simple/ && \ + pip install -r backend/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ && \ + pip install fastapi_sso \ + transformers \ + accelerate + +ENV HF_ENDPOINT=https://hf-mirror.com + +CMD ["/bin/bash", "-c", "/root/open-webui/backend/start.sh"] + diff --git a/AI/open-webui/README.md b/AI/open-webui/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c0d95195e2d10fdc1bb3146d0940c4f7ed864293 --- /dev/null +++ b/AI/open-webui/README.md @@ -0,0 +1,31 @@ +# open-webui + +# Quick reference + +- The official dlrm docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) + +# Build reference + +1. Build images and push: +```shell +docker buildx build -t "openeuler/open-webui:$TAG" --platform linux/amd64,linux/arm64 . --push +``` + +We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/) + +2. Run: +```shell +docker run -itd --name openwebui openeuler/open-webui:$TAG +docker exec -it openwebui /bin/bash +``` + +# Supported tags and respective Dockerfile links + +- 1.0-oe2203sp4: open-webui v1.0, openEuler 22.03 LTS SP4 + +## Operating System +Linux/Unix, ARM64 or x86-64 architecture. diff --git a/AI/open-webui/doc/image-info.yml b/AI/open-webui/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..7c15b45cf77ae69d329d9da7b0223daa6686de27 --- /dev/null +++ b/AI/open-webui/doc/image-info.yml @@ -0,0 +1,51 @@ +name: open-webui +category: ai +description: Open-WebUI service container with preconfigured settings +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + open-webui镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |----------|-------------|------------------| + |[1.0-oe2203sp4](https://gitee.com/openeuler/openeuler-docker-images/blob/master/AI/open-webui/1.0/22.03-lts-sp4/Dockerfile)| open-webui 1.0 on openEuler 22.03-LTS-SP4 | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/open-webui:{Tag} + ``` + +usage: | + - 启动容器 + ``` + docker run -itd --name open-webui openeuler/open-webui:{Tag} + ``` + 用户可根据自身需求选择对应版本的{Tag}、容器启动的选项。`open-webui`启动之后,通过`docker exec -it open-webui /bin/bash`进入容器的/opt/open-webui目录,就可以运行open-webui的代码。 + + + - 容器测试 + + 查看运行日志 + ``` + docker logs -f open-webui + ``` + + 使用shell交互 + ``` + docker exec -it open-webui /bin/bash + ``` + +license: MIT license +similar_packages: + - Ollama: 一款非常轻量且易于安装的工具,旨在为开发者提供便捷的语言模型 API 支持。 +dependency: + - python3-pip + - pydantic + - fastapi_sso + - transformers + - accelerate + - npm diff --git a/AI/open-webui/doc/picture/logo.png b/AI/open-webui/doc/picture/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..a652a5fb87acf0f253a727d0ed9d672b9837a780 Binary files /dev/null and b/AI/open-webui/doc/picture/logo.png differ diff --git a/AI/open-webui/meta.yml b/AI/open-webui/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..d31b32dbfec0aabafb1ca914927f99558275bf99 --- /dev/null +++ b/AI/open-webui/meta.yml @@ -0,0 +1,2 @@ +0.1.108-oe2203sp4: + path: 0.1.108/22.03-lts-sp4/Dockerfile