harmony 鸿蒙OpenHarmony Docker Image

  • 2022-08-09
  • 浏览 (977)

OpenHarmony Docker Image

Docker Image

This document provides guidance on building the Docker image for mini- and small-system devices.

The Docker image of OpenHarmony is hosted on HUAWEI Cloud SWR. Using the Docker image will help simplify environment configurations needed for the building. The following table lists container-based options needed for building in the standalone Docker environment.

Docker Image Repository Tag Description
swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker 1.0.0 The OpenHarmony build environment has been pre-installed.

Usage

After downloading the OpenHarmony code, perform the steps below to access the Docker environment.

  1. Obtain the Docker image. docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
  2. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment: docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
  3. Run the following script to start building for different platforms. hb set # Press the Up or Down key to select the platform to build on, then press Enter. hb build -f # Start building.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙1.0.0 (2022/03/09)

harmony 鸿蒙1.0.0 (2022/03/09)

harmony 鸿蒙OpenHarmony Docker镜像

0  赞