summaryrefslogtreecommitdiff
path: root/scripts/docker-build/README
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2022-04-04 15:01:00 -0500
committerJohn Klug <john.klug@multitech.com>2022-04-04 15:01:00 -0500
commit7a33c71cb2493c60d83863191107e1f58733adde (patch)
tree353dc8976d7430e912c50fbe93ebb7e5b61c4e87 /scripts/docker-build/README
parent64deb3b15d7ce3aba36fc0d457076d70887472bc (diff)
downloadmeta-mlinux-7a33c71cb2493c60d83863191107e1f58733adde.tar.gz
meta-mlinux-7a33c71cb2493c60d83863191107e1f58733adde.tar.bz2
meta-mlinux-7a33c71cb2493c60d83863191107e1f58733adde.zip
How to build an image from the source tarball
Diffstat (limited to 'scripts/docker-build/README')
-rw-r--r--scripts/docker-build/README28
1 files changed, 28 insertions, 0 deletions
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 .