add directory creation for SQLite database in create_app function; remove init container for SQLite
This commit is contained in:
parent
bdb61fe1b7
commit
7209d3fed0
2 changed files with 9 additions and 9 deletions
|
|
@ -35,15 +35,6 @@ spec:
|
|||
runAsNonRoot: true
|
||||
runAsUser: 1001
|
||||
fsGroup: 1001
|
||||
initContainers:
|
||||
- name: init-sqlite
|
||||
image: busybox:1.35
|
||||
command: ['sh', '-c', 'mkdir -p /app/data && chown -R 1001:1001 /app/data']
|
||||
volumeMounts:
|
||||
- name: sqlite-data
|
||||
mountPath: /app/data
|
||||
securityContext:
|
||||
runAsUser: 0 # Run as root for chown
|
||||
containers:
|
||||
- name: snauw-counter
|
||||
image: ${REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG:-latest}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue