Skip to content
Merged
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
2 changes: 0 additions & 2 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ jobs:
build-args: |
TARGETARCH=${{ matrix.arch }}
GITHUB_PAT=${{ secrets.PAT }}
RUDDERSTACK_PAT=${{ secrets.RUDDERSTACK_PAT }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down Expand Up @@ -779,7 +778,6 @@ jobs:
build-args: |
TARGETARCH=${{ matrix.arch }}
GITHUB_PAT=${{ secrets.PAT }}
RUDDERSTACK_PAT=${{ secrets.RUDDERSTACK_PAT }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM ubuntu:22.04@sha256:09506232a8004baa32c47d68f1e5c307d648fdd59f5e7eaa42aaf87

# Set build arguments for version and architecture
ARG TARGETARCH=amd64
ARG RUDDERSTACK_PAT

# Install Python, pip, git, curl, and wget
RUN apt-get update && \
Expand Down Expand Up @@ -96,18 +95,18 @@ COPY src/browser/media/copilot-welcome.html /usr/lib/code-server/src/browser/med
USER codeuser

# Clone profiles-mcp as codeuser
RUN git clone --branch v1.2.0 https://github.com/rudderlabs/profiles-mcp
RUN git clone --branch v1.3.0 https://github.com/rudderlabs/profiles-mcp

# Set up the Python script
RUN echo '#!/usr/bin/env python3' > /home/codeuser/profiles-mcp/scripts/update_mcp_config.py
RUN echo "RUDDERSTACK_PAT=${RUDDERSTACK_PAT}\nIS_CLOUD_BASED=true" > /home/codeuser/profiles-mcp/.env
RUN echo "IS_CLOUD_BASED=true" > /home/codeuser/profiles-mcp/.env

# Run setup as codeuser
RUN cd /home/codeuser/profiles-mcp && bash setup.sh

# Create MCP settings directory and filprofiles-qa-rudderstack-sources-manager-profiles-qa-rudderstack-sources-manager-00e
RUN mkdir -p /home/codeuser/.local/share/code-server/User/globalStorage/saoudrizwan.claude-dev/settings/
RUN echo '{"mcpServers":{ "Profiles": { "command": "/home/codeuser/profiles-mcp/scripts/start.sh", "args": [], "env": { "SHELL": "/bin/bash" }, "inheritEnv": ["RUDDERSTACK_PAT","RAG_ADMIN_USERNAME","RAG_ADMIN_PASSWORD","RETRIEVAL_API_URL","IS_CLOUD_BASED"], "autoApprove": ["get_existing_connections","search_profiles_docs","initialize_warehouse_connection","run_query","input_table_suggestions","describe_table","get_profiles_output_details","setup_new_profiles_project","evaluate_eligible_user_filters","validate_propensity_model_config"] }}}' > /home/codeuser/.local/share/code-server/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
RUN echo '{"mcpServers":{ "Profiles": { "command": "/home/codeuser/profiles-mcp/scripts/start.sh", "args": [], "env": { "SHELL": "/bin/bash" }, "inheritEnv": ["RAG_ADMIN_USERNAME","RAG_ADMIN_PASSWORD","RETRIEVAL_API_URL","IS_CLOUD_BASED"], "autoApprove": ["get_existing_connections","search_profiles_docs","initialize_warehouse_connection","run_query","input_table_suggestions","describe_table","get_profiles_output_details","setup_new_profiles_project","evaluate_eligible_user_filters","validate_propensity_model_config"] }}}' > /home/codeuser/.local/share/code-server/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

# Copy VS Code settings for sidebar layout and theme customizations
# Set proper ownership and permissions
Expand Down
5 changes: 1 addition & 4 deletions Dockerfile.optimize
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM ubuntu:22.04 AS builder

# Set build arguments
ARG TARGETARCH=amd64
ARG RUDDERSTACK_PAT

# Install build dependencies and download external resources in one layer
RUN apt-get update && \
Expand All @@ -23,7 +22,6 @@ FROM ubuntu:22.04

# Set build arguments
ARG TARGETARCH=amd64
ARG RUDDERSTACK_PAT

# Install all system dependencies, create user, and clean up in single layer
RUN apt-get update && \
Expand Down Expand Up @@ -85,8 +83,7 @@ RUN cat > /home/codeuser/custom-strings.json << 'EOF'
EOF

# Configure profiles-mcp environment
RUN echo "RUDDERSTACK_PAT=${RUDDERSTACK_PAT}" > /home/codeuser/profiles-mcp/.env && \
echo "IS_CLOUD_BASED=true" >> /home/codeuser/profiles-mcp/.env && \
RUN echo "IS_CLOUD_BASED=true" > /home/codeuser/profiles-mcp/.env && \
echo '#!/usr/bin/env python3' > /home/codeuser/profiles-mcp/scripts/update_mcp_config.py

# Set ownership and permissions
Expand Down
Loading