Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
14 changes: 14 additions & 0 deletions plugins/flytekit-dgxc-lepton/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Ignore deployment files from Docker build
deployment/
examples/
tests/
*.md
.git
.gitignore
__pycache__/
*.pyc
*.pyo
*.egg-info/
build/
dist/
.pytest_cache/
30 changes: 30 additions & 0 deletions plugins/flytekit-dgxc-lepton/Dockerfile.connector
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Dockerfile for Lepton Agent
# This creates a standalone agent service for handling Lepton endpoint operations

FROM ghcr.io/flyteorg/flytekit:py3.12-latest

# Switch to root to handle file permissions
USER root

# Install git for leptonai installation
RUN apt-get update && apt-get install -y git && apt-get clean && rm -rf /var/lib/apt/lists/*

# Copy and install our plugin
COPY --chown=flytekit:flytekit . /home/flytekit/dgxc-lepton-plugin
WORKDIR /home/flytekit/dgxc-lepton-plugin

# Clean any existing build artifacts
RUN rm -rf *.egg-info build dist

# Install the plugin
RUN pip install .

# Switch back to flytekit user
USER flytekit

# Expose agent service port
EXPOSE 8000

# Start the connector service
# The connector service will handle Lepton endpoint lifecycle operations via gRPC
CMD ["pyflyte", "serve", "connector", "--port", "8000", "--modules", "flytekitplugins.dgxc_lepton"]
Loading
Loading