Skip to content

Commit 706da4a

Browse files
Add headers and PreCommit error resolution
1 parent 9d3d6c9 commit 706da4a

6 files changed

Lines changed: 22 additions & 7 deletions

File tree

CogniwareIms/.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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

CogniwareIms/backend/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
# Multi-stage build for production optimization
25
FROM python:3.11-slim as builder
36

CogniwareIms/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
version: "3.8"
25

36
services:

CogniwareIms/frontend/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
# Multi-stage build for Next.js production optimization
25
FROM node:18-alpine AS base
36

CogniwareIms/kubernetes/helm/Chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
apiVersion: v2
25
name: cogniwareims
36
description: OPEA Cogniware IMS - AI-powered Inventory Management System built with Cogn DREAM

CogniwareIms/tests/test_compose_on_xeon.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@ function validate_frontend() {
127127
function 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

0 commit comments

Comments
 (0)