From 508be004d0a72e5ab5ff1e34b1d1522a4835f8da Mon Sep 17 00:00:00 2001 From: Thomas Cardin <49320132+ThomasCardin@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:58:18 -0400 Subject: [PATCH] issue #399: added docker --- .../base/tcardin-webtop-deployment.yaml | 22 +++++++++++++++++++ .../base/wlemire-webtop-deployment.yaml | 22 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/kubernetes/aks/apps/webtop/base/tcardin-webtop-deployment.yaml b/kubernetes/aks/apps/webtop/base/tcardin-webtop-deployment.yaml index cb4c9416..f48b38ab 100644 --- a/kubernetes/aks/apps/webtop/base/tcardin-webtop-deployment.yaml +++ b/kubernetes/aks/apps/webtop/base/tcardin-webtop-deployment.yaml @@ -17,16 +17,38 @@ spec: image: ghcr.io/ai-cfia/webtop-ubuntu-kde:main ports: - containerPort: 3000 + env: + - name: DOCKER_HOST + value: "tcp://localhost:2375" + - name: DOCKER_TLS_CERTDIR + value: "" envFrom: - secretRef: name: tcardin-webtop-secrets volumeMounts: - name: config mountPath: /config + - name: docker-dind + image: docker:dind + securityContext: + privileged: true + ports: + - containerPort: 2375 + env: + - name: DOCKER_TLS_CERTDIR + value: "" + args: + - "--host=tcp://0.0.0.0:2375" + - "--tls=false" + volumeMounts: + - name: docker-graph-storage + mountPath: /var/lib/docker volumes: - name: config persistentVolumeClaim: claimName: tcardin-webtop-config-pvc + - name: docker-graph-storage + emptyDir: {} --- apiVersion: v1 diff --git a/kubernetes/aks/apps/webtop/base/wlemire-webtop-deployment.yaml b/kubernetes/aks/apps/webtop/base/wlemire-webtop-deployment.yaml index c0ec1e35..fcea7109 100644 --- a/kubernetes/aks/apps/webtop/base/wlemire-webtop-deployment.yaml +++ b/kubernetes/aks/apps/webtop/base/wlemire-webtop-deployment.yaml @@ -17,16 +17,38 @@ spec: image: ghcr.io/ai-cfia/webtop-ubuntu-kde:main ports: - containerPort: 3000 + env: + - name: DOCKER_HOST + value: "tcp://localhost:2375" + - name: DOCKER_TLS_CERTDIR + value: "" envFrom: - secretRef: name: wlemire-webtop-secrets volumeMounts: - name: config mountPath: /config + - name: docker-dind + image: docker:dind + securityContext: + privileged: true + ports: + - containerPort: 2375 + env: + - name: DOCKER_TLS_CERTDIR + value: "" + args: + - "--host=tcp://0.0.0.0:2375" + - "--tls=false" + volumeMounts: + - name: docker-graph-storage + mountPath: /var/lib/docker volumes: - name: config persistentVolumeClaim: claimName: wlemire-webtop-config-pvc + - name: docker-graph-storage + emptyDir: {} --- apiVersion: v1