Add healthcheck and attempt to fix devcontainer

user was root instead of vscode, and pi was broken.
Claude code had gone missing
This commit is contained in:
Willem van den Ende 2026-03-18 17:14:37 +00:00
parent 80046094b8
commit 99639090b6
3 changed files with 19 additions and 5 deletions

View File

@ -24,4 +24,7 @@ RUN /home/vscode/.local/bin/mise exec -- mix local.hex --force && \
RUN npm install -g @mariozechner/pi-coding-agent
USER root
RUN npm install -g @anthropic-ai/claude-code
RUN echo 'eval "$(/home/vscode/.local/bin/mise activate bash)"' >> /home/vscode/.bashrc
RUN /home/vscode/.local/bin/mise settings set trusted_config_paths /workspaces/firehose

View File

@ -3,10 +3,9 @@
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/firehose",
"remoteUser": "root",
"remoteUser": "vscode",
"containerEnv": {
"DB_HOST": "db",
"HOME": "/home/vscode"
"DB_HOST": "db"
},
"features": {
"ghcr.io/devcontainers/features/python:1": {},
@ -20,7 +19,7 @@
"source=${localEnv:HOME}/.pi/agent/bin,target=/home/vscode/.pi/agent/bin,type=bind,consistency=cached"
],
"postCreateCommand": {
"pi-subagents": "bash -ic 'pi install npm:pi-subagents'"
"pi-subagents-disabled": "echo 'pi-subagents disabled: upstream JSON schema bug — investigate version pinning separately'"
},
"customizations": {
"jetbrains": {

View File

@ -1,5 +1,17 @@
{
"name": "firehose",
"healthchecks": {
"web": [
{
"type": "startup",
"name": "web check",
"path": "/",
"attempts": 5,
"wait": 3,
"timeout": 5
}
]
},
"scripts": {
"dokku": {
"postdeploy": "/app/bin/migrate"