A programming framework for agentic AI
devcontainer with cosmos + qdrant (#3)
Kosta Petan9f082784c73d
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfilenew file mode 100644index 000000000..a221106f5--- /dev/null+++ b/.devcontainer/Dockerfile@@ -0,0 +1,5 @@+FROM mcr.microsoft.com/devcontainers/dotnet:0-7.0+# Install the xz-utils package+RUN apt-get update && apt-get install -y xz-utils nodejs++RUN curl -fsSL https://aka.ms/install-azd.sh | bash\ No newline at end of filediff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.jsonnew file mode 100644index 000000000..f1fb5cdc9--- /dev/null+++ b/.devcontainer/devcontainer.json@@ -0,0 +1,46 @@+// For format details, see https://aka.ms/devcontainer.json. For config options, see the+// README at: https://github.com/devcontainers/templates/tree/main/src/universal+{+ "name": "SK Dev team",+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile+ "dockerComposeFile": "docker-compose.yml",+ "service": "devcontainer",+ "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",+ "features": {+ "ghcr.io/devcontainers/features/azure-cli:1": {},+ "ghcr.io/devcontainers/features/common-utils:2": {},+ "ghcr.io/devcontainers/features/docker-in-docker:2": {}+ },+ "postCreateCommand": "bash .devcontainer/startup.sh",+ "hostRequirements": {+ "memory": "16gb",+ "cpus": 8+ },++ // Features to add to the dev container. More info: https://containers.dev/features.+ // "features": {},++ // Use 'forwardPorts' to make a list of ports inside the container available locally.+ // "forwardPorts": [],++ // Use 'postCreateCommand' to run commands after the container is created.+ // "postCreateCommand": "uname -a",++ // Configure tool-specific properties.+ // "customizations": {},++ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.+ "remoteUser": "root",+ "customizations": {+ "vscode": {+ "extensions": [+ "ms-vscode.vscode-node-azure-pack",+ "ms-azuretools.vscode-docker",+ "ms-dotnettools.csdevkit",+ "Azurite.azurite",+ "ms-dotnettools.csharp",+ "ms-semantic-kernel.semantic-kernel"+ ]+ }+ }+}\ No newline at end of filediff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.ymlnew file mode 100644index 000000000..c09e20aed--- /dev/null+++ b/.devcontainer/docker-compose.yml@@ -0,0 +1,28 @@+version: '3.8'+services:+ devcontainer:+ build:+ context: .+ dockerfile: Dockerfile+ init: true+ volumes:+ - /var/run/docker.sock:/var/run/docker.sock+ - ..:/workspace:cached+ # Overrides default command so things don't shut down after the process ends.+ command: sleep infinity+ network_mode: service:cosmos+ depends_on:+ - cosmos+ cosmos:+ image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator+ mem_limit: "3g"+ cpu_count: 2+ init: true+ restart: unless-stopped+ environment:+ AZURE_COSMOS_EMULATOR_PARTITION_COUNT: "10"+ AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE: "true"+ qdrant:+ image: qdrant/qdrant+ ports:+ - 6333:6333diff --git a/.devcontainer/startup.sh b/.devcontainer/startup.shnew file mode 100644index 000000000..28bf98e1c--- /dev/null+++ b/.devcontainer/startup.sh@@ -0,0 +1,5 @@+#!/bin/bash++curl -k https://localhost:8081/_explorer/emulator.pem > ~/emulatorcert.crt+sudo cp ~/emulatorcert.crt /usr/local/share/ca-certificates/+sudo update-ca-certificates\ No newline at end of filediff --git a/.vscode/settings.json b/.vscode/settings.jsonnew file mode 100644index 000000000..b7c2cb24a--- /dev/null+++ b/.vscode/settings.json@@ -0,0 +1,3 @@+{+ "dotnet.defaultSolution": "sk-dev-team.sln"+}\ No newline at end of filediff --git a/sk-dev-team.sln b/sk-dev-team.slnnew file mode 100644index 000000000..190f2328c--- /dev/null+++ b/sk-dev-team.sln@@ -0,0 +1,37 @@++Microsoft Visual Studio Solution File, Format Version 12.00+# Visual Studio Version 17+VisualStudioVersion = 17.5.001.0+MinimumVisualStudioVersion = 10.0.40219.1+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "sk-csharp-azure-functions", "sk-azfunc-server\sk-csharp-azure-functions.csproj", "{C787026C-9435-4FD4-AEE5-B005EAEF9E3D}"+EndProject+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "skills", "skills\skills.csproj", "{51F987E4-3E70-4DB9-9493-AFCFA0CE3773}"+EndProject+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "cli", "cli\cli.csproj", "{C0073CEA-8A1B-43BC-BADE-F6323CDFA853}"+EndProject+Global+ GlobalSection(SolutionConfigurationPlatforms) = preSolution+ Debug|Any CPU = Debug|Any CPU+ Release|Any CPU = Release|Any CPU+ EndGlobalSection+ GlobalSection(ProjectConfigurationPlatforms) = postSolution+ {C787026C-9435-4FD4-AEE5-B005EAEF9E3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU+ {C787026C-9435-4FD4-AEE5-B005EAEF9E3D}.Debug|Any CPU.Build.0 = Debug|Any CPU+ {C787026C-9435-4FD4-AEE5-B005EAEF9E3D}.Release|Any CPU.ActiveCfg = Release|Any CPU+ {C787026C-9435-4FD4-AEE5-B005EAEF9E3D}.Release|Any CPU.Build.0 = Release|Any CPU+ {51F987E4-3E70-4DB9-9493-AFCFA0CE3773}.Debug|Any CPU.ActiveCfg = Debug|Any CPU+ {51F987E4-3E70-4DB9-9493-AFCFA0CE3773}.Debug|Any CPU.Build.0 = Debug|Any CPU+ {51F987E4-3E70-4DB9-9493-AFCFA0CE3773}.Release|Any CPU.ActiveCfg = Release|Any CPU+ {51F987E4-3E70-4DB9-9493-AFCFA0CE3773}.Release|Any CPU.Build.0 = Release|Any CPU+ {C0073CEA-8A1B-43BC-BADE-F6323CDFA853}.Debug|Any CPU.ActiveCfg = Debug|Any CPU+ {C0073CEA-8A1B-43BC-BADE-F6323CDFA853}.Debug|Any CPU.Build.0 = Debug|Any CPU+ {C0073CEA-8A1B-43BC-BADE-F6323CDFA853}.Release|Any CPU.ActiveCfg = Release|Any CPU+ {C0073CEA-8A1B-43BC-BADE-F6323CDFA853}.Release|Any CPU.Build.0 = Release|Any CPU+ EndGlobalSection+ GlobalSection(SolutionProperties) = preSolution+ HideSolutionNode = FALSE+ EndGlobalSection+ GlobalSection(ExtensibilityGlobals) = postSolution+ SolutionGuid = {30612385-E4F4-4FD9-B648-45AF74CB4915}+ EndGlobalSection+EndGlobal