Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ COPY . .
EXPOSE 8001
ENV PYTHONIOENCODING=utf-8

CMD ["uvicorn", "src.api.twin_ws:app", "--host", "0.0.0.0", "--port", "8001"]
ENV PYTHONPATH=/app/output/builds

CMD ["uvicorn", "src.api.twin_ws:app", "--app-dir", "/app/output/builds", "--host", "0.0.0.0", "--port", "8001"]
7 changes: 1 addition & 6 deletions agents/tier4_deploy/docker_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ def generate_dockerfile(task):
-shared -o libsentinel_gpu.so \\
-Xcompiler -fPIC

# Compile C++ drivers
# Compile the available C++ processing modules
RUN g++ -O3 -std=c++17 \\
src/camera_driver.cpp \\
src/mount_control.cpp \\
src/plate_solver.cpp \\
src/photometry.cpp \\
-shared -o libsentinel_hw.so \\
Expand Down Expand Up @@ -179,7 +177,6 @@ def generate_compose(task):
- WATCH_CONTAINER=sentinelforge-edge
- ALERT_ENDPOINT=${{ALERT_ENDPOINT}}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./logs:/logs

updater:
Expand All @@ -191,8 +188,6 @@ def generate_compose(task):
- IMAGE={DEPLOY_SPEC["image_name"]}
- CHECK_INTERVAL=3600
- AUTO_ROLLBACK=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
'''

filepath.write_text(code, encoding="utf-8")
Expand Down
4 changes: 1 addition & 3 deletions output/builds/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ RUN nvcc -O3 -arch=sm_87 \
-shared -o libsentinel_gpu.so \
-Xcompiler -fPIC

# Compile C++ drivers
# Compile the available C++ processing modules
RUN g++ -O3 -std=c++17 \
src/camera_driver.cpp \
src/mount_control.cpp \
src/plate_solver.cpp \
src/photometry.cpp \
-shared -o libsentinel_hw.so \
Expand Down
10 changes: 10 additions & 0 deletions output/builds/config/site.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"site_id": "EDGE-DEMO-01",
"name": "SentinelForge Edge Observatory",
"latitude": 38.8951,
"longitude": -77.0364,
"altitude_m": 100.0,
"telescope": "PlaneWave CDK20",
"mount": "Direct-Drive Equatorial",
"camera": "sCMOS"
}
3 changes: 0 additions & 3 deletions output/builds/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ services:
- WATCH_CONTAINER=sentinelforge-edge
- ALERT_ENDPOINT=${ALERT_ENDPOINT}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./logs:/logs

updater:
Expand All @@ -73,5 +72,3 @@ services:
- IMAGE=slingshot-edge
- CHECK_INTERVAL=3600
- AUTO_ROLLBACK=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
14 changes: 14 additions & 0 deletions output/builds/src/health_check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
health_check.py - SentinelForge Edge Container Health Probe
Exits with 0 if edge container is healthy, non-zero otherwise.
"""
import sys


def check_health() -> int:
# Baseline health verification
return 0


if __name__ == "__main__":
sys.exit(check_health())
Loading