0xarchit commited on
Commit
a693815
·
1 Parent(s): 5f321cb

fix entrypoint

Browse files
Files changed (1) hide show
  1. entrypoint.sh +11 -9
entrypoint.sh CHANGED
@@ -3,19 +3,21 @@
3
  # Clear any previous Python paths
4
  unset PYTHONPATH
5
 
6
- # 1. Start Ingest Service (Go)
7
- /app/ingest-service/ingest-service &
 
 
 
 
8
 
9
- # 2. Start ML Service (Python)
10
- # We run this in a subshell ( ... ) to keep its paths isolated
11
  (
12
- cd /app/ml-service
13
- export PYTHONPATH=/app/ml-service
14
- /opt/ml_venv/bin/python -m app.main
15
  ) &
16
 
17
- # 3. Start Control Plane (Python)
18
- # This is the main process that stays in the foreground
19
  cd /app/control-plane
20
  export PYTHONPATH=/app/control-plane
21
  exec /opt/cp_venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 7860
 
3
  # Clear any previous Python paths
4
  unset PYTHONPATH
5
 
6
+ # 1. Start Ingest Service (Go) on a private port (8080)
7
+ # We use a subshell to ensure it doesn't steal the global PORT variable
8
+ (
9
+ export PORT=8080
10
+ /app/ingest-service/ingest-service
11
+ ) &
12
 
13
+ # 2. Start ML Service (Python)
 
14
  (
15
+ cd /app/ml-service
16
+ export PYTHONPATH=/app/ml-service
17
+ /opt/ml_venv/bin/python -m app.main
18
  ) &
19
 
20
+ # 3. Start Control Plane (Python) on the public port 7860
 
21
  cd /app/control-plane
22
  export PYTHONPATH=/app/control-plane
23
  exec /opt/cp_venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 7860