DaCrow13 commited on
Commit
55a805d
·
1 Parent(s): 2aae6fa

Fix dashboard loading: explicit folder, dos2unix all configs, tail grafana logs

Browse files
Dockerfile CHANGED
@@ -75,8 +75,8 @@ COPY --chown=user:user . .
75
  # Ensure the user has permissions on the app directory (needed for dvc init if .dvc is missing)
76
  RUN chown -R user:user /app
77
 
78
- # Fix line endings and permissions for the start script
79
- RUN dos2unix docker/scripts/start_space.sh && \
80
  chmod +x docker/scripts/start_space.sh
81
 
82
  # Install the project itself
 
75
  # Ensure the user has permissions on the app directory (needed for dvc init if .dvc is missing)
76
  RUN chown -R user:user /app
77
 
78
+ # Fix line endings and permissions for the start script and configs
79
+ RUN find . -name "*.sh" -o -name "*.yml" -o -name "*.ini" -o -name "*.json" | xargs dos2unix && \
80
  chmod +x docker/scripts/start_space.sh
81
 
82
  # Install the project itself
docker/scripts/start_space.sh CHANGED
@@ -194,5 +194,5 @@ for i in {1..30}; do
194
  sleep 2
195
  done
196
 
197
- echo "$(date) - Process started. Tailing Nginx logs for debug..."
198
- tail -f /tmp/nginx_startup.log /tmp/fastapi.log
 
194
  sleep 2
195
  done
196
 
197
+ echo "$(date) - Process started. Tailing logs for debug..."
198
+ tail -f /tmp/nginx_startup.log /tmp/fastapi.log /tmp/grafana.log /tmp/prometheus.log
monitoring/grafana/provisioning/dashboards/dashboard.yml CHANGED
@@ -3,11 +3,11 @@ apiVersion: 1
3
  providers:
4
  - name: "Hopcroft Dashboards"
5
  orgId: 1
6
- folder: ""
7
  type: file
8
  disableDeletion: false
9
  updateIntervalSeconds: 10
10
  allowUiUpdates: true
11
  options:
12
  path: /app/monitoring/grafana/dashboards
13
- foldersFromFilesStructure: true
 
3
  providers:
4
  - name: "Hopcroft Dashboards"
5
  orgId: 1
6
+ folder: "Hopcroft Project"
7
  type: file
8
  disableDeletion: false
9
  updateIntervalSeconds: 10
10
  allowUiUpdates: true
11
  options:
12
  path: /app/monitoring/grafana/dashboards
13
+ foldersFromFilesStructure: false