-
Notifications
You must be signed in to change notification settings - Fork 1
Simplify for custom ISO usage #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
compose.yml
Outdated
| volumes: | ||
| - ${STORAGE}:/storage | ||
|
|
||
| prepare-golden-image: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The prepare-golden-image service is for creating the golden Windows image from the ISO. You run it once with docker compose --profile prepare-golden-image up to build the image, then use the regular service to boot from it.
Please refer the usage section in readme: https://github.com/trycua/windows-local/blob/8c93722be46d43d7c5794f5b9c0268e1ddb37812/readme.md#via-docker-compose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not work. I have made two separate compose files - see this commit: e241426
| -p 8006:8006 \ | ||
| --device=/dev/kvm \ | ||
| --cap-add NET_ADMIN \ | ||
| --mount type=bind,source=./custom.iso,target=/custom.iso \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you make sure subsequent run don't need the custom.iso attached, and you can instead mount the storage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I did and it works!
- 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
Changes
Removed Features
mido.sh) - No longer needed as users provide their own custom ISOskubernetes.ymlas this fork targets Docker/Docker Compose onlyUpdated Components
windowsservice for running pre-built golden imagesprepare-golden-imageprofile for creating golden images from custom ISOsTesting