Commit a055391b authored by Hines, Jesse's avatar Hines, Jesse
Browse files

Build in docker-compose.yml

parent 51a6c81f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -186,7 +186,9 @@ services:
      - KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS=300000
  
  simulation-server:
    pull_policy: build
    image: exadigit-simulation-server
    build: .
    container_name: simulation-server
    command: ["python", "-m", "simulation_server.server.main"]
    ports:
+2 −7
Original line number Diff line number Diff line
#!/bin/bash
# Launch local version
set -e # Exit if any commmand fails

BASE_DIR=$(realpath $(dirname "${BASH_SOURCE[0]}")/..)
cd "$BASE_DIR"

docker build -t exadigit-simulation-server:latest -f Dockerfile .
cd $(realpath $(dirname "${BASH_SOURCE[0]}")/..)

# trap 'docker compose down' SIGINT SIGTERM EXIT

docker stop simulation-server >/dev/null 2>&1 || true
docker compose down
docker compose up -d
docker compose logs -f --no-log-prefix simulation-server