Development ContainerΒΆ

You can install a Docker container based on Ubuntu 20.04 which provides a Linux microPlatform build environment (this is the same container image as used by our own CI). This is the recommended work environment for building Linux microPlatform images on macOS and Windows.

  1. Install Docker.

  2. Create local folders for sstate-cache, downloads and build, as a way to save the build environment outside the container:

    mkdir -p ~/lmp/sstate-cache ~/lmp/downloads ~/lmp/build
    
  3. Run update 89 of the container as the builder user:

    docker run --rm -u builder --name lmp-sdk -v ~/lmp/build:/build/lmp -v ~/lmp/sstate-cache:/build/lmp/sstate-cache -v ~/lmp/downloads:/build/lmp/downloads -it hub.foundries.io/lmp-sdk:89
    
  4. Set up Git inside the container (required by repo):

    git config --global user.name "Your Full Name"
    git config --global user.email "[email protected]"
    

You can now follow instructions in Install the Linux microPlatform to build the Linux microPlatform inside the running container, using /build/lmp as your main work folder.