Skip to content

Commit

Permalink
Merge pull request #68 from UNINETTSigma2/rstudio-prod-update-r4-4-1
Browse files Browse the repository at this point in the history
updating to r version 4.4.1, and avoid removing shiny application folder
  • Loading branch information
sirikal authored Sep 9, 2024
2 parents ed01071 + 772d743 commit becd6e6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 67 deletions.
6 changes: 3 additions & 3 deletions repos/stable/rstudio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ apiVersion: v1
description: RStudio is an integrated development environment (IDE) for R
name: rstudio
maintainers:
- name: Uninett AS
email: system@uninett.no
- name: Sigma2 AS
email: contact@sigma2.no
home: https://www.rstudio.com/products/RStudio/
icon: https://rstudio.com/wp-content/uploads/2018/10/RStudio-Logo-flat.svg
version: 1.3.0
version: 1.3.1
keywords:
- R web IDE
2 changes: 1 addition & 1 deletion repos/stable/rstudio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ browser.
### Advanced
This application uses the following Dockerfile:

- [RStudio](https://github.com/UNINETTSigma2/helm-charts-dockerfiles/blob/ecce41f70eaa010ed80a304c48188bb22c1950a0/rstudio/server/Dockerfile)
- [RStudio](https://github.com/UNINETTSigma2/helm-charts-dockerfiles/tree/c3436d5/rstudio/server/Dockerfile)
4 changes: 2 additions & 2 deletions repos/stable/rstudio/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ properties:
dockerImage:
type: string
examples:
- sigma2as/rstudio-server:20240312-ecce41f
- sigma2as/rstudio-server:20240830-c3436d5
appstore_generated_data:
type: object
properties:
Expand All @@ -21,7 +21,7 @@ properties:
contact_email:
type: string
examples:
- example@uninett.no
- example@sigma2.no
dataporten:
type: object
properties:
Expand Down
59 changes: 1 addition & 58 deletions repos/stable/rstudio/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,61 +211,4 @@ spec:
mountPropagation: HostToContainer
readOnly: {{ .Values.persistentStorage.readOnly }}
subPath: home/{{ .Values.username }}
{{- end -}}


{{ if ne .Values.persistentStorage.existingClaim "" }}
---
apiVersion: batch/v1
kind: Job
metadata:
name: "{{.Release.Name}}-cleaner"
labels:
heritage: {{.Release.Service | quote }}
release: {{.Release.Name | quote }}
chart: "{{.Chart.Name}}-{{.Chart.Version}}"
annotations:
appstore.uninett.no/contact_email: {{ .Values.appstore_generated_data.appstore_meta_data.contact_email }}
"helm.sh/hook": post-delete
"helm.sh/hook-weight": "2"
"helm.sh/hook-delete-policy": hook-succeeded
spec:
template:
metadata:
name: "{{.Release.Name}}-cleaner"
labels:
heritage: {{.Release.Service | quote }}
release: {{.Release.Name | quote }}
chart: "{{.Chart.Name}}-{{.Chart.Version}}"
spec:
volumes:
- name: {{ .Values.persistentStorage.existingClaimName }}
persistentVolumeClaim:
claimName: {{ .Values.persistentStorage.existingClaim }}
restartPolicy: Never
securityContext:
runAsNonRoot: true
runAsUser: {{ .Values.uid }}
runAsGroup: {{ .Values.gid }}
fsGroup: {{ .Values.gid }}
{{ $firstGroup := .Values.supplementalGroups | first }}
{{- if $firstGroup.gid }}
supplementalGroups:
{{- range .Values.supplementalGroups }}
- {{ .gid }}
{{- end }}
{{- end }}
containers:
- name: cleaner-job
image: "alpine:3.13.5"
imagePullPolicy: IfNotPresent
command:
- /bin/sh
args:
- -c
- -x
- "rm -rf /mnt/{{ .Values.persistentStorage.existingClaimName }}/.tools/{{ template "fullname" . }}"
volumeMounts:
- name: {{ .Values.persistentStorage.existingClaimName }}
mountPath: /mnt/{{ .Values.persistentStorage.existingClaimName }}
{{ end }}
{{- end -}}
6 changes: 3 additions & 3 deletions repos/stable/rstudio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ persistentStorage:
readOnly: false
appstore_generated_data:
appstore_meta_data:
contact_email: "example@uninett.no"
contact_email: "example@sigma2.no"
dataporten:
scopes:
- ""
Expand All @@ -40,8 +40,8 @@ appstore_generated_data:
authorized_principals: []
advanced:
debug: false
dockerImage: sigma2as/rstudio-server:20240312-ecce41f
proxyImage: sigma2as/rstudio-proxy:20231117-eca0b21
dockerImage: sigma2as/rstudio-server:20240830-c3436d5
proxyImage: sigma2as/rstudio-proxy:20240903-f399a71
authGroupProviders:
- url: "https://groups-api.dataporten.no/groups/me/groups"
scope: groups

0 comments on commit becd6e6

Please sign in to comment.