The CENGN Jenkins job publishes the images to dockerhub as part of its build.

 

From: Chen, Haochuan Z <haochuan.z.chen@intel.com>
Sent: Friday, October 30, 2020 2:40 AM
To: Little, Scott <Scott.Little@windriver.com>
Cc: starlingx-discuss@lists.starlingx.io
Subject: Re: [Starlingx-discuss] question about build stx image

 

[Please note this e-mail is from an EXTERNAL e-mail address]

I build image and want to push to dockerhub, starlingx repository

 

REPOSITORY                   TAG                       IMAGE ID            CREATED             SIZE

starlingx/stx-ceph-manager   dev-centos-stable-build   324390927675        57 minutes ago      922MB

 

Patch for starlingx customize image building

https://review.opendev.org/#/c/760503/

 

BR!

 

Martin, Chen

IOTG, Software Engineer

021-61164330

 

From: Scott Little <scott.little@windriver.com>
Sent: Thursday, October 29, 2020 10:25 PM
To: Chen, Haochuan Z <haochuan.z.chen@intel.com>
Cc: starlingx-discuss@lists.starlingx.io
Subject: Re: question about build stx image

 

e-mial was recalled.... did you figure it out?

 

Scott

 

 

On 2020-10-29 10:10 a.m., Chen, Haochuan Z wrote:

[Please note this e-mail is from an EXTERNAL e-mail address]

Hi scott

 

I read this doc

https://opendev.org/starlingx/docs/src/branch/master/doc/source/developer_resources/build_docker_image.rst

 

To build starling image, must build base image firstly? Is there any image on dock hub, I could pull and set as base in this command

OS=centos

BUILD_STREAM=stable

BRANCH=master

CENTOS_BASE=starlingx/stx-centos:${BRANCH}-${BUILD_STREAM}-latest

WHEELS=http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/latest_docker_image_build/outputs/wheels//stx-centos-${BUILD_STREAM}-wheels.tar

DOCKER_USER=${USER}

DOCKER_REGISTRY=192.168.0.1:9001 # Some private registry you've setup for your testing, for example

 

time $MY_REPO/build-tools/build-docker-images/build-stx-images.sh \

    --os centos \

    --stream ${BUILD_STREAM} \

    --base ${CENTOS_BASE} \

    --wheels ${WHEELS} \

    --user ${DOCKER_USER} --registry ${DOCKER_REGISTRY} \

    --push --latest \

    --clean

 

Thanks!

 

Martin, Chen

IOTG, Software Engineer

021-61164330