JasonN3 / build-container-installer

Creates an ISO for installing a container image as an OS
GNU General Public License v3.0
63 stars 9 forks source link

[BUG] Local ISO generation with the container image does not produce any files #107

Closed xynydev closed 7 months ago

xynydev commented 7 months ago

Describe the bug When running the container provided by this project to try to build a custom ISO, no files are created into the bind-mounted volume, and no ISO is available after the generation process is complete.

To Reproduce

  1. Open the terminal (optionally, navigate to an empty directory like ~/iso/)
  2. Run the command provided in the README: docker run --rm --privileged --volume .:/github/workspace/build ghcr.io/jasonn3/build-container-installer:latest VERSION=38 IMAGE_NAME=base IMAGE_TAG=38 VARIANT=Server
  3. Wait for command to complete
  4. Check directory with ls, no ISO file is found.

Additional things I tried

Expected behavior When running the container with the bind mount, it should output the ISO file into the mounted host directory.

Desktop (please complete the following information):

Additional context

JasonN3 commented 7 months ago

Sorry, forgot to update the examples in the readme. The volume needs to be --volume ./iso:/build-container-installer/build. You can also override the location that the ISO will be written by using ISO_NAME. Just remember that any path specified is relative to /build-container-installer unless you specify an absolute path and then it's based on inside the container runtime.

xynydev commented 7 months ago

I see, I see. Thanks! That worked splendid. I'll keep this issue up so y'all don't forget to change this in the docs.

JasonN3 commented 7 months ago

I see, I see. Thanks! That worked splendid. I'll keep this issue up so y'all don't forget to change this in the docs.

Glad to hear. And thank you.