Skip to content

Commit 0d1ebe1

Browse files
committedFeb 14, 2025
add initial project setup
0 parents  commit 0d1ebe1

File tree

174 files changed

+250428
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+250428
-0
lines changed
 

‎.devcontainer/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ARG IMAGE=bullseye
2+
FROM mcr.microsoft.com/devcontainers/${IMAGE}
3+
4+
ENV PYTHONUNBUFFERED 1
5+
6+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7+
&& apt-get -y install --no-install-recommends postgresql-client \
8+
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*

‎.devcontainer/devcontainer.json

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/python-3
3+
{
4+
"name": "rag-postgres-openai-python",
5+
"dockerComposeFile": "docker-compose.yaml",
6+
"service": "app",
7+
"workspaceFolder": "/workspace",
8+
"forwardPorts": [5432],
9+
"portsAttributes": {
10+
"5432": {"label": "PostgreSQL port", "onAutoForward": "silent"},
11+
"8000": {"label": "Backend port", "onAutoForward": "openBrowser"},
12+
"5173": {"label": "Frontend port", "onAutoForward": "openBrowser"}
13+
},
14+
"features": {
15+
"ghcr.io/devcontainers/features/node:1": {
16+
"version": "18",
17+
"nodeGypDependencies": false
18+
},
19+
"ghcr.io/azure/azure-dev/azd:latest": {
20+
"version": "1.11.0"
21+
},
22+
"ghcr.io/prulloac/devcontainer-features/ollama:1": {},
23+
// az CLI is helpful for being able to login correctly with DefaultAzureCredential:
24+
"ghcr.io/devcontainers/features/azure-cli": {}
25+
},
26+
// Configure tool-specific properties.
27+
"customizations": {
28+
// Configure properties specific to VS Code.
29+
"vscode": {
30+
// Add the IDs of extensions you want installed when the container is created.
31+
"extensions": [
32+
"ms-python.python",
33+
"ms-python.vscode-pylance",
34+
"charliermarsh.ruff",
35+
"mtxr.sqltools",
36+
"mtxr.sqltools-driver-pg",
37+
"ms-vscode.vscode-node-azure-pack",
38+
"esbenp.prettier-vscode"
39+
],
40+
// Set *default* container specific settings.json values on container create.
41+
"settings": {
42+
"python.defaultInterpreterPath": "/usr/local/bin/python",
43+
"python.testing.unittestEnabled": false,
44+
"python.testing.pytestEnabled": false,
45+
"[python]": {
46+
"editor.formatOnSave": true,
47+
"editor.codeActionsOnSave": {
48+
"source.fixAll": "explicit"
49+
},
50+
"editor.defaultFormatter": "charliermarsh.ruff"
51+
}
52+
}
53+
}
54+
},
55+
// Use 'postCreateCommand' to run commands after the container is created.
56+
"postCreateCommand": "pip install -r requirements-dev.txt && pip install -e src/backend",
57+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
58+
"remoteUser": "vscode"
59+
}

0 commit comments

Comments
 (0)