-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathsetupEnv.sh
More file actions
33 lines (25 loc) · 838 Bytes
/
setupEnv.sh
File metadata and controls
33 lines (25 loc) · 838 Bytes
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
#!/bin/sh
echo "Pull latest code for the current branch"
git fetch
git pull
set -e # Exit on error
echo "Setting up ContentProcessor..."
cd ./src/ContentProcessor
uv sync --frozen
cd ../../
echo "Setting up ContentProcessorApi..."
cd ./src/ContentProcessorAPI
uv sync --frozen
cd ../../
echo "Installing dependencies for ContentProcessorWeb..."
cd ./src/ContentProcessorWeb
export HOME="${HOME:-/home/vscode}"
pnpm install --store-dir "$HOME/.local/share/pnpm/store"
cd ../../
echo "Setting up executable permission for shell scripts"
sed -i 's/\r$//' infra/scripts/post_deployment.sh
sudo chmod +x infra/scripts/docker-build.sh
sudo chmod +x infra/scripts/post_deployment.sh
sudo chmod +x src/ContentProcessorAPI/samples/upload_files.sh
# register_schema.py is cross-platform and does not need chmod
echo "Setup complete! 🎉"