Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.95 KB

how-to-auto-publish-images-to-huawei-cloud.md

File metadata and controls

42 lines (34 loc) · 1.95 KB

Auto build and publish images to Huawei Image Warehouse

Prerequisites

  1. Linux(Ubuntu is recommended)
  2. Docker 1.11.2
  3. Maven 3.x
  4. Oracle JDK 1.8+

Auto build and publish images

  1. Get the workshop demo's code
git clone https://github.com/ServiceComb/LinuxCon-Beijing-WorkShop.git
  1. Set up environment variables of scripts/publish_images_to_huaweicloud.sh.

Before you use the script, there are several variables you need to set up first.

Name Description
TENANT_NAME tenant name shown in fig.1
REPO_ADDRESS the image repository address shown in fig.1
USERNAME username shown in fig.1
PASSWORD password shown in fig.1
PROJECT_PATH (Optional) maven project path, default to script's parent path
THIRD_PARTY_IMAGES (Optional) third party images that published on Docker Hub, separated by space

The following figure(fig.1) can be retrieved by visiting Huawei Image Warehouse, and then click the Pull/Push Guide -> generate docker login instruction.

fig.1 variables information

3. run the script by executing

bash scripts/publish_images_to_huaweicloud.sh

Wait for a while and then you can check your images in the Huawei Image Warehouse.