summaryrefslogtreecommitdiff
path: root/scripts/docker-build/build-docker.sh
blob: d6b64362dab84b51dae759e855935713f2dea569 (plain)
1
2
3
4
5
6
7
8
9
10
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