mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 07:58:14 +00:00
589181e77c
WORK_DIR now defaults to /opt/pve-integration/work (under the shared host mount) instead of /tmp/pve-integration (container-local). This fixes the answer server seeing empty answer files — the dev-infra container writes answer files to WORK_DIR, and the answer server container (a sibling) needs to read them from the same host path. Also: - Renamed mount from /opt/pve-isos to /opt/pve-integration - Added must_run=true, start=true to answer server container - Updated docker-compose.test.yml and dev.ps1 remote override Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
## PSProxmoxVE dev/test containers
|
|
##
|
|
## Default (works on ARM Macs + x86):
|
|
## docker compose -f tests/docker-compose.test.yml up -d
|
|
## docker exec -it psproxmoxve-dev pwsh
|
|
##
|
|
## Full CI infra (x86 only — adds Terraform + PVE provisioning tools):
|
|
## docker compose -f tests/docker-compose.test.yml --profile infra up -d
|
|
## docker exec -it psproxmoxve-dev-infra bash
|
|
##
|
|
## Stop:
|
|
## docker compose -f tests/docker-compose.test.yml down
|
|
|
|
services:
|
|
dev:
|
|
build:
|
|
context: ..
|
|
dockerfile: tests/Dockerfile.test
|
|
target: dev
|
|
container_name: psproxmoxve-dev
|
|
volumes:
|
|
- ..:/repo
|
|
working_dir: /repo
|
|
stdin_open: true
|
|
tty: true
|
|
restart: unless-stopped
|
|
env_file:
|
|
- path: .env.test
|
|
required: false
|
|
|
|
dev-infra:
|
|
build:
|
|
context: ..
|
|
dockerfile: tests/Dockerfile.test
|
|
target: dev-infra
|
|
container_name: psproxmoxve-dev-infra
|
|
profiles: [infra]
|
|
volumes:
|
|
- ..:/repo
|
|
- /opt/pve-integration:/opt/pve-integration
|
|
# WARNING: Mounting the Docker socket grants this container root-equivalent
|
|
# access to the host's Docker daemon. Only use on trusted, isolated machines.
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
working_dir: /repo
|
|
stdin_open: true
|
|
tty: true
|
|
restart: unless-stopped
|
|
env_file:
|
|
- path: .env.test
|
|
required: false
|