712 Star 4.2K Fork 1.2K

OpenHarmony / docs

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Readme-en.md 2.55 KB
Copy Edit Web IDE Raw Blame History
weichaox authored 2021-11-19 16:33 . update build out dir

Standalone Docker Environment

This document provides guidance on building the Docker image for standard-system devices. For details about how to build the Docker image for mini- and small-system devices, see OpenHarmony Docker Image

The Docker image of OpenHarmony is hosted on HUAWEI Cloud SWR. Using the Docker image will help simplify environment configurations needed for the building. After configuring the development environments, perform the steps below to access the Docker environment. The following steps use Ubuntu as an example (Windows is also supported).

Setting Up the Docker Environment for Standard-System Devices (reference memory ≥ 128 MB)

Method 1: Obtaining the Docker image from HuaweiCloud SWR
  1. Obtain the Docker image.
docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker-standard:0.0.5
  1. 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-standard:0.0.5
Method 2: Using the Dockerfile to Build a Local Docker Image
  1. Obtain the Dockerfile script for a local Docker image.
git clone https://gitee.com/openharmony/docs.git
  1. Go to the directory of the Dockerfile code and run the following command to build the Docker image:
cd docs/docker/standard
./build.sh
  1. 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 openharmony-docker-standard:0.0.5

Building for Standard-System Devices (reference memory ≥ 128 MB)

Run the following script to start building for Standard-System Devices (reference memory ≥ 128 MB)

./build.sh --product-name {product_name}

{product_name} indicates the platform supported by the current distribution, for example, Hi3516DV300. Files generated during compilation are stored in the out/{device_name}/ directory, and the generated image is stored in the out/{device_name}/packages/phone/images/ directory.

Note

You can exit Docker by simply running the exit command.

1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs
master

Search

161121 f78d6d6f 1850385 154831 86f8c370 1850385