- PetaLinux version: 2014.4
- Base image: Ubuntu:16.04
- Environment variables are set, so no need to source settings.sh on launch.
- The default working directory is
/workspace
, you can mount a volume to there to save your data.
You can use build-image.sh
to build the image, which set up a HTTP server using python on where PetaLinux tools installer is, and do docker build
to build image. The first parameter of this script is the directory of PetaLinux installer. There are two build-arg
in the Dockerfile, one is installer_url
, which is set by build-image.sh
using IP of docker network bridge, another is install_dir
, which is /opt
by default.
To run a container:
docker run -ti -v /path/to/projects:/workspace xaljer/petalinux:2014.4
in the container:
petalinux-create -t project -s <path-to-bsp> -n <project-name>
cd <project-name>
petalinux-build # this will take a long time
- alias can also be added to simplify some frequently-used commands, however, do the alias on host like
docker exec bash -c '<commands>'
may more convenient.
-
I uploaded this image to docker hub, you can download via:
docker pull xaljer/petalinux:2014.4
-
More details for the Dockerfile and build process are recorded in my blog, which is written in Chinese.