Open flash0926 opened 3 months ago
Hi @flash0926 , there are multiple ways to achieve this:
create a custom Docker image containing your resources and templates. In practice we believe this is the easiest way to do it, especially if you use CI/CD pipelines to build the docker image and deploy a new version of ShinyProxy.
FROM openanalytics/shinyproxy:3.1.1
COPY templates /opt/shinyproxy/templates
store the templates on a network file system and mount the volume into the ShinyProxy pod. Make sure the volume can be accessible by multiple pods on multiple nodes (i.e. ReadWriteMany
), otherwise your deployment will fail when changing the ShinyProxy configuration. You can use kubernetesPodTemplateSpecPatches
to add the k8s code to mount the volume (https://github.com/openanalytics/shinyproxy-operator/tree/master/docs/deployment#modify-the-shinyproxy-pod).
store the templates in k8s configmaps or secrets and mount these in the container (again using kubernetesPodTemplateSpecPatches
). In our experience this is quite cumbersome and often requires changes at multiple places when modifying the templates (e.g. the list of files to mount etc).
I have deployed ShinyProxy in my Kubernetes cluster using the official ShinyProxy Operator. I need to modify some of the ShinyProxy styles, such as the landing page and other resources. How can I copy these modifications into the ShinyProxy pod to make them effective?