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
32 changes: 32 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Use the official Python image
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim

# Install the project into `/app`
WORKDIR /app
ADD . /app

# Install system packages:
# curl
RUN apt-get update && apt-get install -y curl
# gnupg
RUN apt-get update && apt-get install -y gnupg
# git
RUN apt-get update && apt-get install -y git
# duckdb
RUN curl -sL https://install.duckdb.org | sh && \
mkdir -p /usr/local/bin && \
cp /root/.duckdb/cli/latest/duckdb /usr/local/bin/duckdb && \
chmod +x /usr/local/bin/duckdb
# github cli
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | \
gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | \
tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
apt-get update && apt-get install -y gh

# Default shell
SHELL ["/bin/bash", "-c"]

# Create vscode user to satisfy Codespaces requirement
RUN useradd -m vscode
USER vscode
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "uv-python-dev",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"atlassian.atlascode",
"njpwerner.autodocstring",
"ms-azuretools.vscode-docker",
"github.vscode-github-actions",
"eamodio.gitlens",
"ms-toolsai.jupyter",
"mechatroner.rainbow-csv",
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.autoSave": "afterDelay",
}
}
},
"postCreateCommand": "uv venv --force && uv sync -v",
"features": {},
"remoteUser": "vscode"
}
Loading