kredens/.devcontainer/onCreate.sh

25 lines
522 B
Bash
Raw Normal View History

2025-01-23 02:58:00 +00:00
#!/bin/bash
sudo apt update -y
sudo apt upgrade -y
2025-01-23 04:38:52 +00:00
sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
sudo apt upgrade -y
sudo apt install -y postgresql-client
2025-01-23 02:58:00 +00:00
git config --global --add safe.directory ${WORKSPACE_FOLDER}
sudo chown $(id -u):$(id -g) -fR \
2025-01-23 04:38:52 +00:00
${WORKSPACE_FOLDER} \
2025-01-23 02:58:00 +00:00
${WORKSPACE_FOLDER}/.venv \
${WORKSPACE_FOLDER}/node_modules
cd ${WORKSPACE_FOLDER}
uv python install
uv venv --allow-existing
2025-01-23 04:38:52 +00:00
uv tool install rust-just
uv tool install ruff