From 2a3fec94c6f94ff36dd024d5691e200e140610e3 Mon Sep 17 00:00:00 2001 From: Jeffrey <106184818+c0d33ngr@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:45:19 +0100 Subject: [PATCH 1/3] Create install.sh --- .devcontainer/install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .devcontainer/install.sh diff --git a/.devcontainer/install.sh b/.devcontainer/install.sh new file mode 100644 index 000000000..c2f0f4289 --- /dev/null +++ b/.devcontainer/install.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Install uv +curl -LsSf https://astral.sh/uv/install.sh | sh +# Or using wget if curl is not available: +# wget -qO- https://astral.sh/uv/install.sh | sh + +# Clone and setup +git clone https://github.com/Doriandarko/claude-engineer.git +cd claude-engineer + +# Create a virtual environment and activate it +uv venv +source .venv/bin/activate + +# Install dependencies from requirements.txt +pip install -r requirements.txt From 6dd029eef6c677906953096f1ef2f27684aed488 Mon Sep 17 00:00:00 2001 From: Jeffrey <106184818+c0d33ngr@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:48:54 +0100 Subject: [PATCH 2/3] Create devcontainer.json --- .devcontainer/devcontainer.json | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..2a9b65f13 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,37 @@ +{ + "name": "Claude Engineer Dev Container", + "image": "mcr.microsoft.com/devcontainers/python:3", + "features": { + "ghcr.io/devcontainers/features/common-utils:2":{ + "installZsh": "true", + "username": "vscode", + "userUid": "1000", + "userGid": "1000", + "upgradePackages": "true" + }, + "ghcr.io/devcontainers/features/python:1": "none", + "ghcr.io/devcontainers/features/node:1": "none", + "ghcr.io/devcontainers/features/git:1": { + "version": "latest", + "ppa": "false" + } + }, + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "python.defaultInterpreterPath": "/usr/local/bin/python" + } + } + }, + // Use 'forwardPorts' to make a list of ports inside the container available locally. + "forwardPorts": [5000], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "chmod +x .devcontainer/install.sh && ./devcontainer/install.sh", + + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" +} From 65398198ed500543368e50779921057fbc96575a Mon Sep 17 00:00:00 2001 From: Jeffrey <106184818+c0d33ngr@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:54:25 +0100 Subject: [PATCH 3/3] Update devcontainer.json --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2a9b65f13..7ed9fd3b3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -30,7 +30,7 @@ "forwardPorts": [5000], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "chmod +x .devcontainer/install.sh && ./devcontainer/install.sh", + "postCreateCommand": "chmod +x .devcontainer/install.sh && .devcontainer/install.sh", // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode"