mirror of
https://github.com/dockur/windows.git
synced 2026-02-04 07:59:43 +00:00
chore: split compose into separate files
- Split compose.yml into two files: compose.yml for running and compose.prepare.yml for golden image preparation - Rename env vars STORAGE->STORAGE_DIR and ISO->ISO_FILE to avoid conflicts with internal script variables - Remove unused VERSION env var (hardcoded in scripts) - Update README with new command syntax
This commit is contained in:
parent
f80bb8202c
commit
e241426eea
4 changed files with 25 additions and 19 deletions
16
compose.yml
16
compose.yml
|
|
@ -3,8 +3,7 @@ services:
|
|||
image: windows-local:latest
|
||||
container_name: windows
|
||||
environment:
|
||||
VERSION: "win11e"
|
||||
STORAGE: "${STORAGE:?Error: required env var not set}"
|
||||
STORAGE_DIR: "${STORAGE_DIR:?Error: required env var not set}"
|
||||
devices:
|
||||
- /dev/kvm
|
||||
cap_add:
|
||||
|
|
@ -15,15 +14,4 @@ services:
|
|||
- 3389:3389/udp
|
||||
stop_grace_period: 2m
|
||||
volumes:
|
||||
- ${STORAGE}:/storage
|
||||
|
||||
prepare-golden-image:
|
||||
extends:
|
||||
service: windows
|
||||
profiles:
|
||||
- prepare-golden-image
|
||||
environment:
|
||||
ISO: "${ISO:?Error: required env var not set}"
|
||||
volumes:
|
||||
- ${ISO}:/custom.iso
|
||||
- ${STORAGE}:/storage
|
||||
- ${STORAGE_DIR}:/storage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue