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:
parent
80046094b8
commit
99639090b6
@ -24,4 +24,7 @@ RUN /home/vscode/.local/bin/mise exec -- mix local.hex --force && \
|
|||||||
|
|
||||||
RUN npm install -g @mariozechner/pi-coding-agent
|
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
|
||||||
|
|||||||
@ -3,10 +3,9 @@
|
|||||||
"dockerComposeFile": "docker-compose.yml",
|
"dockerComposeFile": "docker-compose.yml",
|
||||||
"service": "app",
|
"service": "app",
|
||||||
"workspaceFolder": "/workspaces/firehose",
|
"workspaceFolder": "/workspaces/firehose",
|
||||||
"remoteUser": "root",
|
"remoteUser": "vscode",
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"DB_HOST": "db",
|
"DB_HOST": "db"
|
||||||
"HOME": "/home/vscode"
|
|
||||||
},
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/python:1": {},
|
"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"
|
"source=${localEnv:HOME}/.pi/agent/bin,target=/home/vscode/.pi/agent/bin,type=bind,consistency=cached"
|
||||||
],
|
],
|
||||||
"postCreateCommand": {
|
"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": {
|
"customizations": {
|
||||||
"jetbrains": {
|
"jetbrains": {
|
||||||
|
|||||||
12
app.json
12
app.json
@ -1,5 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "firehose",
|
"name": "firehose",
|
||||||
|
"healthchecks": {
|
||||||
|
"web": [
|
||||||
|
{
|
||||||
|
"type": "startup",
|
||||||
|
"name": "web check",
|
||||||
|
"path": "/",
|
||||||
|
"attempts": 5,
|
||||||
|
"wait": 3,
|
||||||
|
"timeout": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dokku": {
|
"dokku": {
|
||||||
"postdeploy": "/app/bin/migrate"
|
"postdeploy": "/app/bin/migrate"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user