Elixir working, postgres next

This commit is contained in:
Willem van den Ende 2026-03-17 22:13:42 +00:00
parent 0fc729603c
commit e56ea0400f
2 changed files with 28 additions and 5 deletions

22
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
USER root
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt-get install -y nodejs
USER vscode
RUN npm config set prefix /home/vscode/.npm-global
ENV PATH="/home/vscode/.npm-global/bin:/home/vscode/.local/bin:$PATH"
RUN curl https://mise.run | sh
RUN /home/vscode/.local/bin/mise install elixir@latest erlang@latest && \
/home/vscode/.local/bin/mise use --global elixir@latest erlang@latest
RUN /home/vscode/.local/bin/mise exec -- mix local.hex --force && \
/home/vscode/.local/bin/mise exec -- mix local.rebar --force
RUN npm install -g @mariozechner/pi-coding-agent
USER root

View File

@ -1,10 +1,11 @@
{ {
"$schema": "https://containers.dev/implementors/json_schema/", "$schema": "https://containers.dev/implementors/json_schema/",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04", "build": {
"dockerfile": "Dockerfile"
},
"remoteUser": "vscode", "remoteUser": "vscode",
"runArgs": [], "runArgs": [],
"features": { "features": {
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/python:1": {}, "ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/jsburckhardt/devcontainer-features/uv:1": {}, "ghcr.io/jsburckhardt/devcontainer-features/uv:1": {},
"ghcr.io/jsburckhardt/devcontainer-features/ruff:1": {} "ghcr.io/jsburckhardt/devcontainer-features/ruff:1": {}
@ -16,9 +17,8 @@
"source=${localEnv:HOME}/.pi/agent/bin,target=/home/vscode/.pi/agent/bin,type=bind,consistency=cached" "source=${localEnv:HOME}/.pi/agent/bin,target=/home/vscode/.pi/agent/bin,type=bind,consistency=cached"
], ],
"postCreateCommand": { "postCreateCommand": {
"pi-agent": "bash -ic 'npm install -g @mariozechner/pi-coding-agent && pi install npm:pi-subagents'" "pi-subagents": "bash -ic 'pi install npm:pi-subagents'"
}, },
"customizations": { "customizations": {
"jetbrains": { "jetbrains": {
"settings": { "settings": {
@ -31,7 +31,8 @@
}, },
"extensions": [ "extensions": [
"ms-python.python", "ms-python.python",
"ms-toolsai.jupyter" "ms-toolsai.jupyter",
"jakebecker.elixir-ls"
] ]
} }
} }