Some checks failed
check agents / check (push) Failing after 12s
azure-discovery, aws-discovery and gcp-discovery collect read-only metadata on servers, workloads, Kubernetes clusters, networks, data stores, policies and provider recommendations. Credentials arrive per call from the vault. Replies are paged, scrubbed of secrets and anonymised, and throttled calls back off. cloud-knowledge searches each provider's Well-Architected guidance from fixed lists only, so no customer detail can leave the platform. Adds shared skills, the render and test tooling, a public Python Dockerfile until the hardened base image is reachable, the customer access guide, the implementation plan and the Vault Service platform issue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
2.0 KiB
Docker
48 lines
2.0 KiB
Docker
# MCP Server Dockerfile
|
|
# Generated by Agent Builder Platform (template 1.1.0)
|
|
#
|
|
# Built on the platform's MCP server base image: Chainguard Python with the
|
|
# packages in requirements.txt already installed, a non-root user (1000) and
|
|
# no pip. This image adds only the server's own files.
|
|
#
|
|
# docker build -t <server>:<version> .
|
|
# docker build --build-arg BASE_IMAGE=<local base image> -t ... .
|
|
ARG BASE_IMAGE=kyndryl.jfrog.io/kc-ai-agent-factory-docker-local/mcp-server-base:1.1.0
|
|
|
|
# Stage 1: the server's extra Python packages, if requirements.txt lists any.
|
|
# The base image's build image (<base image>-build: the base image plus uv) installs
|
|
# them with its vendor-install script: only the packages added go on to
|
|
# /vendor, and one that would change a package the base image already has stops
|
|
# the build. uv never reaches the server's image.
|
|
FROM ${BASE_IMAGE}-build AS vendor
|
|
COPY requirements.txt constraints.txt /tmp/
|
|
RUN vendor-install /tmp/requirements.txt /vendor /tmp/constraints.txt
|
|
|
|
# Stage 2: the server: the base image, its extra packages and its files.
|
|
FROM ${BASE_IMAGE}
|
|
|
|
LABEL maintainer="Agent Builder Platform"
|
|
LABEL description="Read-only discovery of a customer's Google Cloud estate - servers, workloads, Kubernetes clusters, networks, data stores, policies and Recommender findings - through Cloud Asset Inventory."
|
|
LABEL version="0.1.1"
|
|
LABEL server.id="gcp-discovery"
|
|
LABEL template.version="1.1.0"
|
|
|
|
COPY --from=vendor /vendor /app/vendor/
|
|
COPY server.py mcp_connection.py /app/
|
|
|
|
# Environment
|
|
# The ConfigMap's SERVER_PORT overrides this, so the container, Service and probes agree
|
|
ENV SERVER_PORT=8113
|
|
ENV LOG_LEVEL=INFO
|
|
ENV LOG_FORMAT=json
|
|
|
|
# Expose port
|
|
EXPOSE 8113
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD python -c "import os, urllib.request; urllib.request.urlopen('http://localhost:%s/health' % (os.getenv('MCP_SERVER_PORT') or os.getenv('SERVER_PORT') or '8113'))" || exit 1
|
|
|
|
# Run the server
|
|
CMD ["python", "server.py"]
|