+get_mirror_src () {
+ msg_step="Get src mirror from dockerhub image"
+ echo_step_start
+
+ if [ -d ${MY_REPO_ROOT_DIR}/.repo ]; then
+ echo_info "The src repos already exists, skipping"
+ else
+ docker pull ${MIRROR_SRC_STX}
+ docker create -ti --name inf-src-stx ${MIRROR_SRC_STX} sh
+ docker cp inf-src-stx:/stx-${STX_VER}.tar.bz2 ${MY_REPO_ROOT_DIR}
+ docker rm inf-src-stx
+
+ cd ${MY_REPO_ROOT_DIR}
+ tar xf stx-${STX_VER}.tar.bz2
+ mv stx-${STX_VER}/* stx-${STX_VER}/.repo .
+ rm -rf stx-${STX_VER} stx-${STX_VER}.tar.bz2
+ fi
+
+ echo_step_end
+}
+
+get_mirror_pkg () {
+ msg_step="Get rpm mirror from dockerhub image"
+ echo_step_start
+
+ docker pull ${MIRROR_CONTAINER_IMG}
+ docker create -ti --name inf-centos-mirror ${MIRROR_CONTAINER_IMG} sh
+ docker cp inf-centos-mirror:/mirror_stx-${STX_VER}/. ${STX_MIRROR_DIR}
+ docker rm inf-centos-mirror
+
+ echo_step_end
+}
+