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/build-docker.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/docker-build/build-docker.sh (limited to 'scripts/docker-build/build-docker.sh') diff --git a/scripts/docker-build/build-docker.sh b/scripts/docker-build/build-docker.sh new file mode 100755 index 0000000..d6b6436 --- /dev/null +++ b/scripts/docker-build/build-docker.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Build a Docker image to build mLinux 6 +docker container stop mlinux-build || true +docker container rm mlinux-build || true +docker build --network=host -t yocto-bionic . +docker run -P -itd --name mlinux-build yocto-bionic:latest bash +echo 'You should be able to ssh to the following address at port 22 (the ssh port):' +docker inspect -f "{{ .NetworkSettings.IPAddress }}" mlinux-build +echo 'Printing out the userid:password for ssh access' +docker exec mlinux-build /bin/cat /home/mlbuilder/password.txt +docker exec -it mlinux-build /bin/bash -- cgit v1.2.3