Skip to content

Commit

Permalink
增加任务模板参数的长文本类型
Browse files Browse the repository at this point in the history
  • Loading branch information
data-infra committed Jun 29, 2024
1 parent a9cbc70 commit 90d21d5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion install/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 4 additions & 4 deletions install/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions install/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion install/docker/dockerFrontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions install/kubernetes/cube/overlays/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down

0 comments on commit 90d21d5

Please sign in to comment.