-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to allow staging/testing a container image:
New $PRERELEASE variable pulls pkgs from prerelease dir on download.ceph.com (requires PRERELEASE_USERNAME/PRERELEASE_PASSWORD in env) Existing $FORCE_BUILD ignores images on quay.io and builds unconditionally Add ability to pass in desired container flavors Hack ceph-release after installation, because ceph-release is built during ceph build, and doesn't know what we need Use tempfile to pass tagname back to parent New $TEST_BUILD_ONLY avoids attempting to push image to quay.io Avoid logging into quay.io if PRERELEASE Note: only x86_64 supported Signed-off-by: Dan Mick <[email protected]>
- Loading branch information
Dan Mick
committed
Dec 16, 2023
1 parent
4e397bb
commit 3ba0877
Showing
5 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,9 +93,21 @@ bash -c ' \ | |
fi ;\ | ||
else \ | ||
RELEASE_VER=1 ;\ | ||
REPO_URL="http://download.ceph.com/rpm-${CEPH_VERSION}/el__ENV_[DISTRO_VERSION]__/"; \ | ||
if [[ __ENV_[PRERELEASE]__ = true ]] ; then \ | ||
REPO_URL="https://__ENV_[PRERELEASE_USERNAME]__:__ENV_[PRERELEASE_PASSWORD][email protected]/prerelease/rpm-${CEPH_VERSION}/el__ENV_[DISTRO_VERSION]__/"; \ | ||
else \ | ||
REPO_URL="http://download.ceph.com/rpm-${CEPH_VERSION}/el__ENV_[DISTRO_VERSION]__/"; \ | ||
fi \ | ||
fi && \ | ||
rpm -Uvh "$REPO_URL/noarch/ceph-release-1-${RELEASE_VER}.el__ENV_[DISTRO_VERSION]__.noarch.rpm" && \ | ||
# | ||
# We have to change this after installing because ceph-release is built long | ||
# ago in the ceph build | ||
# | ||
if [[ __ENV_[PRERELEASE]__ = true ]] ; then \ | ||
sed -i "s;http://download.ceph.com/;https://__ENV_[PRERELEASE_USERNAME]__:__ENV_[PRERELEASE_PASSWORD][email protected]/prerelease/;" /etc/yum.repos.d/ceph.repo ; \ | ||
dnf clean expire-cache ; \ | ||
fi && \ | ||
if [[ __ENV_[DISTRO_VERSION]__ -eq 8 ]]; then \ | ||
yum install -y dnf-plugins-core ; \ | ||
yum copr enable -y tchaikov/python-scikit-learn ; \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters