@@ -106,28 +106,18 @@ Follow official Dataiku documentation for [Managed Kubernetes clusters](https://
106106
107107If admin from UI don't work or if you want to enable custom registry and to publish Dockerfiles, here are some commands to use:
108108
109- kubectl exec -it -n dataiku $(kubectl get -n dataiku all | grep Running | awk '{print $1}') -- bash
110- cd dss
109+ DOCKER_REGISTRY=rg.fr-par.scw.cloud/mywonderfulregistry
110+ DOCKER_USER=myuser
111+ DOCKER_PASSWORD=mypassword
112+ DSS_VERSION=13.4.3
113+
114+ kubectl -n dataiku exec -it $(kubectl -n dataiku get pod | grep '2/2' | awk '{print $1}') -- docker login ${DOCKER_REGISTRY} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
115+
111116 # build base image
112- ./bin/dssadmin build-base-image --type container-exec --with-py311 --with-py39
113- # [... build log ...]
114- # #43 naming to docker.io/library/dku-exec-base-ru4oxgmkpuoy4djmkkuvxfng:dss-13.4.3 0.0s done
115- # #43 DONE 52.7s
116- # 2025-01-25 00:11:23,029 INFO Done, cleaning up
117- # Saved to /home/dataiku/dss/tmp/exec-docker-base-image.xxx/Dockerfile
118- # Dockerfile should be committed to be audited by SAST tools
119- docker login ${DOCKER_REGISTRY}
120- docker tag dku-exec-base-ru4oxgmkpuoy4djmkkuvxfng:dss-13.4.3 ${DOCKER_REGISTRY}/dku-exec-base-ru4oxgmkpuoy4djmkkuvxfng:dss-13.4.3
121- docker push ${DOCKER_REGISTRY}/dku-exec-base-ru4oxgmkpuoy4djmkkuvxfng:dss-13.4.3
122-
123- Same thing for cde image
117+ kubectl exec -it -n dataiku $(kubectl -n dataiku get pod | grep '2/2' | awk '{print $1}') -- sh -c "cd dss;./bin/dssadmin build-base-image --type container-exec --with-py311 --with-py39 && docker tag dku-exec-base-ru4oxgmkpuoy4djmkkuvxfng:dss-${DSS_VERSION} ${DOCKER_REGISTRY}/dku-exec-base-ru4oxgmkpuoy4djmkkuvxfng:dss-${DSS_VERSION} && docker push ${DOCKER_REGISTRY}/dku-exec-base-ru4oxgmkpuoy4djmkkuvxfng:dss-${DSS_VERSION}"
124118
125119 # build cde image
126- ./bin/dssadmin build-base-image --type cde --with-py311 --with-py39
127- # [... build logs ]
128- docker login ${DOCKER_REGISTRY}
129- docker tag dku-cde-base-ru4oxgmkpuoy4djmkkuvxfng:dss-13.4.3 ${DOCKER_REGISTRY}/dku-cde-base-ru4oxgmkpuoy4djmkkuvxfng:dss-13.4.3
130- docker push ${DOCKER_REGISTRY}/dku-cde-base-ru4oxgmkpuoy4djmkkuvxfng:dss-13.4.3
120+ kubectl exec -it -n dataiku $(kubectl -n dataiku get pod | grep '2/2' | awk '{print $1}') -- sh -c "cd dss;./bin/dssadmin build-base-image --type cde --with-py311 --with-py39 && docker tag dku-cde-base-ru4oxgmkpuoy4djmkkuvxfng:dss-${DSS_VERSION} ${DOCKER_REGISTRY}/dku-cde-base-ru4oxgmkpuoy4djmkkuvxfng:dss-${DSS_VERSION} && docker push ${DOCKER_REGISTRY}/dku-cde-base-ru4oxgmkpuoy4djmkkuvxfng:dss-${DSS_VERSION}"
131121
132122With those two files built, you will be able to enable following features in Kubernetes:
133123
0 commit comments