From 7a33c71cb2493c60d83863191107e1f58733adde Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 4 Apr 2022 15:01:00 -0500 Subject: How to build an image from the source tarball --- scripts/docker-build/README | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 scripts/docker-build/README (limited to 'scripts/docker-build/README') diff --git a/scripts/docker-build/README b/scripts/docker-build/README new file mode 100644 index 0000000..c38fdb9 --- /dev/null +++ b/scripts/docker-build/README @@ -0,0 +1,28 @@ +Docker allows one to build on a specific version of an operating +system without having that version installed on the host. This +example was tested on Debian Bullseye, but the build was actually +done on the Ubuntu Bionic Docker image. + +The following docker related packages were installed: + + ii docker-ce 5:20.10.14~3-0~debian-bullseye amd64 Docker: the open-source application container engine + ii docker-ce-cli 5:20.10.14~3-0~debian-bullseye amd64 Docker CLI: the open-source application container engine + ii docker-ce-rootless-extras 5:20.10.14~3-0~debian-bullseye amd64 Rootless support for Docker. + ii docker-scan-plugin 0.17.0~debian-bullseye amd64 Docker scan cli plugin. + +build-docker.sh was run from the command line to create the docker container called mlinux-build + +The build starts sshd, but is is not needed if you use the docker +exec command to attach to the Docker image as us done in +build-mlinux.sh. + +After the build is complete you should have a login shell. You +could the do: + + su -l mlbuilder + build-mlinux.sh + +After the build completes, the output files can be copied from the host +as follows: + + docker cp mlinux-build:/home/mlbuilder/mlinux-6.0.0/build/tmp/deploy/images/mtcdt/mlinux-base-image-mtcdt-upgrade-withboot.bin . -- cgit v1.2.3