build-stx-images.sh:
- auto-detect OS
- allow wheels tar to be a local file
- patch loci Dockerfile:
* add a script to tweak package manager configuration
* copy wheels tar into docker file, instead of downloading
it over HTTP; this allows wheels to be a local file
* call our own custom script when building, instead of whats provided
with loci. The custom script: tweaks apt or yum repos if necessary,
calls the original Loci build script, then deletes the wheels
tarball.
- new parameter DIST_REPOS in Loci docker config files. Allows one to
enable or disable upstream (bullseye etc) repositories when building.
TESTS
=============
1) CentOS: build 2 representative images:
stx-audit (Dockerfile builder)
stx-heat (Loci builder)
Compare filesystems in docker images before and after the patch
Make sure the difference is trivial/expected
2) Debian: build 2 representative images:
stx-audit (Dockerfile builder)
stx-heat (Loci builder)
stx-heat fails to compile due to openstack requirements file being
incompatible with debian/bullseye. This will addressed as a separate
patch.
Story: 2009897
Task: 44693
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I70ea968d343d1f59e96eee73907e6999bf4050ec
15 lines
238 B
Bash
Executable File
15 lines
238 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
LOCI_DIR="/opt/loci"
|
|
|
|
# configure apt/yum repos
|
|
"$LOCI_DIR/stx-scripts/setup-package-repos.sh"
|
|
|
|
# run Loci installer
|
|
"$LOCI_DIR/scripts/install.sh" "$@"
|
|
|
|
# delete wheel tarball etc
|
|
"$LOCI_DIR/stx-scripts/cleanup.sh"
|