Skip to content

Commit 93762d4

Browse files
authored
[ghost] make ghost run on openshift (CloudPirates-io#195)
make ghost run on openshift
1 parent 87ffbbf commit 93762d4

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

charts/ghost/Chart.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
dependencies:
22
- name: common
33
repository: oci://registry-1.docker.io/cloudpirates
4-
version: 1.0.0
4+
version: 1.1.1
55
- name: mariadb
66
repository: oci://registry-1.docker.io/cloudpirates
7-
version: 0.2.7
8-
digest: sha256:0184e5d0bc6577f2895705084ba0b10d13116d202f6b0d1a239f3aa3db931837
9-
generated: "2025-09-19T13:08:15.586897+02:00"
7+
version: 0.3.0
8+
digest: sha256:4e89daee4a04df25da46810f73b277003ebff8ca938c308ed55214e9a8893183
9+
generated: "2025-09-30T22:09:51.820397+02:00"

charts/ghost/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: ghost
33
description: A simple, powerful publishing platform that allows you to share your stories with the world.
44
type: application
5-
version: 0.1.0
5+
version: 0.2.0
66
appVersion: "6.0.9"
77
keywords:
88
- ghost
@@ -22,7 +22,7 @@ dependencies:
2222
version: "1.x.x"
2323
repository: oci://registry-1.docker.io/cloudpirates
2424
- name: mariadb
25-
version: "0.2.x"
25+
version: "0.3.x"
2626
repository: oci://registry-1.docker.io/cloudpirates
2727
condition: mariadb.enabled
2828
icon: https://a.storyblok.com/f/143071/512x512/a130ba5305/ghost-logo.svg

charts/ghost/templates/deployment.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ spec:
3232
{{ . | nindent 6 }}
3333
{{- end }}
3434
serviceAccountName: {{ include "ghost.serviceAccountName" . }}
35-
securityContext:
36-
{{- toYaml .Values.podSecurityContext | nindent 8 }}
35+
securityContext: {{ include "common.renderPodSecurityContext" . | nindent 8 }}
3736
{{- if .Values.mariadb.enabled }}
3837
initContainers:
3938
- name: wait-for-mariadb
@@ -44,7 +43,7 @@ spec:
4443
- >
4544
retries=0;
4645
max_retries=15;
47-
until [ $retries -ge $max_retries ] || mariadb-admin ping -h {{ include "ghost.fullname" . }}-mariadb
46+
until [ $retries -ge $max_retries ] || mariadb-admin ping -h {{ include "ghost.name" . }}-mariadb
4847
-P {{ .Values.mariadb.service.port }}
4948
-u{{ .Values.mariadb.auth.username }}
5049
-p{{ .Values.mariadb.auth.password }}
@@ -57,14 +56,14 @@ spec:
5756
fi;
5857
sleep 2;
5958
done;
60-
securityContext:
61-
{{- toYaml .Values.containerSecurityContext | nindent 12 }}
59+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
6260
{{- end }}
6361
containers:
6462
- name: {{ .Chart.Name }}
65-
securityContext: {{- toYaml .Values.containerSecurityContext | nindent 12 }}
63+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
6664
image: {{ include "ghost.image" . | quote }}
6765
imagePullPolicy: {{ include "common.imagePullPolicy" (dict "image" .Values.image) }}
66+
#command: ["tail", "-f", "/dev/null"]
6867
ports:
6968
{{- range .Values.containerPorts }}
7069
- name: {{ .name }}

charts/ghost/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ config:
230230
security:
231231
staffDeviceVerification: false
232232
paths:
233-
contentPath: "content/"
233+
contentPath: "/var/lib/ghost/content"
234234
referrerPolicy: "origin-when-crossorigin"
235235
logging:
236-
path: "content/logs/"
236+
path: "/var/lib/ghost/content/logs/"
237237
useLocalTime: true
238238
level: "info"
239239
rotation:

0 commit comments

Comments
 (0)