Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit b20c72e

Browse files
committed
fix init script for ubuntu
1 parent 24243d7 commit b20c72e

File tree

4 files changed

+28
-37
lines changed

4 files changed

+28
-37
lines changed

charts/ubuntu/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type: application
2222
# This is the chart version. This version number should be incremented each time you make changes
2323
# to the chart and its templates, including the app version.
2424
# Versions are expected to follow Semantic Versioning (https://semver.org/)
25-
version: 5.4.0
25+
version: 5.4.1
2626

2727
# This is the version number of the application being deployed. This version number should be
2828
# incremented each time you make changes to the application. Versions are not expected to

charts/ubuntu/templates/deployment.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ spec:
5353
image: "{{ .Values.service.image.version }}"
5454
{{- end }}
5555
command: ["/bin/sh","-c"]
56-
args: ["/data/{{ .Values.init.filename}} /usr/bin/tini -- /dockerstartup/startup.sh"]
56+
args: ["{{ .Values.init.standardInitPath }} /usr/bin/tini -- /dockerstartup/startup.sh"]
5757
imagePullPolicy: {{ .Values.service.image.pullPolicy }}
5858
env:
5959
- name: VNC_PW
@@ -99,16 +99,7 @@ spec:
9999
- mountPath: /dev/shm
100100
name: dshm
101101
- mountPath: /home/headless/work
102-
name: home
103-
initContainers:
104-
- name: standard-init
105-
image: "busybox"
106-
imagePullPolicy: "IfNotPresent"
107-
command: ["/bin/sh","-c"]
108-
args: ["wget -O /data/{{ .Values.init.filename}} {{ .Values.init.standardInit}} && chmod +x /data/{{ .Values.init.filename}}"]
109-
volumeMounts:
110-
- mountPath: /data
111-
name: {{$volumeName}}
102+
name: home
112103
{{- with .Values.nodeSelector }}
113104
nodeSelector:
114105
{{- toYaml . | nindent 8 }}

charts/ubuntu/values.schema.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"version": {
2020
"description": "ubuntu supported version",
2121
"type": "string",
22-
"enum": ["inseefrlab/ubuntu-vnc:v1.0.0"],
22+
"enum": ["inseefrlab/ubuntu-vnc:"],
2323
"pattern": "^[a-z0-9-_./]+(:[a-z0-9-_.]+)?$",
2424
"hidden": {
2525
"value": true,
@@ -600,30 +600,30 @@
600600
"description": "Init parameters",
601601
"type": "object",
602602
"properties": {
603-
"standardInit": {
604-
"type": "string",
605-
"description": "initialization script",
606-
"default": "",
607-
"x-form": {
608-
"hidden": true,
609-
"value": "{{k8s.initScriptUrl}}"
610-
},
611-
"x-onyxia": {
612-
"hidden": true,
613-
"overwriteDefaultWith": "{{k8s.initScriptUrl}}"
614-
}
615-
},
616-
"personalInit": {
617-
"type": "string",
618-
"description": "initialization script",
619-
"default": ""
603+
"regionInit": {
604+
"type": "string",
605+
"description": "region initialization script",
606+
"default": "",
607+
"x-form": {
608+
"hidden": true,
609+
"value": "{{k8s.initScriptUrl}}"
620610
},
621-
"personalInitArgs": {
622-
"type": "string",
623-
"description": "args for initialization script",
624-
"default": ""
611+
"x-onyxia": {
612+
"hidden": true,
613+
"overwriteDefaultWith": "{{k8s.initScriptUrl}}"
625614
}
615+
},
616+
"personalInit": {
617+
"type": "string",
618+
"description": "user initialization script",
619+
"default": ""
620+
},
621+
"personalInitArgs": {
622+
"type": "string",
623+
"description": "args for user initialization script",
624+
"default": ""
625+
}
626626
}
627-
}
627+
}
628628
}
629629
}

charts/ubuntu/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ security:
1919
ip: "0.0.0.0/0"
2020

2121
init:
22-
standardInit: "https://git.lab.sspcloud.fr/innovation/plateforme-onyxia/services-ressources/-/raw/master/onyxia-init.sh"
23-
filename: "onyxia-init.sh"
22+
standardInitPath: "/opt/onyxia-init.sh"
23+
regionInit: ""
2424
personalInit: ""
2525
personalInitArgs: ""
2626

0 commit comments

Comments
 (0)