Skip to content

Commit

Permalink
issue #399: added docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Oct 25, 2024
1 parent e91a362 commit 508be00
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions kubernetes/aks/apps/webtop/base/tcardin-webtop-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions kubernetes/aks/apps/webtop/base/wlemire-webtop-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 508be00

Please sign in to comment.