Hi, the dockerhub latest image just doesn't works at 2023
I was invested time to shellcheck the build script & remove volume binds
Some changes come from #22, but without spectool. spectool doesn't exit with non-zero exit code when Source impossible to download or another sort of error, see BZ#2096624, it was replaced to rpmbuild
When source files failed to download, for example due HTTP 403 or 404 code, error will be produced:
WARNING: Disabling clean up of the build folder after build
=> Building parameters:
=================================================================
MOCK_CONFIG: centos-stream-8-aarch64
SPEC_FILE: sst.spec
SOURCES: Will be downloaded automatically
OUTPUT_FOLDER: /rpmbuild/output/centos-stream-8-aarch64
MOCK_DEFINES:
=================================================================
warning: Downloading https://downloadmirror.intel.com/743764/SST_CLI_Linux_1.3.zip to /home/mockbuilder/rpmbuild/SOURCES/SST_CLI_Linux_1.3.zip
curl: (22) The requested URL returned error: 403
error: Couldn't download https://downloadmirror.intel.com/743764/SST_CLI_Linux_1.3.zip
When download is successful, mock build will starts as usual:
WARNING: Disabling clean up of the build folder after build
=> Building parameters:
=================================================================
MOCK_CONFIG: centos-stream-8-aarch64
SPEC_FILE: sst.spec
SOURCES: sources
OUTPUT_FOLDER: /rpmbuild/output/centos-stream-8-aarch64
MOCK_DEFINES:
=================================================================
warning: Downloading https://sdmsdfwdriver.blob.core.windows.net/files/kba-gcc/drivers-downloads/ka-00085--sst/sst--1-5/sst-cli-linux-rpm--1-5.zip to /rpmbuild/sources/sst-cli-linux-rpm--1-5.zip
RPM build warnings:
Downloading https://sdmsdfwdriver.blob.core.windows.net/files/kba-gcc/drivers-downloads/ka-00085--sst/sst--1-5/sst-cli-linux-rpm--1-5.zip to /rpmbuild/sources/sst-cli-linux-rpm--1-5.zip
INFO: mock.py version 3.5 starting (python version = 3.11.1, NVR = mock-3.5-1.fc37)...
Start(bootstrap): init plugins
INFO: selinux disabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: selinux disabled
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(/rpmbuild/sst.spec) Config(centos-stream-8-aarch64)
Verified the docker build & Gitlab runner can works with this image
Hi, the dockerhub
latest
image just doesn't works at 2023 I was invested time toshellcheck
the build script & remove volume bindsSome changes come from #22, but without spectool. spectool doesn't exit with non-zero exit code when Source impossible to download or another sort of error, see BZ#2096624, it was replaced to
rpmbuild
When source files failed to download, for example due HTTP 403 or 404 code, error will be produced:
When download is successful, mock build will starts as usual:
Verified the docker build & Gitlab runner can works with this image