- Linux(Ubuntu is recommended)
- Docker 1.11.2
- Maven 3.x
- Oracle JDK 1.8+
- Get the workshop demo's code
git clone https://github.com/ServiceComb/LinuxCon-Beijing-WorkShop.git
- 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.
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.