Skip to content

Commit

Permalink
Upgraded shiny proxy and seats configuration (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredeen authored Aug 4, 2024
1 parent 81524b8 commit 0eb96bf
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/shinyproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: shinyproxy
description: A Helm chart to install Shinyproxy
type: application
version: 1.1.0
version: 1.2.2
appVersion: "0.1"
maintainers:
- name: Team Whale
Expand Down
18 changes: 18 additions & 0 deletions apps/shinyproxy/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ data:
id: {{ .Release.Name }}
display-name: {{ .Values.app_name | quote }}
description: {{ .Values.app_description | quote }}
minimum-seats-available: {{ .Values.appconfig.minimumSeatsAvailable }}
seats-per-container: {{ .Values.appconfig.seatsPerContainer }}
allow-container-re-use: {{ .Values.appconfig.allowContainerReuse }}
labels:
sp.instance: {{ .Release.Name }}
allow-internet-egress: "true"
Expand All @@ -53,4 +56,19 @@ data:
runAsNonRoot: true
allowPrivilegeEscalation: false
privileged: false
- op: add
path: /spec/volumes
value:
- name: {{ .Release.Name }}-shiny-configmap
configMap:
name: {{ .Release.Name }}-shiny-configmap
items:
- key: shiny-server.conf
path: shiny-server.conf
- op: add
path: /spec/containers/0/volumeMounts
value:
- mountPath: /etc/shiny-server/shiny-server.conf
subPath: shiny-server.conf
name: {{ .Release.Name }}-shiny-configmap
title: Serve Shiny Proxy
29 changes: 29 additions & 0 deletions apps/shinyproxy/templates/shiny-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This configmap relates to the shiny app pod spawned by the shinyproxy deployment
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-shiny-configmap
namespace: {{ .Release.Namespace }}
data:
shiny-server.conf: |-
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
http_keepalive_timeout 600;
# Define a server that listens on user defined port
server {
listen {{ .Values.appconfig.port }} 0.0.0.0;
# Define a location at the base URL
location / {
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
app_init_timeout 600;
app_idle_timeout 600;
}
app_init_timeout 600;
app_idle_timeout 600;
}
5 changes: 4 additions & 1 deletion apps/shinyproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ project:
slug: project-slug

appconfig:
proxyimage: ghcr.io/scilifelabdatacentre/serve-shinyproxy:231124-2126
proxyimage: ghcr.io/scilifelabdatacentre/serve-shinyproxy:240703-0833
proxyport: 8080
port: 3838
image:
minimumSeatsAvailable: 2
seatsPerContainer: 3
allowContainerReuse: true


global:
Expand Down

0 comments on commit 0eb96bf

Please sign in to comment.