-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathpostinstall.sh
More file actions
43 lines (31 loc) · 1.48 KB
/
postinstall.sh
File metadata and controls
43 lines (31 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
### These commands are run after the docker image for the dev container is built ###
# Install pipx (https://pipx.pypa.io/stable/installation/)
sudo apt update -y
sudo apt install -y pipx ripgrep
# Install poetry using pipx (https://python-poetry.org/docs/#installation)
pipx install poetry
# Configure poetry to create virtualenvs in project directory
poetry config virtualenvs.in-project true
# Install python dependencies
poetry install --no-interaction
# Install pre-commit hooks
poetry run pre-commit install
# Install playwright
# playwright install
# playwright install-deps
### Node/NVM Used for sonar extension code analysis and claude code
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Source nvm in the current shell session
export NVM_DIR="/usr/local/share/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Below would be how to run this locally
# export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install --lts # Consider version 18 if we want a consistent version rather than the latest
nvm use --lts
npm install -g @anthropic-ai/claude-code
git config --global --add safe.directory /workspaces/auto-questions
# Activate virtual environment
source .venv/bin/activate
# Show which Python interpreter is being used
which python