Restore working version from 2026-02-19 00:41 (pre-surfeur edits)
This commit is contained in:
1633
app.py.final
Normal file
1633
app.py.final
Normal file
File diff suppressed because it is too large
Load Diff
30
backend.Dockerfile
Normal file
30
backend.Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
FROM node:20-slim
|
||||||
|
|
||||||
|
# Installer Python et les dépendances système pour h5py
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
python3 \
|
||||||
|
python3-pip \
|
||||||
|
python3-venv \
|
||||||
|
libhdf5-dev \
|
||||||
|
gcc \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Créer un venv pour éviter le blocage PEP 668
|
||||||
|
RUN python3 -m venv /opt/venv
|
||||||
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
|
|
||||||
|
# Installer les librairies Python
|
||||||
|
RUN pip install h5py numpy tqdm pandas psycopg2-binary
|
||||||
|
|
||||||
|
# On ne copie pas le node_modules du disque (architecture potentiellement différente)
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install --include=dev
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# On expose le port interne 3001
|
||||||
|
EXPOSE 3001
|
||||||
|
|
||||||
|
CMD ["npm", "run", "dev"]
|
||||||
2442
darf_nodes.json
Normal file
2442
darf_nodes.json
Normal file
File diff suppressed because it is too large
Load Diff
68
docker-compose.yml
Normal file
68
docker-compose.yml
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: timescale/timescaledb:latest-pg16
|
||||||
|
ports:
|
||||||
|
- "5433:5432"
|
||||||
|
volumes:
|
||||||
|
- ./db_data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_DB=seismic_data
|
||||||
|
- POSTGRES_PASSWORD=seismic_pass
|
||||||
|
|
||||||
|
|
||||||
|
backend:
|
||||||
|
build:
|
||||||
|
context: /mnt/kingston/seismic_webapp/backend
|
||||||
|
dockerfile: /home/floppyrj45/docker/seismic-nodes-viewer/backend.Dockerfile
|
||||||
|
ports:
|
||||||
|
- "3002:3001"
|
||||||
|
volumes:
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/backend_src/index.ts:/app/src/index.ts
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/scripts:/app/scripts
|
||||||
|
- /mnt/kingston/seismic_webapp/data:/mnt/kingston/seismic_webapp/data
|
||||||
|
- ./data:/data
|
||||||
|
- /mnt/kingston:/mnt/kingston
|
||||||
|
- /mnt/data_sdb1:/mnt/data_sdb1
|
||||||
|
- /home/floppyrj45/.local/bin/cursor-agent:/home/floppyrj45/.local/bin/cursor-agent
|
||||||
|
- /home/floppyrj45/.cursor:/home/floppyrj45/.cursor
|
||||||
|
environment:
|
||||||
|
- PORT=3001
|
||||||
|
- NODE_ENV=development
|
||||||
|
- DATABASE_URL=postgresql://postgres:seismic_pass@db:5432/seismic_data
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
|
||||||
|
api:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.api
|
||||||
|
container_name: seismic-api
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
ports:
|
||||||
|
- "3004:3004"
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
build:
|
||||||
|
context: /mnt/kingston/seismic_webapp/frontend
|
||||||
|
dockerfile: /home/floppyrj45/docker/seismic-nodes-viewer/frontend.Dockerfile
|
||||||
|
ports:
|
||||||
|
- "3003:3000"
|
||||||
|
volumes:
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/frontend_src/App.tsx:/app/src/App.tsx
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/frontend_src/NodeMarkers.tsx:/app/src/components/NodeMarkers.tsx
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/frontend_src/Sidebar.tsx:/app/src/components/Sidebar.tsx
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/frontend_src/SeismicSection.tsx:/app/src/SeismicSection.tsx
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/frontend_src/components/DataDocumentation.tsx:/app/src/components/DataDocumentation.tsx
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/frontend_src/components/H5Dashboard.tsx:/app/src/components/H5Dashboard.tsx
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/frontend_src/components/H5Coverage.tsx:/app/src/components/H5Coverage.tsx
|
||||||
|
- /home/floppyrj45/docker/seismic-nodes-viewer/frontend_src/components/CampaignDocs.tsx:/app/src/components/CampaignDocs.tsx
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
|
||||||
15
frontend.Dockerfile
Normal file
15
frontend.Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Dockerfile pour le Frontend Seismic
|
||||||
|
FROM node:20-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install --include=dev
|
||||||
|
RUN npm install react-plotly.js plotly.js-dist-min
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# On expose le port interne 3000
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD ["npm", "run", "dev", "--", "--host"]
|
||||||
2685
index.html.final
Normal file
2685
index.html.final
Normal file
File diff suppressed because it is too large
Load Diff
1
shot_times.json
Normal file
1
shot_times.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user