
This change reorganizes the source directories of the stx-fm-rest-api container to be reused by both CentOS and Debian Dockerfiles in order to build the images having the corresponding OS-specic base. As part of this, the fm-api, fm-rest-api, fm-common and python-fmclient packages have been ported in order to generate deb files that contain .whl. Test plan: PASS: Build debian iso and perform fresh install. Verify fm commands are working as expected. PASS: Build python3 wheels tarball on Debian. Verify fm, fm_api, fm_core and fmclient .whl files are added. PASS: Build Debian-based container and push it to a public registry. Apply openstack application and update the fm-rest-api url to pull this new image. Verify that: - pods are up and running with the new image/tag specified. - the container is running on Debian. - from inside the container, fm querys are working as expected. Story: 2009831 Task: 46634 Depends-On: https://review.opendev.org/c/starlingx/config/+/862498 Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com> Change-Id: I2b35139f8775141e39f97a5a6037c5de2b4d5d76
16 lines
373 B
Makefile
Executable File
16 lines
373 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
#export DH_VERBOSE = 1
|
|
|
|
export PYBUILD_NAME=fm-api
|
|
DEBIAN_DESTDIR := $(CURDIR)/debian/tmp
|
|
|
|
%:
|
|
dh $@ --with python3 --buildsystem=pybuild
|
|
|
|
override_dh_install:
|
|
python3 setup.py install -f --install-layout=deb --root=${DEBIAN_DESTDIR}
|
|
python3 setup.py bdist_wheel \
|
|
--universal \
|
|
-d ${CURDIR}/debian/fm-api-wheel/usr/share/python-wheels
|
|
dh_install
|