diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2022-04-05 00:45:01 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2022-04-05 00:45:01 +0300 |
commit | c70c7b1e0253714e5467b076d081eb8936ce0115 (patch) | |
tree | 741e5aec22871c14ff681e12c2a33604528f2902 /scripts/docker-build/build-docker.sh | |
parent | 04474efccc672013a05cf5ecd6f5fa7e7221ecf2 (diff) | |
parent | e8a1632249375534904af07481c7fce52f17db9f (diff) | |
download | meta-mlinux-c70c7b1e0253714e5467b076d081eb8936ce0115.tar.gz meta-mlinux-c70c7b1e0253714e5467b076d081eb8936ce0115.tar.bz2 meta-mlinux-c70c7b1e0253714e5467b076d081eb8936ce0115.zip |
Merge remote-tracking branch 'origin/6' into mpower-dev-nxp
Diffstat (limited to 'scripts/docker-build/build-docker.sh')
-rwxr-xr-x | scripts/docker-build/build-docker.sh | 11 |
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 |