143 lines
4.1 KiB
JSON
143 lines
4.1 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Scrappy deploy",
|
|
"type": "shell",
|
|
"command": "node utils/deploy.js",
|
|
"problemMatcher": [],
|
|
"options": {
|
|
"cwd": "services/pocketbase"
|
|
},
|
|
"isBackground": false
|
|
},
|
|
{
|
|
"label": "Run Tailscale",
|
|
"type": "shell",
|
|
"command": "tailscale funnel 8090",
|
|
"problemMatcher": [],
|
|
"isBackground": true
|
|
},
|
|
{
|
|
"label": "Run postgres",
|
|
"type": "shell",
|
|
"command": "docker run -it -p 5439:5432 --rm --name futureporn-postgres -e POSTGRES_PASSWORD=password -e POSTGRES_USER=postgres -e POSTGRES_DB=future_porn postgres:17",
|
|
"problemMatcher": [],
|
|
"isBackground": true
|
|
},
|
|
{
|
|
"label": "Run pgadmin",
|
|
"type": "shell",
|
|
"command": "docker run -it -p 5050:5050 --rm --name futureporn-pgadmin -e PGADMIN_LISTEN_PORT=5050 -e PGADMIN_DISABLE_POSTFIX=1 -e PGADMIN_DEFAULT_EMAIL=cj@futureporn.net -e PGADMIN_DEFAULT_PASSWORD=password dpage/pgadmin4",
|
|
"problemMatcher": [],
|
|
"isBackground": true
|
|
},
|
|
{
|
|
"label": "Run Docker Compose",
|
|
"type": "shell",
|
|
"command": "docker compose up",
|
|
"problemMatcher": [],
|
|
"options": {
|
|
"cwd": "services/our"
|
|
},
|
|
"isBackground": true
|
|
},
|
|
{
|
|
"label": "Run All Dev Terminals",
|
|
"dependsOn": [
|
|
"Run Tailscale",
|
|
"Run Docker Compose",
|
|
"Run PNPM Dev"
|
|
],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run PNPM Dev",
|
|
"type": "shell",
|
|
"command": "pnpm run dev",
|
|
"options": {
|
|
"cwd": "services/our"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run MinIO",
|
|
"type": "shell",
|
|
"command": "docker run -it --name clipsterpro-minio --rm -p 9000:9000 -p 9001:9001 -e MINIO_ROOT_USER=user -e MINIO_ROOT_PASSWORD=password quay.io/minio/minio server /data --console-address \":9001\"",
|
|
"problemMatcher": [],
|
|
"isBackground": true,
|
|
"runOptions": {
|
|
"runOn": "folderOpen"
|
|
}
|
|
},
|
|
{
|
|
"label": "Create MinIO Buckets",
|
|
"type": "shell",
|
|
"command": "until curl -s http://localhost:9000/minio/health/live; do echo 'Waiting for MinIO...'; sleep 1; done; bunx @dotenvx/dotenvx run -f .env.development.local -- ./packages/scripts/create_minio_buckets.sh",
|
|
"problemMatcher": [],
|
|
"isBackground": false,
|
|
"runOptions": {
|
|
"runOn": "folderOpen"
|
|
}
|
|
},
|
|
{
|
|
"label": "Run Pocketbase",
|
|
"type": "shell",
|
|
"command": "npx @dotenvx/dotenvx run -f ./.env.development.local -- pocketbase serve --dev --dir ./pb_data",
|
|
"problemMatcher": [],
|
|
"isBackground": true,
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/services/pocketbase"
|
|
},
|
|
"runOptions": {
|
|
"runOn": "folderOpen"
|
|
}
|
|
},
|
|
{
|
|
"label": "Run Worker",
|
|
"type": "shell",
|
|
"command": "npx @dotenvx/dotenvx run -f .env.development.local -- npx tsx --watch ./src/index.ts",
|
|
"problemMatcher": [],
|
|
"isBackground": true,
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/services/worker"
|
|
},
|
|
"runOptions": {
|
|
"runOn": "folderOpen"
|
|
}
|
|
},
|
|
{
|
|
"label": "Run qBittorrent",
|
|
"type": "shell",
|
|
"command": "qbittorrent-nox --confirm-legal-notice --webui-port=8069 --profile=/home/cj/.config --configuration=futureporn",
|
|
"isBackground": true,
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/services/worker"
|
|
},
|
|
"runOptions": {
|
|
"runOn": "folderOpen"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run valkey",
|
|
"type": "shell",
|
|
"command": "docker run --name futureporn-valkey-DEVELOPMENT --rm -p 6667:6379 valkey/valkey",
|
|
"isBackground": true,
|
|
"problemMatcher": [],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/services/worker"
|
|
},
|
|
"runOptions": {
|
|
"runOn": "folderOpen"
|
|
}
|
|
},
|
|
{
|
|
"label": "Create test task via curl",
|
|
"type": "shell",
|
|
"command": "curl http://localhost:3000/task?title=fmv",
|
|
"isBackground": false,
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
} |