update aihub

This commit is contained in:
chendile 2023-04-06 23:52:14 +08:00
parent d1efe3d26c
commit 28aa5d8469
4 changed files with 4 additions and 6 deletions

View File

@ -2,13 +2,13 @@
FROM ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:base-python3.9
RUN wget https://docker-76009.sz.gfp.tencent-cloud.com/github/cube-studio/aihub/deeplearning/aihub.zip && mkdir -p /cube-studio/aihub && unzip aihub.zip -d /cube-studio/aihub/ && rm aihub.zip
COPY install/docker/docker-add-file/rest.py /usr/local/lib/python3.9/dist-packages/kubernetes/client/rest.py
COPY install/docker/docker-add-file/__init__.py /usr/local/lib/python3.9/dist-packages/marshmallow_enum/__init__.py
RUN pip3 install Pillow
COPY myapp /home/myapp/myapp
COPY myapp/static/appbuilder/frontend /data/web/frontend
COPY aihub /cube-studio/aihub
ENV PATH=/home/myapp/myapp/bin:$PATH
ENV PYTHONPATH=/home/myapp:$PYTHONPATH

View File

@ -11,7 +11,7 @@ COPY install/docker/sources.list /etc/apt/sources.list
RUN apt-get clean all && apt-get update -y
# 安装运维工具
RUN apt install -y --force-yes --no-install-recommends apt-utils ca-certificates software-properties-common vim apt-transport-https gnupg2 ca-certificates-java rsync jq wget git dnsutils iputils-ping net-tools curl mysql-client locales zip
RUN apt install -y --force-yes --no-install-recommends apt-utils ca-certificates software-properties-common vim apt-transport-https gnupg2 ca-certificates-java rsync jq wget git dnsutils iputils-ping net-tools curl mysql-client locales zip unzip
# 安装python
RUN add-apt-repository -y ppa:deadsnakes/ppa && apt update && apt install -y libsasl2-dev libpq-dev python3-pip python3.6-distutils

View File

@ -51,7 +51,6 @@ services:
volumes:
- ../../myapp/static/appbuilder/frontend:/data/web/frontend
- ../../myapp/:/home/myapp/myapp/
- ../../aihub/:/cube-studio/aihub/
- ./file:/data/k8s/kubeflow
- ./entrypoint.sh:/entrypoint.sh
- ./config.py:/home/myapp/myapp/config.py

View File

@ -169,8 +169,7 @@
"require": 1,
"choice": [
"当前平台",
"huggingface",
"魔塔"
"huggingface"
],
"range": "",
"default": "当前平台",
@ -246,7 +245,7 @@
"item_type": "str",
"label": "模型来源地",
"require": 1,
"choice": ["模型管理","推理服务","huggingface","魔塔"],
"choice": ["模型管理","推理服务","huggingface"],
"range": "",
"default": "模型管理",
"placeholder": "",