+get_mirror_aptly () {
+ msg_step="Get deb mirror aptly from dockerhub image"
+ echo_step_start
+
+ if [ -f ${STX_APTLY_DIR}/aptly.conf ]; then
+ echo_info "The deb aptly already exists, skipping"
+ else
+ docker pull ${MIRROR_APTLY_IMG}
+ docker create -ti --name inf-debian-aptly ${MIRROR_APTLY_IMG} sh
+ docker cp inf-debian-aptly:/aptly-stx-${STX_VER}/. ${STX_APTLY_DIR}
+ docker rm inf-debian-aptly
+ fi
+
+ echo_step_end
+}
+