summaryrefslogtreecommitdiff
path: root/scripts/docker-build/build-docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/docker-build/build-docker.sh')
-rwxr-xr-xscripts/docker-build/build-docker.sh11
1 files changed, 11 insertions, 0 deletions
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