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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
]
}
},
"postCreateCommand": "pip3 install -r requirements.txt && python3 -m pip install --user --upgrade 'setuptools>=64' 'wheel>=0.42' 'pip>=24' && python3 -m pip install --user -e . && echo 'export PATH=\"$HOME/.local/bin:$PATH\"' >> ~/.bashrc && source ~/.bashrc && bash external/setup_loki_b.sh --non-interactive && echo 'Workspace ready. Run: make regtest'"
"postCreateCommand": "bash -lc \"bash .devcontainer/post_create.sh\""
}
22 changes: 22 additions & 0 deletions .devcontainer/post_create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail

# Wrapper for devcontainer postCreate tasks — run from repo root
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$REPO_ROOT"

echo "Running devcontainer post-create tasks in $REPO_ROOT"

pip3 install -r requirements.txt
python3 -m pip install --user --upgrade 'setuptools>=64' 'wheel>=0.42' 'pip>=24'
python3 -m pip install --user -e .

# Ensure user-local bin is on PATH for interactive shells
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
. ~/.bashrc

# Run LoKI-B setup (non-interactive)
bash "$REPO_ROOT/external/setup_loki_b.sh" --non-interactive

echo "Workspace ready. Run: make regtest"
Loading