Skip to content

Commit

Permalink
UPD README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
churnikov committed Jul 23, 2024
1 parent 44aae8e commit 82ee076
Showing 1 changed file with 64 additions and 1 deletion.
65 changes: 64 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,72 @@ git clone https://github.com/ScilifelabDataCentre/serve-charts.git

Then navigate to the `serve-charts/serve` folder, and run

If you want to run this locally, override values the following way:

```yaml
environment: "local"
# Path will be mounted using rancher desktop to the /app path in the container
source_code_path: "/Users/nikch187/Projects/sll/stackn"
# https://helm.sh/docs/chart_template_guide/yaml_techniques/#yaml-anchors
# for local development
storageClass: &storage_class local-path
#storage access mode
access_mode: &access_mode ReadWriteOnce
accessmode: *access_mode

global:
studio:
superuserPassword: "Test@12345"
superuserEmail: "[email protected]"
storageClass: *storage_class
postgresql:
storageClass: *storage_class

studio:
# Only locally on a debug environment
debug: true
storage:
storageClass: *storage_class
media:
storage:
storageClass: *storage_class
accessModes: *access_mode

# We use pull policy Never because see the following link:
# https://github.com/rancher-sandbox/rancher-desktop/issues/952#issuecomment-993135128
static:
image: mystudio
pullPolicy: Never

image:
repository: mystudio
pullPolicy: Never

securityContext:
# Disables security context for local development
# Essentially allow the container to run as root
enabled: false

readinessProbe:
enabled: false

livenessProbe:
enabled: false

postgresql:
primary:
persistence:
storageClass: *storage_class
accessModes:
- *access_mode

```

And then run the following commands:

```
helm dependency update
helm install serve .
helm install serve . -f values.yaml -f values-local.yaml
```

Depending on your storageclass, you might have to set this aswell.
Expand Down

0 comments on commit 82ee076

Please sign in to comment.