• Home
Name Date Size #Lines LOC

..--

CHANGELOG.mdD07-Sep-2024870 5119

CHANGELOG_en.mdD07-Sep-20241.1 KiB5119

DockerfileD07-Sep-20245.3 KiB8479

README.mdD07-Sep-20241.8 KiB3122

README_en.mdD07-Sep-20241.9 KiB3022

sources.listD07-Sep-20241.7 KiB2824

README.md

1# OpenHarmony Docker镜像
2
3### Docker镜像简介
4
5本文为OpenHarmony的Docker编译环境使用指导。
6
7OpenHarmony的Docker镜像托管在[HUAWEI Cloud SWR](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fswr%2F%3Fregion%3Dcn-south-1%26cloud_route_state%3D%2Fapp%2Fwarehouse%2FwarehouseMangeDetail%2Fgoldensir%2Fopenharmony-docker%2Fopenharmony-docker%3Ftype%3DownImage&locale=en-us#/login)上,开发者可以通过该镜像在很大程度上简化编译前的环境配置。 目前容器化构建选项支持情况如下:
8
9| Docker镜像仓库                                               | 标签    | 说明                                  |
10| :----------------------------------------------------------- | :------ | :------------------------------------ |
11| `swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker` | `1.0.0` | 已经预安装OpenHarmony版本的编译环境。 |
12
13### 使用方式及步骤
14
15 开发者在下载好源码后,可以通过以下步骤来使用我们提供的Docker环境。详情请参见[Docker编译环境](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/gettools-acquire.md)16
171. 获取Docker镜像
18     ```
19     docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
20     ```
212. 进入OpenHarmony代码根目录执行如下命令,从而进入Docker构建环境
22     ```
23     docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
24     ```
253. 通过如下命令启动不同平台的编译
26     ```
27     hb set #在显示的页面中通过键盘上下键选择需要编译的平台,通过回车确定选择。
28     hb build -f #执行编译。
29     ```
30
31

README_en.md

1# OpenHarmony Docker Image
2
3### Docker Image
4
5This document provides guidance on building the Docker image for mini- and small-system devices.
6
7The Docker image of OpenHarmony is hosted on [HUAWEI Cloud SWR](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fswr%2F%3Fregion%3Dcn-south-1%26cloud_route_state%3D%2Fapp%2Fwarehouse%2FwarehouseMangeDetail%2Fgoldensir%2Fopenharmony-docker%2Fopenharmony-docker%3Ftype%3DownImage&locale=en-us#/login). 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](https://gitee.com/openharmony/docs/blob/master/en/device-dev/get-code/gettools-acquire.md).
8
9| Docker Image Repository                                      | Tag     | Description                                               |
10| :----------------------------------------------------------- | :------ | :-------------------------------------------------------- |
11| `swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker` | `1.0.0` | The OpenHarmony build environment has been pre-installed. |
12
13### Usage
14
15 After downloading the OpenHarmony code, perform the steps below to access the Docker environment.
16
171. Obtain the Docker image.
18     ```
19     docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
20     ```
212. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment:
22     ```
23     docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
24     ```
253. Run the following script to start building for different platforms.
26     ```
27     hb set # Press the Up or Down key to select the platform to build on, then press Enter.
28     hb build -f # Start building.
29     ```
30