Build the Container | Developers

1. Build the Container

Estimated reading time: 2 minutes

Start here

Before building your app, you need to build the Container, using the Ledger App Builder.

1 - Clone the Ledger App Builder

git clone https://github.com/LedgerHQ/ledger-app-builder 
Important
If you chose to build your app differently, make sure you can still compile it with the Ledger App Builder, as it will be required for deployment.

2 - To use the Container image, install your favourite package host

3 - Launch the package host

4 - Choose the Standard build or the App Scanner build described below.


Standard build

Build choosing the corresponding command for Docker/Podman/Buildah:

# If you're using Docker
sudo docker build -t ledger-app-builder:latest .
# If you're using Podman (from https://podman.io/)
podman build -t ledger-app-builder:latest .
# If you're using Buildah (from https://buildah.io/)
buildah bud -t ledger-app-builder:latest .

App Scanner build

Images can embed the Coverity Scan build tool. It is an excellent static analysis tool, and it can be very useful to find bugs in Embedded apps.

The build tool must be downloaded before building the image. The archive can be downloaded from https://scan.coverity.com/download. Download is available to everyone, but it requires to create an account. After having registered, download Coverity Build Tool 2020.09 for Linux64 and place the downloaded archive in the coverity directory.

Then, build the Container with one of the following for Docker/Podman/Buildah:

# If you're using Docker
sudo docker build -t ledger-app-scanner:latest .
# If you're using Podman (from https://podman.io/)
podman build -t ledger-app-scanner:latest .
# If you're using Buildah (from https://buildah.io/)
buildah bud -t ledger-app-scanner:latest .

You have now built the Container, and you can move on to building your app, on the following page.


Did you find this page helpful?


How would you improve this page for developers?



Introduction
2. Build the Application
Getting Started
Theme Features
Customization

Embedded Apps