Rename to taiga
This commit is contained in:
parent
206a860810
commit
7e3ba30f57
7 changed files with 19 additions and 19 deletions
|
@ -2,7 +2,7 @@ from os import environ
|
||||||
from pybuilder.core import task, init
|
from pybuilder.core import task, init
|
||||||
from ddadevops import *
|
from ddadevops import *
|
||||||
|
|
||||||
name = "c4k-forgejo-backup"
|
name = "c4k-taiga-backup"
|
||||||
MODULE = "docker"
|
MODULE = "docker"
|
||||||
PROJECT_ROOT_PATH = "../.."
|
PROJECT_ROOT_PATH = "../.."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM c4k-forgejo-backup
|
FROM c4k-taiga-backup
|
||||||
|
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt -yqq --no-install-recommends --yes install curl default-jre-headless
|
RUN apt -yqq --no-install-recommends --yes install curl default-jre-headless
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(ns dda.c4k-forgejo.backup
|
(ns dda.c4k-taiga.backup
|
||||||
(:require
|
(:require
|
||||||
[clojure.spec.alpha :as s]
|
[clojure.spec.alpha :as s]
|
||||||
#?(:cljs [shadow.resource :as rc])
|
#?(:cljs [shadow.resource :as rc])
|
||||||
|
|
|
@ -14,10 +14,10 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: backup-restore
|
app: backup-restore
|
||||||
app.kubernetes.io/name: backup-restore
|
app.kubernetes.io/name: backup-restore
|
||||||
app.kubernetes.io/part-of: forgejo
|
app.kubernetes.io/part-of: taiga
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: domaindrivenarchitecture/c4k-forgejo-backup
|
- image: domaindrivenarchitecture/c4k-taiga-backup
|
||||||
name: backup-app
|
name: backup-app
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/entrypoint-start-and-wait.sh"]
|
command: ["/entrypoint-start-and-wait.sh"]
|
||||||
|
@ -59,15 +59,15 @@ spec:
|
||||||
- name: CERTIFICATE_FILE
|
- name: CERTIFICATE_FILE
|
||||||
value: ""
|
value: ""
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: forgejo-data-volume
|
- name: taiga-data-volume
|
||||||
mountPath: /var/backups
|
mountPath: /var/backups
|
||||||
- name: backup-secret-volume
|
- name: backup-secret-volume
|
||||||
mountPath: /var/run/secrets/backup-secrets
|
mountPath: /var/run/secrets/backup-secrets
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumes:
|
volumes: # ToDo check correct volumes
|
||||||
- name: forgejo-data-volume
|
- name: taiga-data-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: forgejo-data-pvc
|
claimName: taiga-data-pvc
|
||||||
- name: backup-secret-volume
|
- name: backup-secret-volume
|
||||||
secret:
|
secret:
|
||||||
secretName: backup-secret
|
secretName: backup-secret
|
|
@ -4,6 +4,6 @@ metadata:
|
||||||
name: backup-config
|
name: backup-config
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: backup
|
app.kubernetes.io/name: backup
|
||||||
app.kubernetes.io/part-of: forgejo
|
app.kubernetes.io/part-of: taiga
|
||||||
data:
|
data:
|
||||||
restic-repository: restic-repository
|
restic-repository: restic-repository
|
|
@ -1,9 +1,9 @@
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1beta1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: forgejo-backup
|
name: taiga-backup
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.part-of: forgejo
|
app.kubernetes.part-of: taiga
|
||||||
spec:
|
spec:
|
||||||
schedule: "10 23 * * *"
|
schedule: "10 23 * * *"
|
||||||
successfulJobsHistoryLimit: 1
|
successfulJobsHistoryLimit: 1
|
||||||
|
@ -14,7 +14,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: backup-app
|
- name: backup-app
|
||||||
image: domaindrivenarchitecture/c4k-forgejo-backup
|
image: domaindrivenarchitecture/c4k-taiga-backup
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/entrypoint.sh"]
|
command: ["/entrypoint.sh"]
|
||||||
env:
|
env:
|
||||||
|
@ -55,15 +55,15 @@ spec:
|
||||||
- name: CERTIFICATE_FILE
|
- name: CERTIFICATE_FILE
|
||||||
value: ""
|
value: ""
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: forgejo-data-volume
|
- name: taiga-data-volume
|
||||||
mountPath: /var/backups
|
mountPath: /var/backups
|
||||||
- name: backup-secret-volume
|
- name: backup-secret-volume
|
||||||
mountPath: /var/run/secrets/backup-secrets
|
mountPath: /var/run/secrets/backup-secrets
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumes:
|
volumes: #ToDo: check correct volumes
|
||||||
- name: forgejo-data-volume
|
- name: taiga-data-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: forgejo-data-pvc
|
claimName: taiga-data-pvc
|
||||||
- name: backup-secret-volume
|
- name: backup-secret-volume
|
||||||
secret:
|
secret:
|
||||||
secretName: backup-secret
|
secretName: backup-secret
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
taiga-secret-key: "some-key"
|
taiga-secret-key: "some-key"
|
||||||
postgres-db-user: "forgejo"
|
postgres-db-user: "taiga"
|
||||||
postgres-db-password: "forgejo-db-password"
|
postgres-db-password: "taiga-db-password"
|
||||||
mailer-user: "mailer-user"
|
mailer-user: "mailer-user"
|
||||||
mailer-pw: "mailer-pw"
|
mailer-pw: "mailer-pw"
|
||||||
django-superuser-username: "taiga-admin"
|
django-superuser-username: "taiga-admin"
|
||||||
|
|
Loading…
Reference in a new issue