增加任务模板参数的长文本类型

This commit is contained in:
data-infra 2024-06-29 23:31:54 +08:00
parent a9cbc70b7c
commit 90d21d577e
5 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01 -f install/docker/Dockerfile .
# docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.02 -f install/docker/Dockerfile .
FROM ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:base-python3.9-amd64-20231001

View File

@ -44,16 +44,16 @@ mysql> flush privileges;
docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:base-python3.9 -f install/docker/Dockerfile-base .
使用基础镜像构建生产镜像
docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01 -f install/docker/Dockerfile .
docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.02 -f install/docker/Dockerfile .
构建frontend镜像
docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.01 -f install/docker/dockerFrontend/Dockerfile .
docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.02 -f install/docker/dockerFrontend/Dockerfile .
```
## 镜像拉取(如果你不参与开发可以直接使用线上镜像)
```
docker pull ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01
docker pull ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.01
docker pull ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.02
docker pull ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.02
```
## deploy myapp (docker-compose)

View File

@ -27,7 +27,7 @@ services:
# retries: 10
frontend:
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.01
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.02
restart: unless-stopped
command: ['sh','-c','nginx -g "daemon off;"']
ports:
@ -38,9 +38,9 @@ services:
- ../../install/docker/dockerFrontend/nginx.80.conf:/etc/nginx/conf.d/default.conf
myapp:
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.02
restart: unless-stopped
command: [ 'bash','-c','sleep 10000000 && /entrypoint.sh' ]
command: [ 'bash','-c','/entrypoint.sh' ]
environment:
STAGE: 'dev'
REDIS_HOST: 'redis'
@ -63,7 +63,7 @@ services:
#
# beat:
# image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01
# image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.02
# restart: "no"
# command: ["bash","-c","celery --app=myapp.tasks.celery_app:celery_app beat --loglevel=info"]
# shm_size: '100gb'
@ -85,7 +85,7 @@ services:
##
#
# worker:
# image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01
# image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.02
# restart: unless-stopped
# # 默认的prefork池针对长时间的任务支持不是很好如果任务运行时间有数分钟/小时,建议启用 Celery 的 -Ofair 命令参数
# command: ["bash","-c","celery --app=myapp.tasks.celery_app:celery_app worker --loglevel=info --pool=prefork -Ofair -c 2 -n worker@%h"]

View File

@ -1,4 +1,4 @@
# docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.01 -f install/docker/dockerFrontend/Dockerfile .
# docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.02 -f install/docker/dockerFrontend/Dockerfile .
FROM nginx

View File

@ -36,10 +36,10 @@ resources:
images:
- name: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard
newName: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard
newTag: 2024.06.01
newTag: 2024.06.02
- name: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend
newName: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend
newTag: 2024.06.01
newTag: 2024.06.02
# kustomize build . | kubectl apply -f -