Skip to content

Commit

Permalink
Helm charts (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger authored Oct 22, 2024
1 parent 5d38425 commit 3f6d84b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
3 changes: 1 addition & 2 deletions charts/scroll-proving-sdk/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
apiVersion: v2
description: Example chart for showing how to package a service built using the scroll-proving-sdk library
name: scroll-proving-sdk
version: 0.0.4
appVersion: v0.1.0
version: 0.0.5
kubeVersion: ">=1.22.0-0"
maintainers:
- name: scroll-tech
Expand Down
17 changes: 11 additions & 6 deletions charts/scroll-proving-sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scroll-proving-sdk

![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.5](https://img.shields.io/badge/Version-0.0.5-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

Example chart for showing how to package a service built using the scroll-proving-sdk library

Expand Down Expand Up @@ -33,11 +33,16 @@ Kubernetes: `>=1.22.0-0`
| global.nameOverride | string | `"scroll-proving-sdk"` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"scrolltech/sdk-cloud-prover"` | |
| image.tag | string | `"sindri-2791edca"` | |
| persistence.app_name.enabled | bool | `true` | |
| persistence.app_name.mountPath | string | `"/sdk_prover/"` | |
| persistence.app_name.name | string | `"scroll-proving-sdk-config"` | |
| persistence.app_name.type | string | `"configMap"` | |
| image.tag | string | `"sindri-v0.0.1"` | |
| persistence.config.enabled | bool | `true` | |
| persistence.config.mountPath | string | `"/sdk_prover/"` | |
| persistence.config.name | string | `"scroll-proving-sdk-config"` | |
| persistence.config.type | string | `"configMap"` | |
| persistence.keys.accessMode | string | `"ReadWriteOnce"` | |
| persistence.keys.enabled | bool | `true` | |
| persistence.keys.mountPath | string | `"/keys/"` | |
| persistence.keys.size | string | `"10Mi"` | |
| persistence.keys.type | string | `"pvc"` | |
| probes.liveness.<<.custom | bool | `true` | |
| probes.liveness.<<.enabled | bool | `true` | |
| probes.liveness.<<.spec.httpGet.path | string | `"/"` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/scroll-proving-sdk/templates/config-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.name }}-config
name: {{ .Release.Name }}-config
labels:
{{- include "scroll-sdk.labels" $ | nindent 4 }}
data:
Expand Down
10 changes: 8 additions & 2 deletions charts/scroll-proving-sdk/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ global:
image:
repository: scrolltech/sdk-cloud-prover
pullPolicy: Always
tag: sindri-2791edca
tag: sindri-v0.0.1

command:
- "/bin/sh"
Expand All @@ -22,11 +22,17 @@ resources:
cpu: "100m"

persistence:
*app_name:
config:
enabled: true
type: configMap
mountPath: /sdk_prover/
name: scroll-proving-sdk-config # Change this value to <ReleaseName>-config
keys:
enabled: true
type: pvc
mountPath: /keys/
size: 10Mi
accessMode: ReadWriteOnce

service:
main:
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN cargo build --release --example cloud
FROM ubuntu:20.04

# Install necessary dependencies
RUN apt-get update && apt-get install -y libssl-dev && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*

# Copy the built binary from the builder stage
COPY --from=builder /usr/src/app/target/release/examples/cloud /usr/local/bin/cloud
Expand Down

0 comments on commit 3f6d84b

Please sign in to comment.