-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.ps
More file actions
28 lines (22 loc) · 845 Bytes
/
run.ps
File metadata and controls
28 lines (22 loc) · 845 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
# run.ps1
$minioDataDir = "./apps/minio_data"
# Check if the directory exists
if (Test-Path -Path $minioDataDir) {
Write-Host "Directory $minioDataDir exists. Cleaning it..."
Remove-Item -Recurse -Force "$minioDataDir\*"
} else {
Write-Host "Directory $minioDataDir doesn't exist. Creating it..."
New-Item -ItemType Directory -Force -Path $minioDataDir
}
# Create Python virtual environment
Write-Host "Creating Python virtual environment..."
python -m venv venv
# Activate the virtual environment
Write-Host "Activating virtual environment..."
& ".\venv\Scripts\Activate.ps1"
# Install requirements
Write-Host "Installing requirements..."
pip install -r requirements.txt
# Running Docker Compose
Write-Host "Running Docker Compose..."
docker-compose --env-file ./docker_compose_keys.env up -d