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
17 changes: 8 additions & 9 deletions .env
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# --- Project Configuration ---
ENGINE_NAME="compatibility-engine"
APP_NAME="${ENGINE_NAME}-mcp-rs"
ENGINE_NAME="penalty-engine"
APP_NAME="penalty-engine"
MAINTAINER="Alpha Hack Group <alpha@github.com>"
DESCRIPTION="Compatibility Engine MCP Server - Model Context Protocol server to check benefits"
TITLE="Compatibility Engine MCP Server"
SOURCE="https://github.com/alpha-hack-program/compatibility-engine-mcp-rs.git"

# Version (managed by cargo-release)
VERSION=2.0.2
TITLE="Penalty Engine MCP Server"
DESCRIPTION="Penalty Engine MCP Server - Model Context Protocol server"
VERSION=1.3.3
PORT=8000
SOURCE="https://github.com/alpha-hack-program/compatibility-engine-mcp-rs.git#penalty"

# Container Configuration
BASE_TAG="9.6"
Expand All @@ -17,5 +16,5 @@ PORT=8000
CONTAINERFILE="Containerfile"

# Registry Configuration
ORG=atarazana
ORG=dgarciap
REGISTRY=quay.io/${ORG}
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: CI Pipeline

on:
push:
branches: [ main ]
branches: [ workshop ]
pull_request:
branches: [ main ]
branches: [ workshop ]
workflow_dispatch:

env:
NODE_VERSION: '20'

jobs:
test:
name: Test Compatibility Engine MCP Server
name: Test Penalty Engine MCP Server
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
echo "Checking with $CONTAINER_RUNTIME:"
$CONTAINER_RUNTIME images || echo "$CONTAINER_RUNTIME images command failed"

if $CONTAINER_RUNTIME images --format "table {{.Repository}}:{{.Tag}}" 2>/dev/null | grep -q "compatibility-engine-mcp"; then
if $CONTAINER_RUNTIME images --format "table {{.Repository}}:{{.Tag}}" 2>/dev/null | grep -q "penalty-engine-mcp"; then
echo "✅ Found image with $CONTAINER_RUNTIME"
FOUND=true
fi
Expand All @@ -156,7 +156,7 @@ jobs:
echo "Checking with Docker as fallback:"
docker images || echo "Docker images command failed"

if docker images --format "table {{.Repository}}:{{.Tag}}" 2>/dev/null | grep -q "compatibility-engine-mcp"; then
if docker images --format "table {{.Repository}}:{{.Tag}}" 2>/dev/null | grep -q "penalty-engine-mcp"; then
echo "✅ Found image with Docker"
FOUND=true
fi
Expand All @@ -167,7 +167,7 @@ jobs:
echo "Checking with Podman as fallback:"
podman images || echo "Podman images command failed"

if podman images --format "table {{.Repository}}:{{.Tag}}" 2>/dev/null | grep -q "compatibility-engine-mcp"; then
if podman images --format "table {{.Repository}}:{{.Tag}}" 2>/dev/null | grep -q "penalty-engine-mcp"; then
echo "✅ Found image with Podman"
FOUND=true
fi
Expand Down Expand Up @@ -226,12 +226,12 @@ jobs:
# REGISTRY=${{ secrets.CONTAINER_REGISTRY }}

# # Application details (production build)
# APP_NAME=compatibility-engine-mcp-server
# APP_NAME=penalty-engine-mcp-server
# MAINTAINER="Alpha Hack Group <alpha@github.com>"
# DESCRIPTION="Compatibility Engine MCP Server - Model Context Protocol server for compatibility evaluation"
# DESCRIPTION="Penalty Engine MCP Server - Model Context Protocol server for penalty calculation"
# VERSION=${GITHUB_SHA::8}
# PORT=8001
# SOURCE=https://github.com/alpha-hack-program/compatibility-engine-mcp-rs.git
# SOURCE=https://github.com/alpha-hack-program/compatibility-engine-mcp-rs.git#workshop

# # Base image configuration
# BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal
Expand Down
8 changes: 4 additions & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ ARG BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-minimal
ARG BASE_TAG=9.6
ARG VERSION=2.0.2
ARG MAINTAINER="Alpha Hack Group <alpha@github.com>"
ARG DESCRIPTION="Compatibility Engine MCP Server - Model Context Protocol server to check benefits"
ARG APP_NAME=compatibility-engine-mcp-rs
ARG DESCRIPTION="Penalty Engine MCP Server - Model Context Protocol server to calculate penalties"
ARG APP_NAME=penalty-engine-mcp-rs
ARG PORT=8000
ARG SOURCE=https://github.com/alpha-hack-program/compatibility-engine-mcp-rs.git
ARG SOURCE=https://github.com/alpha-hack-program/compatibility-engine-mcp-rs.git#workshop

# Multi-stage build
# Stage 1: Build stage with Rust toolchain
Expand Down Expand Up @@ -86,7 +86,7 @@ RUN microdnf update -y && \

# Create non-root user for security
RUN useradd -r -u 1001 -g 0 -s /sbin/nologin \
-c "Compatibility Engine MCP Server user" mcpserver
-c "Penalty Engine MCP Server user" mcpserver

# Set working directory
WORKDIR /app
Expand Down
Loading