mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 16:08:13 +00:00
6a63dea923
- Fix storage_ip derivation to use default route first, not Swarm RemoteManagers - Make iSCSI container entrypoint idempotent (check before create for target/LUN/bind) - Pin erichough/nfs-server from 'latest' to '2.2.1' for reproducibility - Replace curl|sh Docker install with apt repo in Dockerfile.test - Add docker.sock security warnings in docker-compose.test.yml and CI workflow - Update stale 'storage VM' references in comments and .env.test.example" Co-authored-by: GoodOlClint <151449+GoodOlClint@users.noreply.github.com> Agent-Logs-Url: https://github.com/GoodOlClint/PSProxmoxVE/sessions/534c0a63-2988-496c-b0ae-e291fcfa050b
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-isos:/opt/pve-isos
|
|
# 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
|