generated from coulomb/repo-seed
Generated.Types imports 119 modules, pushing the combined .hi read past a ~287 MB binary-deserialization limit in GHC 9.10.3. Fix by adding a nixpkgs overlay that patches the inter-hub-models derivation: replaces Generated/Types.hs with a thin TypesPart1/TypesPart2 re-export wrapper after build-generated-code runs, and adds the two split modules to the cabal exposed-modules list. Also fix the production binary name from /bin/App to /bin/RunProdServer in deployment.yaml and RUNBOOK.md (the IHP NixSupport build produces RunProdServer, not App). Switch packages.docker to IHP's built-in unoptimized-docker-image which already uses the correct binary path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
spec:
|
|
initContainers:
|
|
{{- if .Values.runMigrations }}
|
|
- name: migrate
|
|
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
|
command: ["/bin/RunProdServer", "migrate"]
|
|
envFrom:
|
|
- secretRef:
|
|
name: {{ .Values.envFrom.secretRef }}
|
|
{{- end }}
|
|
containers:
|
|
- name: inter-hub
|
|
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- containerPort: 8000
|
|
protocol: TCP
|
|
envFrom:
|
|
- secretRef:
|
|
name: {{ .Values.envFrom.secretRef }}
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
failureThreshold: 3
|