Init container to prepopulate data directory
This commit is contained in:
parent
b26e6a2c95
commit
c291399f8f
1 changed files with 9 additions and 0 deletions
|
@ -55,6 +55,15 @@ spec:
|
|||
labels:
|
||||
app: linkwarden
|
||||
spec:
|
||||
initContainers:
|
||||
- name: copy-linkwarden
|
||||
image: ghcr.io/linkwarden/linkwarden:latest
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- cp -r /app/. /data/ # Copy everything from the internal app dir to the mounted volume
|
||||
volumeMounts:
|
||||
- name: linkwarden-data
|
||||
mountPath: /data
|
||||
containers:
|
||||
- name: linkwarden
|
||||
image: ghcr.io/linkwarden/linkwarden:latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue