File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright (C) 2024 Intel Corporation
2+ # SPDX-License-Identifier: Apache-2.0
3+
14# Pre-commit hooks configuration for OPEA compliance
25# See https://pre-commit.com for more information
36
Original file line number Diff line number Diff line change 1+ # Copyright (C) 2024 Intel Corporation
2+ # SPDX-License-Identifier: Apache-2.0
3+
14# Multi-stage build for production optimization
25FROM python:3.11-slim as builder
36
Original file line number Diff line number Diff line change 1+ # Copyright (C) 2024 Intel Corporation
2+ # SPDX-License-Identifier: Apache-2.0
3+
14version : " 3.8"
25
36services :
Original file line number Diff line number Diff line change 1+ # Copyright (C) 2024 Intel Corporation
2+ # SPDX-License-Identifier: Apache-2.0
3+
14# Multi-stage build for Next.js production optimization
25FROM node:18-alpine AS base
36
Original file line number Diff line number Diff line change 1+ # Copyright (C) 2024 Intel Corporation
2+ # SPDX-License-Identifier: Apache-2.0
3+
14apiVersion : v2
25name : cogniwareims
36description : OPEA Cogniware IMS - AI-powered Inventory Management System built with Cogn DREAM
Original file line number Diff line number Diff line change @@ -127,16 +127,16 @@ function validate_frontend() {
127127function stop_services() {
128128 echo " Stopping services..."
129129 cd $WORKPATH /docker_compose/intel/cpu/xeon
130-
130+
131131 # Stop containers first
132132 docker compose stop 2> /dev/null || true
133-
133+
134134 # Wait for containers to stop
135135 sleep 5
136-
136+
137137 # Remove containers
138138 docker compose rm -f 2> /dev/null || true
139-
139+
140140 # Remove volumes and networks (with retry)
141141 for i in {1..3}; do
142142 if docker compose down -v 2> /dev/null; then
@@ -149,13 +149,13 @@ function stop_services() {
149149 docker compose ps -q | xargs -r docker rm -f 2> /dev/null || true
150150 fi
151151 done
152-
152+
153153 # Final cleanup - remove any orphaned containers
154154 docker ps -a --filter " label=com.docker.compose.project" --format " {{.ID}}" | xargs -r docker rm -f 2> /dev/null || true
155-
155+
156156 # Remove networks that might be orphaned
157157 docker network ls --filter " name=opea\|cogniware\|xeon" --format " {{.ID}}" | xargs -r docker network rm 2> /dev/null || true
158-
158+
159159 echo " Services stopped and cleaned up"
160160}
161161
You can’t perform that action at this time.
0 commit comments