升级新镜像版本

This commit is contained in:
xiaoman.gao@extremevision.com.cn 2024-06-11 22:18:12 +08:00
parent de9d47ce74
commit 5d29777d9a
5 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.04.01 -f install/docker/Dockerfile .
# docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01 -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.04.01 -f install/docker/Dockerfile .
docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01 -f install/docker/Dockerfile .
构建frontend镜像
docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.04.01 -f install/docker/dockerFrontend/Dockerfile .
docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.01 -f install/docker/dockerFrontend/Dockerfile .
```
## 镜像拉取(如果你不参与开发可以直接使用线上镜像)
```
docker pull ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.04.01
docker pull ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.04.01
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
```
## 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.04.01
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.01
restart: unless-stopped
command: ['sh','-c','nginx -g "daemon off;"']
ports:
@ -38,7 +38,7 @@ services:
- ../../install/docker/dockerFrontend/nginx.80.conf:/etc/nginx/conf.d/default.conf
myapp:
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.04.01
image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01
restart: unless-stopped
command: [ 'bash','-c','/entrypoint.sh' ]
environment:
@ -63,7 +63,7 @@ services:
#
# beat:
# image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.04.01
# image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01
# 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.04.01
# image: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard:2024.06.01
# 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.04.01 -f install/docker/dockerFrontend/Dockerfile .
# docker build -t ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend:2024.06.01 -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.04.01
newTag: 2024.06.01
- name: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend
newName: ccr.ccs.tencentyun.com/cube-studio/kubeflow-dashboard-frontend
newTag: 2024.04.01
newTag: 2024.06.01
# kustomize build . | kubectl apply -f -