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
68 changes: 68 additions & 0 deletions src/oci-limits-mcp-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# OS / VCS
.DS_Store
Thumbs.db
.git/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these ignore rules specific to this sub-project? if not, can you split this out and create a new PR against the top-level .gitignore?

.git-*
*.orig

# Python bytecode
__pycache__/
*.py[cod]
*$py.class

# Virtual env
.venv/
venv/
env/
ENV/
.conda/
.mamba/

# Packaging / build
build/
dist/
*.egg-info/
.eggs/
pip-wheel-metadata/
wheels/
*.egg
MANIFEST

# Test / coverage
.pytest_cache/
.coverage
.coverage.*
htmlcov/
.cache/
.nox/
.tox/

# Type checking / linters
.mypy_cache/
.ruff_cache/
.pyre/

# Logs / temp
*.log
logs/
*.pid
*.tmp
*.swp

# Notebooks
.ipynb_checkpoints/

# IDE
.vscode/
.idea/
*.code-workspace

# Secrets / local env
.env
.env.*
*.pem
*.key
*.crt

# Docker (repo 内で不要なローカル生成物)
docker-compose.override.yml
35 changes: 35 additions & 0 deletions src/oci-limits-mcp-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM python:3.11-slim

# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Install uv
RUN pip install uv

# Copy requirements and install dependencies
COPY requirements.txt pyproject.toml ./
RUN uv pip install --system -r requirements.txt

# Copy source code
COPY oci_limits_mcp_server.py ./

# Create non-root user for security
RUN useradd --create-home --shell /bin/bash oci
RUN chown -R oci:oci /app
USER oci

# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app

# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import oci_limits_mcp_server; print('OK')"

# Run the server
CMD ["python", "oci_limits_mcp_server.py"]
Loading