How to setup docker env. to build github source code
how to setup docker env. to build banana pi github source code
step 1: install docker
step 2: docker run
$ docker run -d -p 2222:22 -v /media:/media sinovoip/bpi-build:ubuntu12.04
on your host
1
$ ssh -p 2222 [email protected] //default passwd is root
Copied!
or (with --privileged can use /dev/loop for create img)
1
$ docker run -d -p 3333:22 --privileged -v /media:/media sinovoip/bpi-build:ubuntu12.04
2
3
$ ssh -p 3333 [email protected] //default passwd is root
Copied!
step 3: git clone
1
# cd /media/XXX/your-source
2
# git clone https://github.com/BPI-SINOVOIP/BPI-M3-bsp.git
Copied!
step 4: build
1
# ./build.sh
Copied!
how to create your own env. to build the code
step 2: vi Dockerfile
step 3. vi build.sh
step 4: ./build.sh
why use docker env. to build banana pi source code 1. allwinner tools needs ubuntu12.04 with ia32-libs ... 2. user maybe use ubuntu 12.04 or 14.04 and newer like 16.04, the docker env. the same, even other linux like fedora opensuse archlinux ...., or other os like macos , windows ... 3. build BPI-Mx-bsp env. than mainline kernel & uboot or android 4.X or android 5.X / 6.X not the same.
Last modified 1yr ago
Copy link