It is a correct example building arm docker image on x86 machine using travis CI.
srcis a folder including a simple html page calledindex.html.Dockerfileis used to build a docker image with python http server to displayindex.html.buildis an excutable to build the docker image.startis an excutable to start a container of docker image..travis.ymlis a travis configuration file
On master branch, when the code on master branch is pushed, the building process will be triggered automatically, and the image will be delivered on docker hub dorrybamboo/rpi-x86-ex
On arm machine, eg, raspberry pi 3
docker run -d -p 8000:8000 dorrybamboo/rpi-x86-ex
Visit arm_machine_ip:8000 on the browser with html page displayed.
In order to deliver the docker image built by travis CI, the travis CI has to know the username and password of docker hub account.
You can change your docker hub account by reconfiguring .travis.yml by following steps:
- Remove
secureattributes onenv.globalin.travis.yml. - Change the value of
DOCKER_NAMEandDOCKER_PASSin.env. ./set_docker_account.