VSCode DevContainer
Preparation
- Obtain the Docker Engine for your distribution and add your non-privileged user to the docker group (
sudo usermod -aG docker $USER
) - Install Visual Studio Code
Visual Studio Code: Development Containers
- Open Visual Studio Code
- Open Command Palette (
F1
) and selectClone repository in Container Volume
- Select
eclipse-leda/meta-leda
and the main branch. - Adapt proxy configurations if necessary (
.devcontainer/proxy.sh
)
For a clean remote build machine, you may want to set up a development environment on GitHub CodeSpaces
Building Leda in a VSCode DevContainer:
After successfully setting up your DevContainer you can build Leda either with kas or manually:
-
To build with kas follow the instructions at: Building with kas
-
To build manually: Building manually
Authentication
The build process requires online connection and you must be authenticated to access private repositories.
- Create a GitHub Personal Access Token (PAT) at https://github.com/settings/tokens and grant
read:packages
permission - Use
Configure SSO
and authorize your PAT for the organization - On the build host, authenticate to ghcr.io:
skopeo login ghcr.io --authfile ~/auth.json --username <username>
and enter the PAT as password- You may need to create the folder where skopeo is storing authentication information beforehand:
sudo mkdir -p /run/containers/1000 sudo chmod a+w /run/containers/1000
- Start the bitbake build process
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.