mystikos icon indicating copy to clipboard operation
mystikos copied to clipboard

new docker-build-ext2 script

Open mikbras opened this issue 3 years ago • 1 comments

Simple internal script to build a docker image and then uses mount-docker-image, writing the resulting root file system to an EXT2 file. For example:

# docker-build-ext2 Dockerfile ext2rootfs

mikbras avatar Feb 11 '22 22:02 mikbras

Update PR to address two comments by Paul:

  • add trap cleanup EXIT handler
  • forward an extraneous arguments to docker (using $*)

The second change gives the command the following syntax

$ docker-build-ext2 ext2_image <docker_build_arguments...>

Where the <docker_build_arguments> are just passed on to the docker build command.

The minimal command looks like this:

$ docker-build-ext2 ext2_image .

Where . is the path of the docker build directory (passed on to docker).

mikbras avatar Feb 17 '22 00:02 mikbras

Tagging with [REVISIT] and closing for now since this is not being currently worked on. Use the reopen button to reopen any time. Your changes are saved.

radhikaj avatar Sep 05 '23 18:09 radhikaj