Compare commits
2 Commits
f7e6795c00
...
9bd4cb19d3
| Author | SHA1 | Date | |
|---|---|---|---|
| 9bd4cb19d3 | |||
| 9d4c7d5f87 |
@@ -28,7 +28,10 @@ RUN rm -rf /app/Dockerfile* \
|
|||||||
/app/k8s \
|
/app/k8s \
|
||||||
/app/data-loader \
|
/app/data-loader \
|
||||||
/app/keys \
|
/app/keys \
|
||||||
/app/requirements.txt
|
/app/requirements.txt \
|
||||||
|
/app/node_modules \
|
||||||
|
/app/*.json \
|
||||||
|
/app/test_*.py
|
||||||
RUN python3 manage.py collectstatic
|
RUN python3 manage.py collectstatic
|
||||||
CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"]
|
CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"]
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: git.baumann.gr/adebaumann/vui:0.944
|
image: git.baumann.gr/adebaumann/vui:0.945
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
"""
|
|
||||||
Simple script to test Vorgaben sanity checking
|
|
||||||
"""
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import django
|
|
||||||
|
|
||||||
# Setup Django
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'VorgabenUI.settings')
|
|
||||||
django.setup()
|
|
||||||
|
|
||||||
from dokumente.utils import check_vorgabe_conflicts, format_conflict_report
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
print("Running Vorgaben sanity check...")
|
|
||||||
print("=" * 50)
|
|
||||||
|
|
||||||
# Check for conflicts
|
|
||||||
conflicts = check_vorgabe_conflicts()
|
|
||||||
|
|
||||||
# Generate and display report
|
|
||||||
report = format_conflict_report(conflicts, verbose=True)
|
|
||||||
print(report)
|
|
||||||
|
|
||||||
print("=" * 50)
|
|
||||||
|
|
||||||
if conflicts:
|
|
||||||
print(f"\n⚠️ Found {len(conflicts)} conflicts that need attention!")
|
|
||||||
sys.exit(1)
|
|
||||||
else:
|
|
||||||
print("✅ All Vorgaben are valid!")
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
Reference in New Issue
Block a user