fix: Fix ESLint + PVC for missing motion video

This commit is contained in:
Vincent BRIDIER 2026-07-13 10:01:01 +02:00
parent 7bd6700794
commit f85631332d
3 changed files with 74 additions and 10 deletions

View file

@ -12,6 +12,18 @@ data:
SENTRY_LARAVEL_DSN: "${APP_SENTRY_LARAVEL_DSN}"
MATOMO_SITE_ID: "${APP_MATOMO_SITE_ID}"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ${CI_PROJECT_PATH_SLUG}-pvc-storage
spec:
storageClassName: "csi-cinder-classic"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: $APP_PVC_SIZE
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -29,10 +41,11 @@ spec:
volumes:
- name: apache-run
emptyDir: {}
# TODO remettre avec readOnlyFilesystem- name: laravel-storage
# emptyDir: {}
- name: laravel-cache
emptyDir: {}
- name: storage
persistentVolumeClaim:
claimName: ${CI_PROJECT_PATH_SLUG}-pvc-storage
containers:
- name: ${CI_PROJECT_PATH_SLUG}-container
image: $IMAGE_TAG
@ -40,10 +53,10 @@ spec:
- configMapRef:
name: ${CI_PROJECT_PATH_SLUG}-config-map
volumeMounts:
- name: storage
mountPath: /app/srcs/storage
- name: apache-run
mountPath: /var/run
# - name: laravel-storage
# mountPath: /app/srcs/storage
- name: laravel-cache
mountPath: /app/srcs/bootstrap/cache
securityContext:
@ -126,4 +139,58 @@ spec:
middlewares:
- name: redirect-www-to-no-www
tls:
secretName: ${CRT_TLS_NAME}
secretName: ${CRT_TLS_NAME}
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: ${CI_PROJECT_PATH_SLUG}-cronjob
spec:
schedule: "* * * * *"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- ${CI_PROJECT_PATH_SLUG}-app
topologyKey: "kubernetes.io/hostname"
namespaces: [ $KUBE_NAMESPACE ]
containers:
- name: ${CI_PROJECT_PATH_SLUG}-scheduled
image: $IMAGE_TAG
imagePullPolicy: IfNotPresent
command:
- "php"
args:
- "artisan"
- "schedule:run"
envFrom:
- configMapRef:
name: ${CI_PROJECT_PATH_SLUG}-config-map
volumeMounts:
- name: storage
mountPath: /app/srcs/storage
imagePullSecrets:
- name: docker-registry-credentials
volumes:
- name: storage
persistentVolumeClaim:
claimName: ${CI_PROJECT_PATH_SLUG}-pvc-storage
securityContext:
runAsUser: 33
runAsGroup: 33
#TODO : valider le POC readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
fsGroup: 33
fsGroupChangePolicy: "OnRootMismatch"
restartPolicy: OnFailure

View file

@ -13,7 +13,7 @@ interface PageModule {
const appPages = import.meta.glob<PageModule>("./*/Pages/**/*.tsx");
void createInertiaApp({
title: (title) => `${title}`,
title: (title) => title,
resolve: async (name) => {
const page = await resolvePageComponent<PageModule>(
`./${name}.tsx`,

View file

@ -20,15 +20,12 @@ interface PageModule {
default: PageComponent;
}
const appName: string = (import.meta.env as Record<string, string>)
.VITE_APP_NAME;
const appPages = import.meta.glob<PageModule>("./front/Pages/**/*.tsx");
createServer((page) =>
createInertiaApp({
page,
title: (title) => `${title} - ${appName}`,
title: (title) => title,
render: ReactDOMServer.renderToString,
resolve: async (name) => {
const pageModule = await resolvePageComponent<PageModule>(